[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: Chermside, Michael <mchermside_at_ingdirect.com>
Date: 2004-10-01 14:38:38 CEST

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
Received on Fri Oct 1 14:39:03 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.