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

Re: How to make the "tags" folder immutable?

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 8 Apr 2009 16:52:33 -0400

I believe the Python based pre-commit access control hook might be
able to help. I believe it allows you to mark a directory as
"add-only". That is, you can create a new directory via "svn cp", but
won't let you modify the files on that directory. That means you can
let people create tags, but not modify a tag once they create one.

I have a Perl version that does the same thing over at

Basically, you can mark a file/directory (using Perl regular
expressions to specify the file or directory) as either "read-only",
"read-write", or "add-only" and who has those permissions. We use this
to "lock" branches down, but still allow a small team to make changes,
or prevent users from accidentally modifying a tag.

The trigger will also verify that properties are set on particular
files (again, you specify that with Perl regular expressions, prohibit
certain file names, and even make sure that the commit message is
formatted correctly.

On Tue, Apr 7, 2009 at 3:18 PM, Shrinivasan <tshrinivasan_at_gmail.com> wrote:
> Hi,
> I have subversion server on windows.
> We have several internal releases of our projects and
> we maintain those releases under "tags" folders.
> but we get into trouble as people often commit into tags folder.
> We are in the need of some kind of hook scripts
> which can prevent write on tags folders.
> Please help me to get the hook script for windows.
> Thanks.
> --
> Regards,
> T.Shrinivasan
> My experiences with Linux are here
> http://goinggnu.wordpress.com
> For Free and Open Source Jobs
> http://fossjobs.wordpress.com
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1582168
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

David Weintraub
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-08 22:53:39 CEST

This is an archived mail posted to the Subversion Users mailing list.