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

Re: A stupid pre-commit hook question...

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-12-12 20:37:48 CET

"Jay 'Whip' Grizzard" <elfchief@lupine.org> writes:
> Now, a stupid question that I don't believe I've seen addressed yet. In the
> pre-commit hook, is it possible to get information about the transaction
> being attempted, beyond filename?
> Right now I've got a pre-commit hook that keeps my /tags directory
> from being written to ... which is great at preventing mistakes, but
> also makes it annoying to add tags and the like (since I have to remove
> the hook before committing a 'tag'.) ... I guess the question is, is
> there any way I can set things up so that it's legal to -create- a tag,
> but not to perform any further commits to it? I don't see an obvious way
> to do this ... can someone point me in the right direction?

You should use the `svnlook' program to explore the txn.
Try 'svnlook --help' for more details.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 12 21:17:34 2002

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