diff -r 509e62469cb1 -r c6a2e41c8c60 mercurial/lock.py --- 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