--- a/mercurial/lock.py Thu Jul 14 22:37:46 2005 -0800
+++ b/mercurial/lock.py Thu Jul 14 22:56:55 2005 -0800
@@ -37,7 +37,7 @@
try:
util.makelock(str(pid), self.f)
self.held = 1
- except:
+ except (OSError, IOError):
raise LockHeld(util.readlock(self.f))
def release(self):