Mercurial > hg
changeset 39144:5f924aa0567c
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.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 17 Aug 2018 13:07:33 +0900 |
parents | 65d5de1169dd |
children | b623c7b23695 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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):