Patchwork D7118: rust-dirstatemap: remove additional lookups in traverse

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

Comments

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

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7118?vs=18040&id=18564

BRANCH
  default

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7118/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7118

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -910,6 +910,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