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

Re: post-commit question

From: Stefan Sperling <stsp_at_elego.de>
Date: 2007-09-19 15:15:03 CEST

On Wed, Sep 19, 2007 at 06:01:34AM -0700, Jeff Lanzarotta wrote:
> As you can see, it is a simple script. It is suppose to
> automatically update the LatestAndGreatest working copy of the
> repository and email information to the needed recipients.
> The problem I am having is that the call to 'svn update' hangs.

This is probably a locking issue:

        My *theory*:

The commit has a write lock on the repo, and your script waits
for the write lock to be released so it can grab a read lock
to do the update.
But the commit will keep the write lock until it is done, i.e.
until the commit has succeeded and your script has been executed.
So you have a deadlock.

You could update the working copy periodically from a cron job instead.

Stefan Sperling <stsp@elego.de>                 Software Developer
elego Software Solutions GmbH                            HRB 77719
Gustav-Meyer-Allee 25, Gebaeude 12        Tel:  +49 30 23 45 86 96 
13355 Berlin                              Fax:  +49 30 23 45 86 95
http://www.elego.de                 Geschaeftsfuehrer: Olaf Wagner

  • application/pgp-signature attachment: stored
Received on Wed Sep 19 15:15:28 2007

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.