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

Re: [PATCH] fix to svnperms.py to allow regex's that start with '['

From: Michael W Thelen <mike_at_pietdepsi.com>
Date: 2005-08-18 19:23:14 CEST

Chris Leishman wrote:
> The '[' character is a legitimate start to a regular expression - for
> example in '[^/]+/tags' to match a tags directory inside any single
> parent directory. Unfortunately, the regex match for section headers
> treats such a regex as the start of a new section (named '^/').
>
> This patch fixes that behaviour by making the section match check that
> nothing follows the section header on the line.

Thanks for the patch. It looks like no one has reviewed or commented on
this patch since it was posted. I don't know Python, but knowing Perl
regular expressions, it looks like this change simply allows regular
expressions beginning with [ not to be misrecognized as section headers.
 Of course, regular expressions consisting entirely of a single
character class will still be interpreted as section headers. But that
doesn't seem like a very likely regular expression to be used in the
permissions config file.

Any objections to this patch being applied? I'll file it as a patch
issue in a day or two if no one comments.

-- 
Michael W Thelen
It is a mistake to think you can solve any major problems just with
potatoes.       -- Douglas Adams
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 18 19:36:20 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.