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

Re: Keyword to identify exported tag?

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-11-05 16:49:42 CET

On Nov 5, 2005, at 12:48, Phil Endecott wrote:

> Back in the land of CVS, I used to have something like this in my
> file headers:
>
> // This is Gnomovision, release $Name$
>
> When I tagged a release (e.g. V1-0) I would create a tar file:
>
> $ cvs export -r V1-0 -d gnomovision-1.0 gnomovision
> $ tar czf gnomovision-1.0.tgz gnomovision-1.0
>
> Or something like that - it's only been a few weeks and I'm already
> forgetting the syntax! Anyway the point is that CVS would replace
> $Name$ with the tag that I had used in the export command, so
> people looking at files from the tar could see what release they
> had come from. (This is my project release name/number, not the
> revision of the individual file or anything else.)
>
> I'd like to be able to do something similar with Subversion. It
> can happen either when I "svn copy" (or "svncopy.pl") to tag the
> release, or when I export to create the tar file. I already have a
> wrapper script to do the export-and-tar so that would be a good
> place to add it.
>
> Can anyone suggest a good way to do this?

Would $URL:$ work for you? It would contain the full URL, which, if
you export a tag, would contain the name of the tag.

http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.4

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Nov 5 16:53:02 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.