Commits

Benoit Boissinot  committed 618140c

fix restart of interrupted recover

Ignore missing files if they are already removed.
Thanks maelcum on IRC for reporting it.

  • Participants
  • Parent commits ee12d9d

Comments (0)

Files changed (1)

File mercurial/transaction.py

         if o:
             opener(f, "a").truncate(int(o))
         else:
-            fn = opener(f).name
-            os.unlink(fn)
+            try:
+                fn = opener(f).name
+                os.unlink(fn)
+            except OSError, inst:
+                if inst.errno != errno.ENOENT:
+                    raise
     os.unlink(file)