You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Lu...@fiducia.de on 2007/06/04 10:33:39 UTC

tags on module alias in svn

Hello,
We are running a large scale conversion from cvs to svn and have a 
conceptional difficulty:

Short question: How to support  module alias in svn, especially tagging?

Explanation:
We have a cvs repository with a number of modules[eg: mod_1 ... mod_n]
some tags contains more than one module [eg. Tag TEST_TAG contains mod_1, 
mod_2]. cvs2svn converts repositorys correct, so I have in my tags/ folder 
a new tag /tags/TEST_TAG/ with two modules inside.

But if I want to create a new tag from trunk containing mod_1, mod_2, I 
can copy only /trunk/mod_1 and trunk/mod_2 successively, but this collides 
with my convention never to comit to an existing tag which is handled by a 
hook-script. In "svn mkdir" I can specify more than 1 directory to create. 
Is similar possible with svn cp ?
How can I provide a possibility to create a tag containing more than one 
"modules" [directorys beneath trunk] ?

Thanx in advance,
Lutz Dornbusch



---------------------------------------------------------------------------------------------------------------------------------------------- 
FIDUCIA IT AG 
Fiduciastraße 20 
76227 Karlsruhe 

Sitz der Gesellschaft: Karlsruhe 
AG Mannheim HRB 100059 

Vorsitzender des Aufsichtsrats: Erwin Kuhn 
Vorsitzender des Vorstands: Michael Krings 
Vorstand: Klaus-Peter Bruns, Hans-Peter Straberger, Eckhardt Werner 

Umsatzsteuer-ID.Nr. DE143582320, http://www.fiducia.de 
---------------------------------------------------------------------------------------------------------------------------------------------- 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: tags on module alias in svn

Posted by Filipe Fernandes <fe...@gmail.com>.
Filipe Fernandes wrote:
> Lutz.Dornbusch@fiducia.de wrote:
> [snip]
>> Explanation:
>> We have a cvs repository with a number of modules[eg: mod_1 ... mod_n]
>> some tags contains more than one module [eg. Tag TEST_TAG contains mod_1, 
>> mod_2]. cvs2svn converts repositorys correct, so I have in my tags/ folder 
>> a new tag /tags/TEST_TAG/ with two modules inside.
>>
>> But if I want to create a new tag from trunk containing mod_1, mod_2, I 
>> can copy only /trunk/mod_1 and trunk/mod_2 successively, but this collides 
>> with my convention never to comit to an existing tag which is handled by a 
>> hook-script. In "svn mkdir" I can specify more than 1 directory to create. 
>> Is similar possible with svn cp ?
>> How can I provide a possibility to create a tag containing more than one 
>> "modules" [directorys beneath trunk] ?
> 
> I think what you might want to use is 'mucc'.  It allows you to batch
> copy, move, and delete commands as one transaction.  It comes with
> subversion as a contrib client-side tool and to make it simply type:
> 
> 	make mucc
> 
> at the root of your subversion source code tree.  So my guess as to what
> you would need to do is the following:
> 
> mucc cp head http://repo/trunk/mod_1 http://repo/tags/TEST_TAG2 \
>      cp head http://repo/trunk/mod_2 http://repo/tags/TEST_TAG2
> 

Argh... looking into it further, this is not what you want either.
It would be closer to...

mucc cp head http://repo/trunk/mod_1 http://repo/tags/TEST_TAG2/mod_1 \
     cp head http://repo/trunk/mod_2 http://repo/tags/TEST_TAG2/mod_2

But /tags/TEST_TAG2 would have to exist first.  The mucc in trunk has the
option of doing a 'mkdir' changing the command to...

mucc mkdir http://repo/tags/TEST_TAG2 \
     cp head http://repo/trunk/mod_1 http://repo/tags/TEST_TAG2/mod_1 \
     cp head http://repo/trunk/mod_2 http://repo/tags/TEST_TAG2/mod_2

but to do this with a 1.4.x client under one commit, I'm not sure...

filipe

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: tags on module alias in svn

Posted by Filipe Fernandes <fe...@gmail.com>.
Lutz.Dornbusch@fiducia.de wrote:
[snip]
> Explanation:
> We have a cvs repository with a number of modules[eg: mod_1 ... mod_n]
> some tags contains more than one module [eg. Tag TEST_TAG contains mod_1, 
> mod_2]. cvs2svn converts repositorys correct, so I have in my tags/ folder 
> a new tag /tags/TEST_TAG/ with two modules inside.
> 
> But if I want to create a new tag from trunk containing mod_1, mod_2, I 
> can copy only /trunk/mod_1 and trunk/mod_2 successively, but this collides 
> with my convention never to comit to an existing tag which is handled by a 
> hook-script. In "svn mkdir" I can specify more than 1 directory to create. 
> Is similar possible with svn cp ?
> How can I provide a possibility to create a tag containing more than one 
> "modules" [directorys beneath trunk] ?

I think what you might want to use is 'mucc'.  It allows you to batch
copy, move, and delete commands as one transaction.  It comes with
subversion as a contrib client-side tool and to make it simply type:

	make mucc

at the root of your subversion source code tree.  So my guess as to what
you would need to do is the following:

mucc cp head http://repo/trunk/mod_1 http://repo/tags/TEST_TAG2 \
     cp head http://repo/trunk/mod_2 http://repo/tags/TEST_TAG2

The above should copy your two modules from trunk into one tag called
TEST_TAG2 in one transaction without violating your hook script.

filipe

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org