Patchwork D7317: revlog: access the nodemap through the index

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2019, 1:56 a.m.
Message ID <939e0aecdcce31af916b923668ab0fa8@localhost.localdomain>
Download mbox | patch
Permalink /patch/43010/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2019, 1:56 a.m.
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




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

Patch

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: