I’m trying to set up a svn externals on my local Windows machine with TortoiseSVN. I created a working directory by selecting SVN Checkout. It contains a directory named lib whose contents should be imported from an external location. I followed this tutorial and this but still am having hard time setting it up.
The current structure looks like this:
/myproject/trunk/core.php
/myproject/trunk/lib/
/myanotherproject/trunk/core.php
/myanotherproject/trunk/lib/lib01.php
I’d like to make it automatically import the lib files of myproject from the myanotherproject directory. The myanotherproject directory is not a repository. It is also a working directory of another project.
What I did:
- Right Clicked on he
myproject/trunk/libfolder and choseTortoiseSVN -> Properties - Selected
New -> Externals - Clicked on the
Newbutton and in the URL field typed,file:///Z:/myanotherproject/trunk/lib - Clicked
OK
Then I got the error:
Error parsing svn:externals property on
‘Z:\myproject\trunk\lib’:
‘file:///Z:/myanotherproject/trunk/lib’
So does the import source have to be a repository since the URL has to be specified? Thanks for your information.
You can’t specify a working copy as the source for
svn:externalsand I don’t really understand why you need that.svn:externalshas to point to a repository location; you can point to a different repository BTW. In some cases you may want to specify a revision number of thesvn:externalssource.I advise you to check the
svn:externalsreference in the SVNBook. The first two sentences answer your question:Please also check the TortoiseSVN manual on this topic.