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

Re: svn:keywords for basename of a file?

From: Jack O'Quin <joq_at_io.com>
Date: 2005-01-19 19:27:28 CET

Eric Gillespie <epg@pretzelnet.org> writes:

> "Jack O'Quin" <joq@io.com> writes:
>> $Author$ and $Date$ are provided by svn:keywords. We could use $URL$
>> in place of $File$, but we would prefer to have only the basename of
>> the file, not the whole URL.
> Id contains the author and date. Why not use it?

We can, and probably will. It seems fine for source programs. I
think his main concern was for strings to be imbedded in web pages and

Here is the project leader's comment...

> I really like using $Id$ inside my C/C++ programs, not just as a
> comment, but as embedded string literals. This allows searching
> compiled code using a utility such as "strings" to extract all
> strings, giving you file name, date, etc... In this case using $Id$
> is great! But for an HTML document, or inside a C++ comment, I
> really like to separate them for readability. That's what I used to
> do back in the RCS days of my youth :) But now we use ClearCase at
> work, and it doesn't have ANY keywords...

This is not a big deal. We were just wondering if it was possible.
Clearly, the information is available internally, but there's
apparently no predefined svn:keywords string for the base file name.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 19 19:28:11 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.