# HG changeset patch # User Pierre-Yves David # Date 1572704731 -3600 # Node ID bf176127033a2bb4b1579f03874688b675dfbe41 # Parent 90a0f631829eaf17d9532b5e5564e44afb5de205 revlog: access the nodemap through the index The `revlog.rev` method now access the nodemap through `self.index.nodemap`, instead of using the `_nodecache` attribute that we are trying to remove. This work is part of a refactoring to unify the revlog index and the nodemap. This unification prepare the use of a persistent nodemap. Differential Revision: https://phab.mercurial-scm.org/D7317 diff -r 90a0f631829e -r bf176127033a mercurial/revlog.py --- a/mercurial/revlog.py Sat Nov 02 15:21:28 2019 +0100 +++ b/mercurial/revlog.py Sat Nov 02 15:25:31 2019 +0100 @@ -661,7 +661,7 @@ def rev(self, node): try: - return self._nodecache[node] + return self.index.nodemap[node] except TypeError: raise except error.RevlogError: