# HG changeset patch # User Yuya Nishihara # Date 1534478853 -32400 # Node ID 5f924aa0567c2a81fdba76e3597caa9d6ed6feae # Parent 65d5de1169dd549a6fc0f8be6fa452ca4086e31e revlog: obtain the first node at the lowest layer while building pure nodemap Just for clarity. This doesn't matter in practice since changelog.nodemap is accessed *before* filtered revisions get ready. diff -r 65d5de1169dd -r 5f924aa0567c mercurial/revlog.py --- a/mercurial/revlog.py Fri Aug 17 12:54:50 2018 +0900 +++ b/mercurial/revlog.py Fri Aug 17 13:07:33 2018 +0900 @@ -1109,7 +1109,8 @@ def nodemap(self): if self.index: # populate mapping down to the initial node - self.rev(self.node(0)) + node0 = self.index[0][7] # get around changelog filtering + self.rev(node0) return self._nodecache def hasnode(self, node):