changeset 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 0f99747202f9
children d1ac3790e10a
files mercurial/lock.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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