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

Update on Issue 890 - Stage one of User Defined Keywords

From: John Peacock <jpeacock_at_rowman.com>
Date: 2004-03-01 20:04:07 CET

In reference to issue 890:

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

I have uploaded a mostly updated version of Plasma's patch to implement
printf-style formatting for custom keywords. By "mostly updated" I mean that it
applied and tested cleanly last week, but some changes that have gone in very
recently are not accounted for. I also didn't make any effort to create
compatibility shim functions to account for the altered function definitions.

The reason why it isn't completely up to date is that I have been working on my
own extension to the patch. My version permits the user to create their own
keywords using the existing property feature. So, for example:

        $ echo '$MyKeyword$' > testfile
        $ svn add testfile
        $ svn ps svn:keywords MyKeyword testfile
        $ svn ps MyKeyword "Something wicked..." testfile
        $ svn ci -m 'set some random keyword'
        $ cat testfile
        $MyKeyword: Something wicked... $

What I haven't done is decide where to actually check to make sure that the
property will not cause the keyword to extend over multiple lines, nor have I
added additional testing of the new functionality. I also need to create the
appropriate wrapper functions, so that this patch might be suitable for
inclusion in 1.1.0.

Right now, I don't think this feature is as useful as it could be. When Issue
1054 is resolved (inherited properties), then a single propset on the top level
directory would make all files have the same $Version$ string, for example.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 1 20:02: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.