D7119: rust-dirstatemap: remove additional lookup in dirstate.matches
Alphare (Raphaël Gomès)
phabricator at mercurial-scm.org
Tue Nov 12 10:04:05 UTC 2019
Alphare updated this revision to Diff 18041.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7119?vs=17201&id=18041
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7119/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7119
AFFECTED FILES
mercurial/dirstate.py
CHANGE DETAILS
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -1242,6 +1242,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()
To: Alphare, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list