[PATCH stable] dirstate: handle dangling junctions on windows (issue2579)
Bryan O'Sullivan
bos at serpentine.com
Tue Oct 23 23:39:45 CDT 2012
# HG changeset patch
# User Bryan O'Sullivan <bryano at fb.com>
# Date 1351052722 25200
# Branch stable
# Node ID f5232f17141351e59fb4d6b30f6ca4fcb3aac3ef
# Parent 1f34b57ca31968f7e65cd769f7cee88cce160f41
dirstate: handle dangling junctions on windows (issue2579)
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -673,7 +673,7 @@ class dirstate(object):
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
More information about the Mercurial-devel
mailing list