index: use `index.rev` in `revlog.rev`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 09 Nov 2019 13:23:51 +0100
changeset 43601 2da51e292734
parent 43600 bd87114ce341
child 43602 b56de57c45ce
index: use `index.rev` in `revlog.rev` Differential Revision: https://phab.mercurial-scm.org/D7325
mercurial/revlog.py
--- 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: