问题
I am trying to set the external to a specific revision via command line. Earlier I got an error indicating that I needed to use the working directory when I used the repository URL for both my source and destination. I changed the destination folder to my working directory. I do not want to have the externed folder added to my working directory(seems it should be unnecessary).
Notes:
- http replaced with htp to avoid hyperlinks.
- htps://svn.company.com/svn/Build = location of the externed folder
- C:/Subversion/Build/Tool = folder where the svn property 'svn:externals' is set
Here is my syntax:
svn propset svn:externals -- "-r611 htp://svn.company.com/svn/Build" "C:/Subversion/Build/Tool"
Here is the error I get: svn: E195005:
Error parsing svn:externals property on 'C:/Subversion/Build/Tool: '-r611 htp://svn.company.com/svn/Build
Any help with syntax/ cause of error is appreciated
回答1:
- External folder's content will not appear in your WC until you will not perform
svn up
after defining externals - You must to read at least
svn help ps
(in the part of externals format) - You miss at least one mandatory parameter and wrongly define second
For command
WC>svn propset svn:externals "https://subversion.assembla.com/svn/customlocations-greylink/trunk/Local Data" .
where WC is root of Working copy of repository-trunk I defined directory subdir Data (not existing before as real folder in tree) of current dir (.) as container for HEAD-revision for content of directory /trunk/Local
from external repo
In case of fixed external -r NNN
have to be added in front of URL
Full command
svn propset svn:externals "-r611 htp://svn.company.com/svn/Build" Build/Tool
must map htp://svn.company.com/svn/Build at the revision 611 to folder Build/Tool in repo-folder, linked to your WC (/trunk
?)
Easier form is writing value of svn:externals into file and using -F option in propset. If externals.txt contain string
-r611 htp://svn.company.com/svn/Build
(without double quotes here)
svn propset svn:externals -F externals.txt Build/Tool
will produce the same result as the above command. Added value - for permanent path you can always use the same command and change only extermal text-file
回答2:
Uh, did you mean htp or http? Because I see htp. Maybe that's causing the problem.
来源:https://stackoverflow.com/questions/23277009/svn-propset-svnexternals-error