changeset 17879:7b0b1da49f15 stable

dirstate: handle dangling junctions on windows (issue2579)
author Bryan O'Sullivan <bryano@fb.com>
date Tue, 23 Oct 2012 21:25:22 -0700
parents d1d0140287b8
children 9f6044119166
files mercurial/dirstate.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Tue Oct 23 21:32:19 2012 -0400
+++ b/mercurial/dirstate.py	Tue Oct 23 21:25:22 2012 -0700
@@ -673,7 +673,7 @@
             try:
                 entries = listdir(join(nd), stat=True, skip=skip)
             except OSError, inst:
-                if inst.errno == errno.EACCES:
+                if inst.errno in (errno.EACCES, errno.ENOENT):
                     fwarn(nd, inst.strerror)
                     continue
                 raise