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

Re: [TSVN] Referencing one branch from another (not copying per se)

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-01-28 17:43:43 CET

Rick Weyrauch wrote:
> I want to do what I would call a reference to a branch/entry as an entry
> in another branch.
> For example...
> I have a branch that holds a set of DLL's that we get from a sister
> company. They update them on occasion. For bug fix changes, we copy them
> into a checked out directory and then do a commit. For major (version)
> changes, we make a new branch and set the new DLL's in it. We have
> several install projects that require the DLL set and so require them to
> be in each of the install projects branch. If I copy the required DLL
> branch (inside the Repo Browser) to the install branch when I set up the
> install project, I get a nice free copy. The problem lies when the DLL's
> receive a bug fix as now the install branch has a stale copy.
>
> What I want in my install branch is a reference to the DLL branch. This
> way I can have the DLL's in many installs and always get the latest
> version of the DLL's when I Update an given install. If there is a major
> (version) change to the DLL's, I make a new branch for the new DLL's and
> update my install references as each project is brought up to date on
> being compatible with the changes - and/or not modify any install that
> will continue to use the old version.
>
> So, is it possible to reference another branch as an entry inside a branch?
> Rick Weyrauch

Yes. Subversion provides a nice feature called "exports". You can set
them up using the svn:externals property.
See http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.6
and
http://tortoisesvn.tigris.org/docs/TortoiseSVN_en/ch04s09.html
on how to set properties with TSVN.

For you that would mean you would set the externals on e.g. /trunk,
pointing to the branch where you keep your dll's. And it's not even
necessary to create a new branch for every version of the dlls. You can
specify a revision in the externals property. If you don't specify a
revision there, externals default to HEAD.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Jan 28 17:44:29 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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