[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: Rick Weyrauch <rweyrauch_at_greatnotionssolutions.com>
Date: 2005-01-28 18:37:23 CET

That is just what the Dr. ordered. Thanks for the feedback and I apologize for not knowing SVN better.

My question then becomes one of..... Why isn't there this option inside the repo browser? Like a context menu "External..." along with the Copy and Move commands?

I see there is a show properties in the browser but did not see a set property there.

Once again - Thanks a bunch - Wish I had asked 6 months ago! I have a bunch or rearranging to do now.

Rick

-----Original Message-----
From: SteveKing [mailto:steveking@gmx.ch]
Sent: Friday, January 28, 2005 10:44 AM
To: dev@tortoisesvn.tigris.org
Subject: Re: [TSVN] Referencing one branch from another (not copying per
se)

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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Jan 28 18:35:35 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.