How do I perform a Subversion update on my externals only?

2.3k views Asked by At

We use Subversion for version control, and we share common code among projects using externals. Any given project looks something like this:

  • project/ (svn:externals is set on this directory)
    • externals/ (this directory is not checked in; it is specified in svn:externals)
      • moduleA/ (this comes from a different repository)
      • moduleB/ (this comes from a different repository)
    • (other files and directories here)

To clarify, the svn:externals property set on the project/ directory is:

http://svnserver/repository/moduleA externals/moduleA
http://svnserver/repository/moduleB externals/moduleB

I would like to perform svn update on the project/ directory, but only update the contents of externals/. Is there any way to do that?

1

There are 1 answers

1
Jaco Briers On

Just doing a svn update on the project\externals directory should work; something like:

svn update c:\somedir\project\externals

Subversion allows you to update individual sub-directories