--- a/mercurial/lock.py Tue Jun 28 02:04:49 2005 -0800 +++ b/mercurial/lock.py Tue Jun 28 02:08:14 2005 -0800 @@ -43,5 +43,7 @@ def release(self): if self.held: self.held = 0 - os.unlink(self.f) + try: + os.unlink(self.f) + except: pass