# HG changeset patch # User Bryan O'Sullivan # Date 2012-10-24 04:25:22 # Node ID 7b0b1da49f15c2aa20a8e7abe8fa1be26191e4fb # Parent d1d0140287b81c230b20d675c0009d6394e3dd1d 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