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

[PATCH] Enhancement to svnperms.py to read sections via regex

From: prabhugnanasundar <prabhugs_at_collab.net>
Date: Wed, 22 Sep 2010 18:37:41 +0530


The svnperms.py script reads the svnperms.conf file, which needs the
section rules for all the repos uniquely. This was quite tough when we
have n number if repos. I wished that svnperms.py reads regex matches
and applies the configuration rules and came up with this patch.
Mid-way of my coding work, I came to know that -s switch would let us
specify the section name explicitly, but not the regex thing.
I modified the code to search for a matching section via regex, which
might be really helpfull for certain cases.
I have attached the log file and the patch file with this mail for

Thanks and regards,

Make svnperms.py to accept repo section names via regex rather than absolute.
* tools/hook-scripts/svnperms.py
  (check_perms): If absolute section is not found, try to find it by
   matching as a regex.

* tools/hook-scripts/svnperms.conf.example
  (): Add some default section example.

Patch by: Prabhu Gnana Sundar <prabhugs_at_collab.net>

Received on 2010-09-22 15:11:22 CEST

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