Skip to content


How to Setup Subversion Externals

So I’ve read the svn book, especially this pages:
http://svnbook.red-bean.com/en/1.1/ch07s04.html
http://svnbook.red-bean.com/en/1.1/ch07s02.html

trying to figure out how to use the svn:externals property.A All I was looking for was something that says:

$ svn propset svn:externals "PATH1 URL" PATH2

where PATH1 is what you want the external to be called, URL is the url of the external, and PATH2 is where you want it placed (I’m guessing).A For example:

$ svn co http://svn.example.com/repo/myproject
$ cd myproject
$ svn co http://svn.example.com/repo/mysubproject
$ svn co http://svn.example.com/repo/myotherproject
$ svn propset svn:externals 'mysubproject http://svn.example.com/repo/mysubproject' .
$ svn propset svn:externals 'myotherproject http://svn.example.com/repo/myotherproject' .

Now when I check out myproject, mysubproject, and myotherproject will be checked out, and placed their respective directories.

Now that I figured it out, I can see it’s pretty simple.A I just don’t understand why nobody could spell it out for me…

Posted in Software Development, Subversion, Tips and Tricks.


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. schoetbi says

    Hi,

    as I see you are using subversion quite “in depth”. Do you have a solution maybe for my problem I have many externals and I now want to move the repository to another server. Is there a way to automatically modify the externals?

    regards,
    Tobias



Some HTML is OK

or, reply to this post via trackback.