Why does 'hg verify' lock?
Matt Mackall
mpm at selenic.com
Wed Mar 4 10:23:31 CST 2009
On Wed, 2009-03-04 at 09:37 +0100, Jens.Wulf at sew-eurodrive.de wrote:
> Hi,
>
> to the .hg/hgrc of a central repo on a network share I added
> [hooks]
> changegroup = hg verify
> in order to get a verify everytime someone pushes to it. The hook is
> executed, however, it does not work because the push seems to lock the
> repo and hg verify seems to refuse using a locked repo:
Verify holds the lock to keep the repository in a consistent state.
Concurrent writers could cause verify to incorrectly report corruption.
Unfortunately, we also currently hold the lock when the calling the
changegroup hook because the lock is grabbed at higher layers
responsible for handling protocol issues.
--
http://selenic.com : development and support for Mercurial and Linux
More information about the Mercurial
mailing list