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

Re: "svn branch" and "svn label"

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-10-15 20:08:28 CEST

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

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.