Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 9655:6d7d3f849062
walkchangerevs: internalize ctx caching
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 27 Oct 2009 17:01:32 -0500 |
parents | 96fe91be9c1e |
children | 2ae3758526d8 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sun Oct 25 18:43:59 2009 -0500 +++ b/mercurial/cmdutil.py Tue Oct 27 17:01:32 2009 -0500 @@ -1039,7 +1039,7 @@ raise util.Abort(_("revision matching date not found")) -def walkchangerevs(ui, repo, match, change, opts): +def walkchangerevs(ui, repo, match, opts): '''Iterate over files and the revs in which they changed. Callers most commonly need to iterate backwards over the history @@ -1087,6 +1087,7 @@ wanted = set() slowpath = match.anypats() or (match.files() and opts.get('removed')) fncache = {} + change = util.cachefunc(repo.changectx) if not slowpath and not match.files(): # No files, no patterns. Display all revs.