You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Zoom.Quiet" <zo...@gmail.com> on 2006/05/20 09:11:45 UTC

[ACLs]svnperms.py not work!

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/
"""