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

Observation on tagging partial trees with different rev levels.

From: YON - Jan C. Hardenbergh <jch_at_terarecon.com>
Date: Thu, 30 Oct 2008 12:47:53 -0400

I am writing this in the hopes it may save others a few hours of
experimentation, or perhaps a discussion of things I have missed, or
even some reassurance that "sparse directories" will do what we want. If
it does, I will check it out after our current release. We have a few
scripts to manage the partial repository checkouts that work fine,
except for one issue.

The issue is how to create a tag of a partial tree with different rev
levels in different directories. See my definition of a partial
repository (tree) below.

First, IF all of the directories are at the same rev level, just tag the
whole repository. It is fast & cheap with no downside.

We have been using SVN for about a year and we getting close to our
first major product release using SVN, so, I finally had to figure it out.

My conclusion - you cannot. So, what to do? Checkout the whole tree.
Update the directories you want. Copy from WC to tag.

Checkout the whole tree:

svn checkout http://hibbert.rtviz.com/svn/VolumePro/trunk trunk

Now modify what you wish:

svn checkout -r {2008-10-26}
http://hibbert.rtviz.com/svn/VolumePro/trunk/sw/drivers trunk/sw/drivers

and now make a tag from the working copy:

svn cp trunk http://hibbert.rtviz.com/svn/VolumePro/tags/vli_4_1_0_20081031

And Bob's yer uncle!

-jch

REFERENCES:

Subject: Re: Copy of a partial tree?
From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-04-20 00:10:02 CEST

Subject: RE: Re: Best practice for partial repository checkout
From: Jan Hardenbergh <hardenbergh_at_terarecon.com>
Date: Thu, 22 May 2008 10:59:59 -0400

So, for the sw library product, we only need (for example...)

 common/PNGFile
 common/include
 hw/falcon/include
 sw/xyz
 sw/utils

We have one script which does the initial checkout and another script
that updates the tree - both use pysvn. Here is the update script:

<script in email archives>

-- 
YON - Jan C. Hardenbergh, jch_at_terarecon.com, 978-369-6500x272
Director of VolumePro Software Engineering, TeraRecon, Inc. Concord
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-31 23:21:20 CET

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.