rust-dirstatemap: remove additional lookup in dirstate.matches
We use the same trick as the Python implementation
Differential Revision: https://phab.mercurial-scm.org/D7119
--- a/mercurial/dirstate.py Tue Dec 31 12:43:57 2019 +0100
+++ b/mercurial/dirstate.py Wed Oct 16 14:12:48 2019 +0200
@@ -1262,6 +1262,9 @@
return files in the dirstate (in whatever state) filtered by match
'''
dmap = self._map
+ if rustmod is not None:
+ dmap = self._map._rustmap
+
if match.always():
return dmap.keys()
files = match.files()