You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "YON - Jan C. Hardenbergh" <jc...@terarecon.com> on 2008/10/30 16:47:53 UTC
Observation on tagging partial trees with different rev levels.
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@terarecon.com, 978-369-6500x272
Director of VolumePro Software Engineering, TeraRecon, Inc. Concord
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org