[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: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-10-15 21:53:31 CEST

Ben Collins-Sussman <sussman@collab.net> writes:

> > > If a
> > > pre-commit hook tweaks a pending transaction, we
> > > risk working copies
> > > falling out of sync!
> >
> > 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.

Don't rely on the post-commit hook creating a revision one greater
than the client commit. Nothing prevents another client getting in
between the commit and the post-commit hook. So if the commit creates
a new file, say, then that file may get deleted before the post-commit
hook runs.

-- 
Philip Martin
---------------------------------------------------------------------
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:54:33 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.