dirstate: handle dangling junctions on windows (issue2579) stable
authorBryan O'Sullivan <bryano@fb.com>
Tue, 23 Oct 2012 21:25:22 -0700
branchstable
changeset 17879 7b0b1da49f15
parent 17878 d1d0140287b8
child 17880 9f6044119166
dirstate: handle dangling junctions on windows (issue2579)
mercurial/dirstate.py
--- 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