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

Re: Revision numbers in subversion...

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2007-09-10 09:56:38 CEST

On 9/9/07, Rainer Sokoll <R.Sokoll@intershop.de> wrote:
> On Sun, Sep 09, 2007 at 10:49:09PM +0200, Erik Huelsmann wrote:
> > On 9/9/07, Rainer Sokoll <R.Sokoll@intershop.de> wrote:
> > > Unfortunataly, there is no "create" permission in subversion :-(
> >
> > This pre-commit script knows about an 'add' permission:
> >
> > http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/svnperms.py
> What I want to achieve: everyone with write permissions to /tags is
> allowed to create a directory (i.e.: create a tag), but once the tag is
> created, it must be immutable, also for the person(s) with write
> permission to /tags (this is the idea of a tag, as I understand it).
> Is this possible with svnperms.py?

Yes. The example below should give you that (untested, but you get the idea):

[your-repos groups]
taggers = john jack joe

# only @taggers may add to the tags list
# nobody may commit changes or remove them
tags/[^/]+/ = *() @taggers(add)
# nobody may commit to tags, be it changes, additions or removal
tags/[^/]+/.+ = * ()
# everybody may commit to trunk
trunk/.* = *(add, update, remove)

I have no idea what this setup does with the area outside of tags and
trunk. If you give the script a try, please let us know.


PS: You still may want to use path-based authorization for read access control.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 10 09:53:25 2007

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.