May 15, 2009


"This assumes that your project layout looks something like this:


* In the top of your project trunk, execute the following:

svn propedit svn:externals .

* This will open an editor session. In the file opened by your editor, each line indicates a different external svn repo to pull. The first segment of the line is the directory where you want the pull to exist. The last segment is the svn repo URL to pull. You can have an optional middle argument indicating the revision to use. Some examples:
o Pull framework repo from head:


o Pull framework repo from revision 2616:

framework -r2616

* After saving and exiting, update the repo:

svn up

* Commit changes:

svn commit

One thing to note: any directory you specify for an svn:externals checkout should not already exist in your repository. If it does, you will get an error like the following:

svn: Working copy 'sharedproject' locked
svn: run 'svn cleanup' to remove locks

After that add default username for svn host (because we do not have username of external repository)

  • Linux

vi ~/.ssh/config
User <svnuser>

  • Windows - set default username for <svn-host> via putty

No comments:

Post a Comment