Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 9664:2a4a0dc4fb85
walkchangerevs: reset cache between windows
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 29 Oct 2009 19:03:13 -0500 |
parents | f3d60543924f |
children | 1de5ebfa5585 |
comparison
equal
deleted
inserted
replaced
9663:4164a17e7126 | 9664:2a4a0dc4fb85 |
---|---|
1208 else: | 1208 else: |
1209 def want(rev): | 1209 def want(rev): |
1210 return rev in wanted | 1210 return rev in wanted |
1211 | 1211 |
1212 for i, window in increasing_windows(0, len(revs)): | 1212 for i, window in increasing_windows(0, len(revs)): |
1213 change = util.cachefunc(repo.changectx) | |
1213 nrevs = [rev for rev in revs[i:i+window] if want(rev)] | 1214 nrevs = [rev for rev in revs[i:i+window] if want(rev)] |
1214 for rev in sorted(nrevs): | 1215 for rev in sorted(nrevs): |
1215 fns = fncache.get(rev) | 1216 fns = fncache.get(rev) |
1216 ctx = change(rev) | 1217 ctx = change(rev) |
1217 if not fns: | 1218 if not fns: |