mercurial/cmdutil.py
changeset 9655 6d7d3f849062
parent 9654 96fe91be9c1e
child 9656 2ae3758526d8
--- 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.