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

Re: ooky bug I just filed...

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2003-01-10 22:37:12 CET

Greg Stein <gstein@lyra.org> writes:
> See: http://subversion.tigris.org/issues/show_bug.cgi?id=1083

Wow. Yeah, we should at least have warnings all over the
documentation and the pre-commit template, telling people not to do
this.

Hmmm. How can we forcibly prevent hooks from modifying the txn? At
first glance, we can't. A hook is a program; a program can do
anything to the repository it wants to, permissions allowing. This is
why we invented the `svnlook' program, in fact -- to have a read-only
program for pre-commit hooks to use, iirc.

Maybe we could add a "lock a txn" feature. We'd turn the lock on just
before we start the pre-commit hook, then turn it off when the hook is
done running.

Thoughts?

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 10 23:22:26 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.