Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have simple project that is in SVN and everything works fine. I want to use code from another SVN server in folder inside this simple project.

How can I do this?

I want to have the ability to update code from this "other" SVN server later on.

svn co http://svnserverone.com/projects/trunk/ mjproject
svn co http://anotherserver.com/whatever/trunk/ mjproject/path/module

Thanks for your time and answers!

Oto

share|improve this question
    
if your going to use externals you should look into branching your code and using a branch as external, so that in case you go rewriting the whole thing it doesn't affect you code that relies on the previus version. –  solomongaby Feb 24 '10 at 12:43
add comment

1 Answer 1

up vote 11 down vote accepted

The easiest way to do this is using something called svn:externals

I had to add a space to the http:// and the anotherserver due to the spam protection thing

cd mjproject/path/modules
svn propset svn:externals 'new_module_name http:// anotherserver.com/whatever/trunk/' .

property 'svn:externals' set on '.'

then commit:

svn ci -m "adding externals"

then do

svn up

References: http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.