[PATCH 2 of 2] Reorder rename operations to minimise risk of leaving repository in unknown state

Adrian Buehlmann adrian at cadifra.com
Sat Oct 3 11:57:47 UTC 2009


On 02.10.2009 17:44, Steve Borho wrote:
> It should be possible to prove the efficacy of the patch, one way or the
> other, with two interactive Python sessions on Windows.  I can, but probably
> can't get to it for a couple of days.

os.unlink fails if the file is held open, for example
with a python

  f = open(tempname)

If I open the temporary with my
http://bitbucket.org/abuehl/opentest/src/tip/opentest.cpp

unlink succeeds.

So it all depends on what kind of 'open' the virus scanner is
doing.



More information about the Mercurial-devel mailing list