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

Re: Svnperms problem

From: Joshua Varner <jlvarner_at_gmail.com>
Date: 2005-08-16 20:20:24 CEST

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

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.