Patchwork D7119: rust-dirstatemap: remove additional lookup in dirstate.matches

login
register
mail settings
Submitter phabricator
Date Nov. 12, 2019, 10:04 a.m.
Message ID <cd6fb88a42ae2171fb90f9303b9c40c7@localhost.localdomain>
Download mbox | patch
Permalink /patch/43144/
State Not Applicable
Headers show

Comments

phabricator - Nov. 12, 2019, 10:04 a.m.
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




To: Alphare, #hg-reviewers
Cc: mercurial-devel

Patch

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()