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

Re: simplify tagging

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-12-15 09:27:41 CET

On Dec 14, 2005, at 17:13, Sebastian Böhm wrote:

> tagging in svn is somewhat difficult. I have to write :
> svn copy \
> svn+ssh://user@host.domain.tld/home/svn/project1/ \
> svn+ssh://user@host.domain.tld/home/svn/project1-tag-rc1/ \
> -m "rc1"

This is easier:

svn copy \
svn+ssh://user@host.domain.tld/home/svn/project1{,-tag-rc1} \
-m "rc1"

Using the more traditional trunk / tags / branches layout, the "long
way" would be:

svn copy \
svn+ssh://user@host.domain.tld/home/svn/project1/trunk \
svn+ssh://user@host.domain.tld/home/svn/project1/tags/rc1 \
-m "rc1"

And the simplification would be:

svn copy \
svn+ssh://user@host.domain.tld/home/svn/project1/{trunk,tags/rc1} \
-m "rc1"

This is not a feature of Subversion; it is a feature of the shell.

Writing a shell script that grabs the correct part of the URL from which
the working copy was checked out and constructing the correct svn copy
command shouldn't be too hard. I know there is a script svncopy.pl
available, but I haven't used it so I'm not sure if that's what it does
or if it's for a different purpose.

-- 
http://www.fastmail.fm - Or how I learned to stop worrying and
                          love email again
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 15 09:32:31 2005

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.