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
--- 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: