diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -919,6 +919,9 @@ matchalways = match.always() matchtdir = match.traversedir dmap = self._map + if rustmod is not None: + dmap = self._map._rustmap + listdir = util.listdir lstat = os.lstat dirkind = stat.S_IFDIR