# HG changeset patch # User Bryan O'Sullivan # Date 1351052722 25200 # Node ID 7b0b1da49f15c2aa20a8e7abe8fa1be26191e4fb # Parent d1d0140287b81c230b20d675c0009d6394e3dd1d dirstate: handle dangling junctions on windows (issue2579) diff -r d1d0140287b8 -r 7b0b1da49f15 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