changeset 37303:8823615f68a5

log: remove dependence on repo.changectx() This was one of few remaining uses of repo.changectx() in core. Differential Revision: https://phab.mercurial-scm.org/D3035
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 03 Apr 2018 08:55:49 -0700
parents 00f18dd1d3d6
children feced1629f48
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Apr 03 08:55:16 2018 -0700
+++ b/mercurial/cmdutil.py	Tue Apr 03 08:55:49 2018 -0700
@@ -1839,7 +1839,7 @@
     wanted = set()
     slowpath = match.anypats() or (not match.always() and opts.get('removed'))
     fncache = {}
-    change = repo.changectx
+    change = repo.__getitem__
 
     # First step is to fill wanted, the set of revisions that we want to yield.
     # When it does not induce extra cost, we also fill fncache for revisions in