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

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2019, 3:26 p.m.
Message ID <5b3943e389a01d2460557b2365314eae@localhost.localdomain>
Download mbox | patch
Permalink /patch/43665/
State Not Applicable
Headers show

Comments

phabricator - Dec. 10, 2019, 3:26 p.m.
Alphare updated this revision to Diff 18565.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7119?vs=18041&id=18565

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
@@ -1245,6 +1245,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()