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

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sat Nov 9 08:14:11 EST 2019


marmoute updated this revision to Diff 17884.

REPOSITORY
  rHG Mercurial

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

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

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:



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


More information about the Mercurial-devel mailing list