[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 21:38:34 CEST

Noel Yap <yap_noel@yahoo.com> writes:

> --- Ben Collins-Sussman <sussman@collab.net> wrote:
> > 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.
>
> Wouldn't this happen with post-commit hooks as well?

No. The client commits revision 5, and revision 5 really looks the
way the client thinks it should. It just so happens that the
post-commit hook *also* creates a new revision 6.

> Or, would the problem be that the working directory
> thinks it has checked in say, revision 5, when, in
> fact, the real revision 5 has other stuff that was
> tacked on by the pre-commit hook?

Yes, that's the danger to avoid.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 15 21:40:42 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.