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

Re: custom keyword expansion

From: Lorenz <lorenznl_at_yahoo.com>
Date: Mon, 27 May 2013 08:46:33 +0000

Lorenz wrote:
>Stefan Sperling wrote:
>>On Fri, May 24, 2013 at 12:39:04PM +0000, Lorenz wrote:
>>> I'm playing around with the new custom keyword expansion.
>>> I would like to create a keyword like:
>>> SAL-EAGLE="/><attribute%_name="BRD-SVN-REV"%_value="%r"/><attribute%_name="dummy"%_value="
>>> Problem is, that as soon as I incorporate a '=' character in my
>>> definition, keyword expansion for that keyword stops working.
>>> [...]
>>Fixed in http://svn.apache.org/r1486072 and nominated for backport
>>to the 1.8.x series. Not sure if this fix will make 1.8.0, but it
>>should make 1.8.1.
>thanks for the quick fix.
>I'm using a TSVN nightly in the moment. If the fix doesn't make it
>into 1.8.0 I possibly just grab a the next TSVN nightly that contains

1) There still seems to be a bug in the custom keyword expansion
(using the TSVN nightly which pulls from subversions 1.8.x branch from
last night).

When I use the attached text file with

         svn propset svn:keywords -F val.txt <file-path>

to set the keywords, I get an incomplete expansion.

The file contains

        <attribute name="SAL-EAGLE" value="$Sal-Eagle:$"/>

which gets expanded to

        <attribute name="SAL-EAGLE" value="$Sal-Eagle: "/><attribute
name="SVN-A" value="LL"/><attribute name="SVN-B"
value="untitled.sch"/><attribute name="SVN-D" value="2013-05-27
08:27:28Z"/><attribute name="SVN-P"
value="eagleTests2/untitled.sch"/><attribute name="SVN-R"
value="162"/><attrib $"/>

please note that the expansion is cut-off in the middle of
'<attribute'. That's 256 character if I count correctly. Looks like a
fixed and to small buffer size.

2) additional enhancement request

would it be possible to add '%n' for newline?

Received on 2013-05-27 10:44:13 CEST

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.