Patchwork D7325: index: use `index.rev` in `revlog.rev`

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2019, 5:18 a.m.
Message ID <45e9b3a731f00302aa774b9b6e3d9011@localhost.localdomain>
Download mbox | patch
Permalink /patch/43022/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2019, 5:18 a.m.
marmoute updated this revision to Diff 17838.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7325?vs=17746&id=17838

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

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

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
@@ -687,7 +687,7 @@ 
 
     def rev(self, node):
         try:
-            return self.index.nodemap[node]
+            return self.index.rev(node)
         except TypeError:
             raise
         except error.RevlogError: