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

"svn copy" or svn:externals?

From: Michael Pruemm <mpruemm_at_eso.org>
Date: Wed, 11 Aug 2010 12:20:54 +0200

We are in the process of converting our old source code repository to
svn. The old repository is flat, all modules are stored on the same
level. We have a build tool that, given a configuration file, checks out
all modules that form an individual application and place them in an
appropriate hierarchy and then builds and installs the application.

The layout for a typical application is:

   ./mod1
   ./ICS/mod2
   ./ICS/...
   ./DCS/...
   ...
   ./COMMON/modX
   ./COMMON/...

In svn, we want to store all modules in this hierarchical form.

My question is what to do with the "COMMON" directory above. The modules
in this directory do not belong to the application, but are specific
versions of modules that override the version preinstalled on all our
systems. Ideally, an application has no need to override one of these
modules, but sometimes it is necessary e.g. because of a bugfix needed
by the application.

A module override must refer to a tagged version of the module.

As I see it, we have two options for the modules in "COMMON":

1) use "svn copy modX/tags/... COMMON/modX" for each module
2) use an svn:externals property to place all modules in COMMON

What are the advantages and disadvantages of these options?
Which one is better, and why?

- Michael
Received on 2010-08-11 12:21:41 CEST

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.