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

Svnperms problem

From: Jet Wilda <jet.wilda_at_kobie.com>
Date: 2005-08-16 18:55:22 CEST

Hi,

        Ok I'm trying to get svnperms to make it so nobody can modify a
tag once it is created. Bascially we have one repository with many
projects in it. i.e.

Projects
  project1
    branches
    tags
    trunk
  project2
    branches
    tags
    trunk
....

So I would like every tags area to be set so that tags can only be
created and/or deleted. However it doesn't seem to be working for me.
Here is what is in my pre-commit hook:

REPOS="$1"
TXN="$2"

PYTHON=/usr/bin/python
MESSAGESCRIPT=/data/svn/Projects/hooks/message.py

PERMCHECK=/data/svn/Projects/hooks/svnperms.py
PERMCONF=/data/svn/Projects/hooks/svnperms.conf

#Make sure the log message is at least 10 characters long
"$PYTHON" "$MESSAGESCRIPT" "$REPOS" "$TXN"

# Check that the author of this commit has the rights to perform
# the commit on the files and directories being modified.
"$PYTHON" "$PERMCHECK" "-f" "$PERMCONF" "-r" "$REPOS" "-t" "$TXN"

# All checks passed, so allow the commit.
exit 0

Ok so I call a script to make sure the message is 10 characters long and
then call svnperms.py to make sure they aren't modifying a tags
directory. Here is what is in my svnperms.conf:

[Projects]
trunk/.* = *(add,remove,update)
tags/[^/]+/ = *(add,remove)
branches/[^/]+/.* = *(add,remove,update)

Why isn't this working? What do I need to change to make this work?

TIA

Jet
        

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 16 18:57:43 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.