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

Re: Create-only access to tags subdirectory

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2004-10-01 15:48:35 CEST

Here's to everybody who objects to having to write a pre-commit script
to prevent /tags/ commits: *You don't have to.*

We provided you with one:
http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/svnperms.py ;
there is an example configuration there too.

bye,

Erik.

On Fri, 1 Oct 2004 08:38:38 -0400, Chermside, Michael
<mchermside@ingdirect.com> wrote:
> Paul Moore asks:
> > Ideally, I'd like to make the tags subdirectory of my repository
> > "create only" - ie, copies can be added to the tags directory, and
> > read, but once they have been created they cannot be updated.
>
> The "obvious" (to me) answer is provided:
>
> Bryan Donlan:
> > You can use a pre-commit hook to reject commits which alter tags.
>
> Max Bowsher:
> > It can be done quite easily by running "svnlook changed" in a pre-commit > script, parsing and processing the output, and maybe rejecting the commit.
>
> Unfortunately, while I understand (in theory) that a pre-commit script
> should be able to enforce something like this, I'm not quite sure HOW
> to do it (I don't understand pre-commit scripts all that well yet.) But
> this is such a common situation, that there must be SOMEONE on this list
> who has already written such a script. Would that person mind sending a
> copy of a working script to "lock down the tags directory"?
>
> -- Michael Chermside
>
> This email may contain confidential or privileged information. If you believe you have received the message in error, please notify the sender and delete the message without copying or disclosing it.
>
>
>
>
> ---------------------------------------------------------------------
> 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
Received on Fri Oct 1 15:48:57 2004

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.