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

Re: what's the current situation with immutable tags?

From: David Weintraub <qazwart_at_gmail.com>
Date: Mon, 15 Jun 2009 11:56:23 -0400

On Sat, Jun 13, 2009 at 3:17 PM, Robert P. J. Day <rpjday_at_crashcourse.ca>wrote:

> last i recall, one solution was a python-based pre-commit hook,
> another was perms-based. what's the cleanest and easiest way these
> days?

The standard Python pre-commit hook (I believe) has the ability to set an
"add-only" permission on a directory tree. With that, you can create a tag,
but you'd be unable to modify the files in that tag.

That would be the best solution. It would allow anyone you'd like to create
a tag, but no one could modify a tag once it was created (unless you gave
someone permission to do so).

I have a Perl pre-commit hook that does the same thing: You can give
"add-only" permission which allows you to specify who may create a tag, but
will prohibit the editing of the files under that tag once the tags are
created.

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362230
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-15 17:57:24 CEST

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