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
--- 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