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

Re: Lock a branch

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2006-11-07 00:14:53 CET

On 11/7/06, Ron Olson <tachoknight@gmail.com> wrote:
> Hi all-
>
> I've been going through the Subversion book (printed the whole thing out)
> but haven't found anything that really answers this question: Can I lock a
> branch/tag so that no changes can be made to it? I am using this particular
> repository for documents that become a printed catalog; once the docs are at
> the printer, they should never, ever be changed again; I need to make sure
> that I can always print out this branch and have exactly what was sent to
> the publisher.
>
> I can't rely on anybody reading my comments ("DO NOT CHANGE!"), I can lock
> the documents but others can steal the locks, and I was thinking of writing
> a hook script to prevent a commit to the branch taking place, but it seems
> ...silly to have to modify it for each new branch.
>
> Is there any good, standard ways of doing this?

Did you have a look at svnperms.py
(http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/) ? It does
exactly what you want and *lots* more.

HTH,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 7 00:15:39 2006

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.