[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 18:44:52 CET

On Nov 5, 2005, at 17:52, Phil Endecott wrote:

> Ryan Schmidt wrote:
>> On Nov 5, 2005, at 12:48, Phil Endecott wrote:
>>> CVS would replace $Name$ with the tag that I had used in the
>>> export command
>> Would $URL:$ work for you? It would contain the full URL, which,
>> if you export a tag, would contain the name of the tag.
>
> I'm hoping that someone can suggest something better. The URL
> contains lots of distracting stuff in addition to the release name.

Subversion has no concept of a release name, so it cannot provide
better. To Subversion, it's all just directories. No directory is any
more or less significant than any other.

> The aim is that someone who looks at the file can quickly work out
> what they're dealing with. Scenario: someone asks a question on
> the project mailing list and I think "I bet they're using an old
> version" and I ask them to check.
>
> A related thing is this:
>
> const char* version = "$Name$";
>
> void usage() {
> printf("Gnomovision version %s\n",version);
> }
>
> In this case you could have the program parse the actual version
> out of the URL string before printing it, but again I wonder if
> anyone has any better ideas.

This may be relevant:

http://subversion.tigris.org/faq.html#version-value-in-source

Though I think for $URL$ you could just put it in the source file,
since it wouldn't change with every revision. And then you could
parse it as you like.

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