revlog: drop special hack in the `nodemap` property
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 09 Nov 2019 13:23:55 +0100
changeset 43573 d3df05bab081
parent 43572 c314177eb9bb
child 43574 02802fa87b74
revlog: drop special hack in the `nodemap` property This code does not seems necessary anymore. Differential Revision: https://phab.mercurial-scm.org/D7361
mercurial/revlog.py
--- a/mercurial/revlog.py	Sat Nov 09 13:23:55 2019 +0100
+++ b/mercurial/revlog.py	Sat Nov 09 13:23:55 2019 +0100
@@ -652,10 +652,6 @@
 
     @util.propertycache
     def nodemap(self):
-        if self.index:
-            # populate mapping down to the initial node
-            node0 = self.index[0][7]  # get around changelog filtering
-            self.rev(node0)
         return self.index.nodemap
 
     @property