[issue2216] deadlock & race condition on preoutgoing hook of hg verify on local filesystem

Tara bugs at mercurial.selenic.com
Wed May 26 21:57:46 UTC 2010


New submission from Tara <tara at birl.org>:

error:
waiting for lock on repository /Users/tara/tmp/blah held by 'zulu.local:86265'
(process 86265 has exited)

similar bug: http://bitbucket.org/tortoisehg/stable/issue/794

to reproduce:
.hgrc contains:
[hooks]
preoutgoing.verify = hg verify

execute these commands:

mkdir blah
cd blah
hg init
touch blah
hg addremove
hg ci -m 'init'
cd ..
hg clone blah foo


It's noted (as per mpm) that this must all happen on the same filesystem,
and It'll actually work sometimes. For instance, if you have a verify
already running, the second clone will do a non-hardlink clone and the hook
will  wait for the first clone to finish.

----------
messages: 12692
nosy: mpm, peacetara
priority: bug
status: unread
title: deadlock & race condition on preoutgoing hook of hg verify on local filesystem

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2216>
____________________________________________________


More information about the Mercurial-devel mailing list