log: remove caching of all visited revisions (issue3253) stable
authorMatt Mackall <mpm@selenic.com>
Fri, 10 Feb 2012 16:52:32 -0600
branchstable
changeset 16108 f7e0d95d0a0b
parent 16107 a3dcc59054ca
child 16109 cb756482c1aa
child 16110 41417443b7d0
log: remove caching of all visited revisions (issue3253) Not only does this eat all available memory for some users, it's slower.
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Fri Feb 10 16:09:30 2012 -0600
+++ b/mercurial/cmdutil.py	Fri Feb 10 16:52:32 2012 -0600
@@ -979,7 +979,7 @@
     wanted = set()
     slowpath = match.anypats() or (match.files() and opts.get('removed'))
     fncache = {}
-    change = util.cachefunc(repo.changectx)
+    change = repo.changectx
 
     # 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