D7117: rust-dirstatemap: remove additional lookups in dirstatemap
Alphare (Raphaël Gomès)
phabricator at mercurial-scm.org
Fri Oct 18 11:08:19 UTC 2019
Closed by commit rHG5d4046594d6f: rust-dirstatemap: remove additional lookups in dirstatemap (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7117?vs=17199&id=17337
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7117/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7117
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
@@ -1784,6 +1784,10 @@
if parents and not self._dirtyparents:
self.setparents(*parents)
+ self.__contains__ = self._rustmap.__contains__
+ self.__getitem__ = self._rustmap.__getitem__
+ self.get = self._rustmap.get
+
def write(self, st, now):
parents = self.parents()
st.write(self._rustmap.write(parents[0], parents[1], now))
To: Alphare, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list