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

Re: tagging and keeping the tree structure: an existential question

From: Michele Zamparelli <mzampare_at_eso.org>
Date: Fri, 08 Aug 2008 08:22:36 +0200

Hi Hilco and Ryan,

thanks very much for your reply.

Hilco Wijbenga wrote, On 07/08/2008 20:28:
>> Suppose that M1 and M2 are two modules in the tree-like SVN repository,
>> which could look like:
>>
>> trunk/alpha/beta/M1 assigned to person P1
>> trunk/alpha/beta/M2 assigned to person P2
>> (any depth is allowed, depending on the circumstances)
>
> Why not alpha/beta/M1/trunk and alpha/beta/M2/trunk? If necessary, you
> might want to consider using svn:external to link various modules
> together in a separate project.
>

the drawback of such an approach is that in order to check out the HEAD
of the entire project (ooops, I mean the trunk, to use modern SVN
parlance) I need to do:

mkdir alpha/beta/M1 && cd alpha/beta/M1 && svn co URL/alpha/beta/M1/trunk

mkdir alpha/beta/M2 && cd alpha/beta/M2 && svn co URL/alpha/beta/M2/trunk

etc. etc. etc. for *all* the modules in the project, wherever they reside.
I do not think this is feasible for several millions line of code.
One also needs to know their location in the tree.

Whereas the "CVS approach" would simply have:

svn co URL/trunk and there you go.

>> Notice that such a behavior can be obtained with the command line, although
>> in an error-prone way, by doing something like:
>> svn mkdir -m "creating tag MyTag" svn://URL/tags/Mytag
>> svn mkdir -m "creating tag MyTag" svn://URL/tags/MyTag/alpha
>> svn mkdir -m "creating tag MyTag" svn://URL/tags/MyTag/alpha/beta
>> and finally
>> svn copy -m "tagging MyTag" M1 svn://URL/tags/MyTag/alpha/beta
>
> I would do something like
>
> mkdir -p tags/MyTag/alpha/beta
> svn add tags/MyTag
> svn copy ...
> svn commit
>
> That's not so error prone.
>
well, I consider error prone any activity where a human has to
repeatedly type in a sequence of string "alpha/beta/gamma".
True, this could be automated with a script from the command line, but
what do we do with Eclipse??

cheers

Michele

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-08 16:49:28 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.