D7317: revlog: access the nodemap through the index

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Fri Nov 8 20:56:01 EST 2019


Closed by commit rHG0c3e9ddb9f54: revlog: access the nodemap through the index (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7317?vs=17733&id=17830

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

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

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -661,7 +661,7 @@
 
     def rev(self, node):
         try:
-            return self._nodecache[node]
+            return self.index.nodemap[node]
         except TypeError:
             raise
         except error.RevlogError:



To: marmoute, indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list