D7118: rust-dirstatemap: remove additional lookups in traverse

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Tue Nov 12 10:03:57 UTC 2019


Alphare updated this revision to Diff 18040.

REPOSITORY
  rHG Mercurial

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

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

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



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


More information about the Mercurial-devel mailing list