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

Re: [PATCH]: Transform rules prototype

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: 2005-11-07 00:48:03 CET

On 2005-11-06 14:34:46 -0500, Daniel Berlin wrote:
> On Sun, 2005-11-06 at 20:15 +0100, Vincent Lefevre wrote:
> > release#*/=branches/gcc-$1-branch/
>
> Really ugly, IMHO.

Perhaps the way to write rules should be configurable. :)

> > The special characters are the following ones:
> > 1. At the beginning of the rule, ^ means that the match must occur
> > at the beginning of the string.
> > 2. * matches anything up to the separator (following *), if there is
> > one. For instance, in the 3rd rule above, * would be equivalent
> > to [^/]* in a regexp.
> > 3. In the replacement text, $[1-9] is replaced by the corresponding
> > matched text. $. is replaced by the URL given by svn info.
> >
> 2 is non-easy without a regex library, we need to discover what it
> captures.

2 would just be a simple loop until some given character is
encountered (or the end of the string). No need for any library
for that.

-- 
Vincent Lefèvre <vincent_at_vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 7 00:48:55 2005

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.