changeset 43553:2da51e292734

index: use `index.rev` in `revlog.rev` Differential Revision: https://phab.mercurial-scm.org/D7325
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 09 Nov 2019 13:23:51 +0100
parents bd87114ce341
children b56de57c45ce
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Sat Nov 09 13:23:51 2019 +0100
+++ b/mercurial/revlog.py	Sat Nov 09 13:23:51 2019 +0100
@@ -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: