diff mercurial/lock.py @ 19927:76c83107a724

lock: handle race in trylock/testlock on Windows readlock may raise IOError if the system does not support symlink.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 02 Oct 2013 21:16:40 +0900
parents af9fa8d4c939
children abfe6a8e619b
line wrap: on
line diff
--- a/mercurial/lock.py	Mon Oct 14 17:12:59 2013 +0200
+++ b/mercurial/lock.py	Wed Oct 02 21:16:40 2013 +0900
@@ -100,7 +100,7 @@
         """
         try:
             locker = util.readlock(self.f)
-        except OSError, why:
+        except (OSError, IOError), why:
             if why.errno == errno.ENOENT:
                 return None
             raise