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

Re: VSS style sharing of files (externals, vendor branches only for directories?)

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2005-08-12 10:07:52 CEST

Neil Tremble wrote:
> We have a large project consisting of a number of common files plus several
> variants. The files live in a number of directories:
> \Variant_1
> \Application
> \Bootloader
> \Drivers
> \Variant_2
> \Application
> \Bootloader
> \Drivers
> \Common_Files
> \Application
> \Bootloader
> \Drivers
> The common files will be modified over time, and we would like the changes
> to (automatically?) reflect in the variants. The variant files will also
> change, but those changes must not affect any other branches.
> Is there any way we can share individual files? Ideally commits to the
> variant branches do the right thing (update the common files, perhaps after
> a warning).

You could setup a post-commit hook, but I'm not sure if and how that works.

Otherwise, reflecting changes automatically in another variant is not even
supported by VSS: you first need to commit changes before you test them in
other variants. This is also the biggest criticism I have on the method
itself, I'd rather build several variants from within the same folder so I
can test then together.
Other than that, Subversion has good merging support, so you could keep
separate trees an manually merge changes is the common files whenever you
work on a variant. This has the additional benefit that you could
theoretically always checkout a variant and compile it, without having to
care for changes in the common files that might otherwise break this build.

Seriously, we did the same here for years and the system wasn't stable by
itself in that it always required people to consider all places where a file
was used - more than once they didn't. The other system also relies on
people, but this time they have to actively break things, which is much more

YMMV - as always.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 12 10:09:48 2005

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.