[issue716] fix race condition during clone
mercurial-bugs at selenic.com
Thu Aug 30 17:20:22 CDT 2007
New submission from Benoit Boissinot <bboissin at gmail.com>:
if two clone with the same destination directory are launched at the same time,
they might it a race condition where one will delete the other.
possible fix: if the creation of the .hg directory fails because of EEXIST,
don't run dircleanup (needs fixing in hg.py and localrepo.py), if the creation
of the dest directory fails it should "pass". Moreover the locking order might
be improved (lock before writing anything to the repo).
nosy: brendan, tonfa
title: fix race condition during clone
Mercurial issue tracker <mercurial-bugs at selenic.com>
More information about the Mercurial-devel