lundi 13 avril 2015

svn checkout a single file but with full folder structure

Currently I am checking out a single file from a SVN repository like this:


The file exists in this URL :



"https://svn_test_url/trunk/Documents/filename.txt"


So currently I am using the below command :



svn co --depth=empty "https://svn_test_url/trunk/Documents/" "local_folder_name" & cd "local_folder_name" & svn up "filename.txt"


And finally I get:



-local_folder_name
-.svn
-filename.txt


Question : I would like to checkout the complete folder structure till file.


So according to my example I expect the folder structure be like:



-local_folder_name
-.svn
-trunk
-Documents
-filename.txt


Any help will be really helpful and appreciated. Thank you in advance


Aucun commentaire:

Enregistrer un commentaire