Child pages
  • Adding an External Repository to an SVN Project

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

cd into the directory where you want to add the external project, then type:

Code Block
svn propedit svn:externals .

Once the editor opens, add the name of the directory you want to add the external project into, and the URL of the project. So, if I want to add the UcsfLdapPHP repo (but without the PHP at the end), then type the following:

Code Block
UcsfLdap https://svn.library.ucsf.edu/repos/UcsfLdapPHP/trunk

Once you save the file, svn will output something like:

Code Block
Set new value for property 'svn:externals' on '.'

At this point, you need to commit the current directory:

Code Block
svn commit -m "Added UcsfLdap as an external project." .

Finally, do the following to check out the code:

Code Block
svn update

Now the external project is part of the current project.

See http://www.escapekeys.com/blog/2007/9/23/Subversion-Tip-How-to-Add-External-Repos-To-Your-Project