diff mercurial/dirstate.py @ 44343:cf1f8660e568

rust-dirstatemap: add `NonNormalEntries` class This fix introduces the same encapsulation as the `copymap`. There is no easy way of doing this any better for now. `hg up -r null && time HGRCPATH= HGMODULEPOLICY=rust+c hg up tip` on Mozilla Central, (not super recent, but it doesn't matter): Before: 7:44,08 total After: 1:03,23 total Pretty brutal regression! Differential Revision: https://phab.mercurial-scm.org/D8049
author Rapha?l Gom?s <rgomes@octobus.net>
date Mon, 10 Feb 2020 21:54:12 +0100
parents 7f5410dfc8a6
children bed8d08cfcb2
line wrap: on
line diff
--- a/mercurial/dirstate.py	Sun Feb 09 16:18:26 2020 -0500
+++ b/mercurial/dirstate.py	Mon Feb 10 21:54:12 2020 +0100
@@ -1846,12 +1846,12 @@
 
         @property
         def nonnormalset(self):
-            nonnorm, otherparents = self._rustmap.nonnormalentries()
+            nonnorm = self._rustmap.non_normal_entries()
             return nonnorm
 
         @propertycache
         def otherparentset(self):
-            nonnorm, otherparents = self._rustmap.nonnormalentries()
+            otherparents = self._rustmap.other_parent_entries()
             return otherparents
 
         @propertycache