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

\tools\hook-scripts\svnperms.py identifies wrong sections

From: Georg Viehöver <viehoever_at_sigma-c.de>
Date: 2005-07-26 11:29:46 CEST

Hi,

I believe I have stumbled over a minor bug in svnperms.py. It identifies sections in it's config file using the pattern SECTION = re.compile(r'\[([^]]+)\]'). This wrongly identies certain path pattern as sections, for example "[^/]+ = *()" will be identified as
section [^/] instead of being recognized as a pattern for entries on the first directory level.

I suggest to add a "$" to the pattern: SECTION = re.compile(r'\[([^]]+)\]$')

Georg

-- 
   Georg Viehöver(viehoever@sigma-c.com)
   Senior Software Architect
   Sigma-C GmbH, Thomas-Dehler-Str.9, 81737 Munich, Germany
   Phone: +49 (89) 63 02 57-73, Fax: -49
   http://www.sigma-c.com
  
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 26 11:32:03 2005

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

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