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

Re: missing feature in Subversion: $Format keyword a la PRCS

From: John Peacock <jpeacock_at_rowman.com>
Date: 2004-12-23 19:37:51 CET

Greg Hudson wrote:

> On Thu, 2004-12-23 at 12:28, Basile STARYNKEVITCH wrote:
>
>> /* $Format: "static char* version = \"$ProjectVersion$\";"$ */
>> static char* version = "x.x";
>
>
> An interesting idea.
>

Actually, I was going to respond to this message (but I had a server fan
fail and my DNS went away for a while). :(

I have been sheparding a patch (originally proposed by plasma) to change
keyword handling to use a hash instead of the current fixed struct. As
part of that patch, it introduces a printf-style formatting for
keywords, but didn't expose that to the user, basically something like

        #define SVN_KEYWORD_ID_FORMAT "%b %d %a %r"

so defining $Id: $ in terms of basename, date, author, and rev. See

        http://subversion.tigris.org/issues/show_bug.cgi?id=890

for more details.

One of the primary reason this change wasn't accepted was that it only
sets the groundwork for later features (like inherited properties and
user defined keywords). However, not having use PRCS, I was not aware
of the $Format $ keyword, which actually seems like the ideal way to
expose the above patch's core functionality.

I'll have to revisit the patch to see how hard it would be to implement
this...

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 23 19:38:53 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.