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

[ACLs]svnperms.py not work!

From: Zoom.Quiet <zoom.quiet_at_gmail.com>
Date: 2006-05-20 11:11:45 CEST

i usage svnserver to support my teams project;
upgrade svn 1.2.0 to svn 1.3.1 , want to usage ACLs by svnperms.py ;
but! it debug every hard!
my per-commit script is like """
REPOS="$1"
TXN="$2"
HOOKS="/usr/local/repos/maildoc/hooks/script"
$HOOKS/svnperms.py -r "$REPOS" -t "$TXN"
"""
so so my svnperms.py fixed some for can running:"""
## Zoomq:060518 add for real svnlook
RELSVNLOOK = "/usr/local/bin/svnlook"
...
def _execsvnlook(self, cmd, *args, **kwargs):
        #execcmd_args = ["svnlook", cmd, self.repospath]
        execcmd_args = [RELSVNLOOK, cmd, self.repospath]
    ...
"""

so my svnperms.conf is like:"""
[groups]
staff = maildoc
superuser = zoomq
[norm groups]
admins = docmgt
foo = foousr
[norm]
tangle/[^/]+/ = *(add,remove,update)
trunk/[^/]+/ = @admins(add,remove)
trunk/foo/.+ = *(add,remove,update)
#branches can free doing
branches/[^/]+/ = *(add,remove,update)
#tags only can (add,remove)
tags/[^/]+/ = @admins(add,remove)
tags/[^/]+/ = @superuser(add,remove)
"""

but! whatever i try, that trunk's root dir ,anyone can add new dir!

so any suggest for how to usage svnperms.py or debug the hooks?

thanx for all

-- 
"""Time is unimportant, only life important!
blogging  :  http://blog.zoomquiet.org/pyblosxom/
wiki enter:   http://wiki.woodpecker.org.cn/moin/ZoomQuiet
in douban:  http://www.douban.com/people/zoomq/
"""
Received on Sat May 20 11:12:39 2006

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.