mercurial/lock.py
changeset 503 c6a2e41c8c60
parent 429 688d03d6997a
child 515 03f27b1381f9
--- a/mercurial/lock.py
+++ b/mercurial/lock.py
@@ -43,5 +43,7 @@ class lock:
     def release(self):
         if self.held:
             self.held = 0
-            os.unlink(self.f)
+            try:
+                os.unlink(self.f)
+            except: pass