diff -r 47ea28293d30 -r 377e8ddaebef mercurial/dirstate.py --- a/mercurial/dirstate.py Tue Aug 01 21:03:25 2017 +0900 +++ b/mercurial/dirstate.py Wed Jul 26 22:10:15 2017 +0900 @@ -1153,7 +1153,7 @@ # that wasn't ignored, and everything that matched was stat'ed # and is already in results. # The rest must thus be ignored or under a symlink. - audit_path = pathutil.pathauditor(self._root) + audit_path = pathutil.pathauditor(self._root, cached=True) for nf in iter(visit): # If a stat for the same file was already added with a