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

Re: [DESIGN] Aliases? (Was: RE: Re: I, too, miss tags.)

From: Theo Van Dinter <felicity_at_kluge.net>
Date: 2006-02-25 17:40:37 CET

On Sat, Feb 25, 2006 at 08:07:51AM -0800, Ron wrote:
> > svn cp $R/$P/{trunk,tags/$T} -m "Creating tag $T"
>
> access methods. Each time I want to quickly create a tag (like when I send
> a version to testing), it's a pain, and when something is a pain to do,
> people stop doing it.

So why not create a script to do that for you? "svntag" could do something
simple like this (warning: this script has had very little testing and has
obvious error cases that it doesn't catch):

TAGNAME=$1
CURL=`svn info . | grep URL | awk '{print $2}' | sed -e "s/\/trunk\/.*/\/trunk/"`
NURL=`echo $CURL | sed -e "s/\/trunk$/\/tags\/$TAGNAME/"`
svn cp -m "Creating tag $TAGNAME" $CURL $NURL

If you're on a platform that doesn't allow for scripting such as this,
there's very likely a way to create a version in whatever the appropriate
language is to perform the same actions.

-- 
Randomly Generated Tagline:
"Bushes are nice 'cause they don't have prickers. Unless they do. This one did. Ouch!"
 
 	--Ralph Wiggum
 	  This Little Wiggy (Episode 5F13)

  • application/pgp-signature attachment: stored
Received on Sat Feb 25 17:42:12 2006

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.