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

Re: start/pre-commit hook making tags write once?

From: Ian Schneider <Ian.Schneider_at_ars.usda.gov>
Date: 2004-08-10 19:51:38 CEST

On Tuesday 10 August 2004 06:53 am, Ben Collins-Sussman wrote:
> On Tue, 2004-08-10 at 05:36, Greg Thomas wrote:
> > Hi,
> >
> > I hate re-inventing the wheel, so has anyone already got a pre or
> > start-commit hook script that makes tags write-once?
> >
> > i.e. you can create a tag, but you can't edit it once you have?

I put this in my pre-commit:

/usr/bin/svnlook changed -t $2 $1 | grep "^U\W*tags" && /bin/echo "Cannot
commit to tags" 1>&2 && exit 1

>
> Is this really a problem that needs to be solved?
>
> Seriously... if somebody accidentally changes a tag-directory, you'll
> know about it pretty quickly (assuming you have a post-commit hook
> sending commit emails.) And then you can simply undo the change. It's
> a version control system, after all. :-)

True enough, but with this one-liner, you won't have to take that small step
of undoing the change.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 10 19:52:30 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.