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

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2019, 4:01 p.m.
Message ID <b36258596264bd5ede86ed4089ad873f@localhost.localdomain>
Download mbox | patch
Permalink /patch/43094/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2019, 4:01 p.m.
Closed by commit rHGc7791864af80: revlog: drop special hack in the `nodemap` property (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

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

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