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

RE: RE: Revision numbers in subversion...

From: Srilakshmanan, Lakshman <lakshman.srilakshmanan_at_police.vic.gov.au>
Date: 2007-09-11 07:24:59 CEST

Hi Shawn,

What happens if a developer adds a new file under a folder in a tag :)

Thanks
Lakshman
-----Original Message-----
From: Shawn Talbert [mailto:stalbert@exploreconsulting.com]
Sent: Tuesday, 11 September 2007 5:10 AM
To: users@subversion.tigris.org
Subject: RE: Revision numbers in subversion...

I just use a pre-commit hook that ONLY allows adds to any folder named
"tag".

It allows devs to tag their own projects. It also allows adding to a tag
folder after the initial tag creatuib (we use this ocassionally when we
want to save compiled binaries alongside the tagged source code).
However, nothing can be modified or deleted.

-----Original Message-----
From: Erik Huelsmann [mailto:ehuels@gmail.com]
Sent: Monday, September 10, 2007 12:57 AM
To: Rainer Sokoll; users@subversion.tigris.org
Subject: Re: Revision numbers in subversion...

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

[your-repos]
# 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.

HTH,

Erik.
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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

================================================================================================
EMAIL DISCLAIMER

This email and any attachments are confidential. They may also be subject to copyright.

If you are not an intended recipient of this email please immediately contact us by replying
to this email and then delete this email.

You must not read, use, copy, retain, forward or disclose this email or any attachment.

We do not accept any liability arising from or in connection with unauthorised use or disclosure
of the information contained in this email or any attachment.

We make reasonable efforts to protect against computer viruses but we do not accept liability
for any liability, loss or damage caused by any computer virus contained in this email.
================================================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 11 07:21: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.