From patchwork Fri Oct 18 11:08:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D7117: rust-dirstatemap: remove additional lookups in dirstatemap From: phabricator X-Patchwork-Id: 42471 Message-Id: <562dfcb37868636267ed03a85077d1a1@localhost.localdomain> To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Fri, 18 Oct 2019 11:08:19 +0000 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 To: Alphare, #hg-reviewers Cc: mercurial-devel 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))