Patchwork D3035: log: remove dependence on repo.changectx()

login
register
mail settings
Submitter phabricator
Date April 3, 2018, 4:14 p.m.
Message ID <differential-rev-PHID-DREV-inizbdh2sb66wlxwspbv-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30175/
State Superseded
Headers show

Comments

phabricator - April 3, 2018, 4:14 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This was one of few remaining uses of repo.changectx() in core.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -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