Patchwork D7361: revlog: drop special hack in the `nodemap` property

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2019, 5:20 a.m.
Message ID <cd83cc11fab1ca57451c85ba0db8367b@localhost.localdomain>
Download mbox | patch
Permalink /patch/43045/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2019, 5:20 a.m.
marmoute updated this revision to Diff 17862.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7361?vs=17784&id=17862

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7361/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7361

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




To: marmoute, indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

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