Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 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 | 6ff8bd691fb8 |
children | d658cbef8041 |
comparison
equal
deleted
inserted
replaced
37302:00f18dd1d3d6 | 37303:8823615f68a5 |
---|---|
1837 if not revs: | 1837 if not revs: |
1838 return [] | 1838 return [] |
1839 wanted = set() | 1839 wanted = set() |
1840 slowpath = match.anypats() or (not match.always() and opts.get('removed')) | 1840 slowpath = match.anypats() or (not match.always() and opts.get('removed')) |
1841 fncache = {} | 1841 fncache = {} |
1842 change = repo.changectx | 1842 change = repo.__getitem__ |
1843 | 1843 |
1844 # First step is to fill wanted, the set of revisions that we want to yield. | 1844 # First step is to fill wanted, the set of revisions that we want to yield. |
1845 # When it does not induce extra cost, we also fill fncache for revisions in | 1845 # When it does not induce extra cost, we also fill fncache for revisions in |
1846 # wanted: a cache of filenames that were changed (ctx.files()) and that | 1846 # wanted: a cache of filenames that were changed (ctx.files()) and that |
1847 # match the file filtering conditions. | 1847 # match the file filtering conditions. |