changeset 43528:90a0f631829e

revlog: return the nodemap as the nodecache Ultimately, the nodecache is the nodemap. To stop having this disctinction, we start using the nodemap where the nodecache was used. 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/D7316
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 02 Nov 2019 15:21:28 +0100
parents 43424f03d9a4
children bf176127033a
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Sat Nov 02 14:45:57 2019 +0100
+++ b/mercurial/revlog.py	Sat Nov 02 15:21:28 2019 +0100
@@ -630,7 +630,7 @@
             # populate mapping down to the initial node
             node0 = self.index[0][7]  # get around changelog filtering
             self.rev(node0)
-        return self._nodecache
+        return self.index.nodemap
 
     def hasnode(self, node):
         try: