D7361: revlog: drop special hack in the `nodemap` property
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Nov 8 16:29:09 UTC 2019
marmoute created this revision.
Herald added a reviewer: indygreg.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This code does not seems necessary anymore.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D7361
AFFECTED FILES
mercurial/revlog.py
CHANGE DETAILS
diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -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
To: marmoute, indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list