[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN Externals

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-08-18 01:58:01 CEST

On Aug 17, 2006, at 23:35, Res Pons wrote:

>>> Thanks for all the info. So if I'm running svn on a linux
>>> redhat enterprise 3.5 server and I have the following projects
>>> at the root of the repo
>>> ProjA
>>> ProjB
>>> ProjC
>>> ProjD (just a common library folder w/o branches & tags & trunk
>>> subfolders)
>>> And I want projD to be symlinked into A, B, & C when everyone
>>> checks out these 3 latter projects so they automatically get
>>> projD into their working folders... say I go to ProjA and create
>>> a file called what and what I do put in it and just check it
>>> in? Our SVN server is a Linux box and developers either use
>>> Eclipse plugin or svn commnad line; the Tortoise example totally
>>> lost me. Sorry.
>> If $REPO is the URL to your repository, then:
>> cd /working/copy/of/ProjA/trunk
>> svn propset svn:externals "libs $REPO/ProjD" .
>> svn ci -m "Adding external to bring $REPO/ProjD into this project
>> into a directory called libs"
> Very clear. I just ran your command and replaced the paths and it
> worked. Now, here's a question I have: Whatever I do in this newly
> created symlinked folder...does svn treat it as if I was directly
> in the folder or inside the source project? Thanks your example
> was very clear.

Using the command-line client, if you make changes in your project
proper, and also within the "libs" directory pulled in via external,
and you commit the root of the working copy, only the changes to the
project proper will be committed; the changes in the libs directory
will not be committed. You can commit them separately by changing to
that directory and committing, and they will be committed back to
$REPO/ProjD where that directory comes from. This also means that any
other project using $REPO/ProjD via external will automatically
inherit these changes, which should be what you want. If that isn't
what you want, then externals may not be the right solution for this

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 18 01:59:35 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.