On 8/16/05, Jet Wilda <jet.wilda@kobie.com> wrote:
> 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
> ....
. . .
>
> [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?
>
This problem is that you have multiple projects in the repository,
but use the example patterns for the single project repository. The
script uses this line:
pattern = re.compile("^%s$" % option)
to create the pattern to match the txn against. But all of your txn
paths will have project_name/ in front of them.
Try
[Projects]
project1/trunk/.* = *(add,remove,update)
project1/tags/[^/]+/ = *(add,remove)
project1/branches/[^/]+/.* = *(add,remove,update)
project2/trunk/.* = *(add,remove,update)
project2/tags/[^/]+/ = *(add,remove)
project2/branches/[^/]+/.* = *(add,remove,update)
or maybe
[Projects]
(project1|project2)/trunk/.* = *(add,remove,update)
(project1|project2)/tags/[^/]+/ = *(add,remove)
(project1|project2)/branches/[^/]+/.* = *(add,remove,update)
not positive on the python regex syntax there.
Josh
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 16 20:22:17 2005