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

Re: Are post-commit hooks atomic?

From: Stefan Haller <haller_at_ableton.com>
Date: 2004-09-18 10:03:55 CEST

<kfogel@collab.net> wrote:

> Dewey Sasser <dewey@sasser.com> writes:
> > So, does subversion call my post-commit script atomically? Can I
> > count on there *never* being two instances of the script running
> > simultaneously?
> It is only called once per revision, but there is no guarantee that
> one instance of post-commit will have finished before another instance
> is called -- indeed, if people are committing fast enough, you can
> pretty much guarantee that instances will overlap.

OK, so is it safe to call several "svn up" on the same working copy
concurrently? That's what could happen if you put svn up in a
post-commit hook to get, say, a live web site of the repo's HEAD.

I know this is isn't safe with CVS, so we had to implement some
complicated locking mechanism ourselves. Just wondering if we have to
keep doing that with svn.

Stefan Haller
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 18 10:04:25 2004

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

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