[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: Phil Endecott <spam_from_subversion_users_at_chezphil.org>
Date: 2005-11-05 17:52:35 CET

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. 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.

Cheers,

--Phil.

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