mercurial/util.py
changeset 26665 6331a0c310db
parent 26587 56b2bcea2529
child 26847 9f16787cbefd
child 27369 c48ecc0b5bc9
--- a/mercurial/util.py	Wed Oct 14 12:23:49 2015 +0200
+++ b/mercurial/util.py	Tue Oct 13 16:05:30 2015 -0700
@@ -963,7 +963,7 @@
     """
     try:
         return st[stat.ST_MTIME]
-    except TypeError:
+    except (TypeError, IndexError):
         # osutil.stat doesn't allow index access and its st_mtime is int
         return st.st_mtime