diff -r a39fe76c4c65 -r 74912fe3d718 mercurial/dirstate.py --- a/mercurial/dirstate.py Mon Oct 08 19:34:04 2012 +0200 +++ b/mercurial/dirstate.py Fri Nov 30 15:55:07 2012 -0800 @@ -697,9 +697,6 @@ if not skipstep3 and not exact: visit = sorted([f for f in dmap if f not in results and matchfn(f)]) for nf, st in zip(visit, util.statfiles([join(i) for i in visit])): - if (not st is None and - getkind(st.st_mode) not in (regkind, lnkkind)): - st = None results[nf] = st for s in subrepos: del results[s]