Patchwork D3034: verify: remove dependence on repo.changectx()

login
register
mail settings
Submitter phabricator
Date April 3, 2018, 6:13 p.m.
Message ID <70d8944b0c091b6c04c47b7472aef7ff@localhost.localdomain>
Download mbox | patch
Permalink /patch/30204/
State Not Applicable
Headers show

Comments

phabricator - April 3, 2018, 6:13 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG00f18dd1d3d6: verify: remove dependence on repo.changectx() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3034?vs=7539&id=7571

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

AFFECTED FILES
  mercurial/verify.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/verify.py b/mercurial/verify.py
--- a/mercurial/verify.py
+++ b/mercurial/verify.py
@@ -47,7 +47,7 @@ 
         self.havecl = len(repo.changelog) > 0
         self.havemf = len(repo.manifestlog._revlog) > 0
         self.revlogv1 = repo.changelog.version != revlog.REVLOGV0
-        self.lrugetctx = util.lrucachefunc(repo.changectx)
+        self.lrugetctx = util.lrucachefunc(repo.__getitem__)
         self.refersmf = False
         self.fncachewarned = False
         # developer config: verify.skipflags