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

Re: Externals - VSS

From: Martin Tomes <lists_at_tomes.org>
Date: 2006-11-17 13:04:57 CET

Steve O'Hara wrote:
> In my quest to convert from VSS to svn I've tinkered with the notion
> that all shared files have to exist in separate directories which are
> then referred to by the externals mechanism.
> However, am I right in thinking that if I make a change to a file that
> is from an external project, when I commit the changes, the changed
> external file will not be submitted to svn automatically?

The alternative (and I think better) approach to externals is to use svn
switch to get shared code. Say you have some shared code in
.../shared/libx and you want it in your working copy. Create an empty
folder where you want it and call it libx. Add and commit that folder.
Now do this:

svn switch .../shared/libx libx

Where ... is the rest of the URL. Now you will have libx in your
working copy, updates and commits will happen 'through' the switch. We
create a script at the top level of each project which executes the
switch commands. On most of them adding a -u unswitches them.

-- 
Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'
Visit http://www.subversionary.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 17 13:05:38 2006

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