Tuesday, December 10, 2013

How to checkout file by file OR a single file from Subversion


With Subversion 1.5 above, users can follow given below steps to checkout file by file or a single file from a svn repository . This is known as "Parse Checkout". 
  • svn checkout <svn_directory_location_of_the_file> <file_system_location> --depth empty. 
    •  svn_directory_location_of_the_file
              E.g. - If the file x is in the SVN location https://svn.test.org/repos/ , the   value for this should be https://svn.wso2.org/repos/.  
    •  file_system_location : To where the checkout should be made to.
             E.g. - source/
 
             A full example command would be :
     svn checkout https://svn.wso2.org/repos/ source/ --depth empty

  •  Now go in to the file system location. 
             E.g. cd source

  •  Now svn update the file or directory you want to check out. 
             E.g. svn up x.txt , svn up x_directory/



No comments:

Post a Comment