Karl Fogel <kfogel@newton.ch.collab.net> writes:
> Ben Collins-Sussman <sussman@collab.net> writes:
> > > Why can't a hook use a working copy?
> >
> > Or why can't a hook just use python libsvn_fs bindings to directly
> > modify a transaction-under-consideration?
>
> He was talking about post-commit, I think. No more txn at that point.
? I thought brane and others had pointed out that he wants to tweak
the transaciton in the pre-commit hook... to prevent infinite commit
loops, creation of new revisions. Noel himself was hoping that the
post-commit would be operating on the the same transaction, which is
why brane pointed him towards the pre-commit hook...
But regardless, this brings a dangerous situation to light. If a
pre-commit hook tweaks a pending transaction, we risk working copies
falling out of sync! (Unless some part of the tree is tweaked that
the user doesn't have checked out.) Perhaps we should discourage/warn
against this situation in our docs, or in the pre-commit-hook template
itself.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 15 20:10:32 2002