Show More
@@ -1210,6 +1210,13 b' def walkchangerevs(repo, match, opts, pr' | |||
|
1210 | 1210 | if ff.match(x): |
|
1211 | 1211 | wanted.discard(x) |
|
1212 | 1212 | |
|
1213 | # Choose a small initial window if we will probably only visit a | |
|
1214 | # few commits. | |
|
1215 | limit = loglimit(opts) | |
|
1216 | windowsize = 8 | |
|
1217 | if limit: | |
|
1218 | windowsize = min(limit, windowsize) | |
|
1219 | ||
|
1213 | 1220 | # Now that wanted is correctly initialized, we can iterate over the |
|
1214 | 1221 | # revision range, yielding only revisions in wanted. |
|
1215 | 1222 | def iterate(): |
@@ -1221,7 +1228,7 b' def walkchangerevs(repo, match, opts, pr' | |||
|
1221 | 1228 | def want(rev): |
|
1222 | 1229 | return rev in wanted |
|
1223 | 1230 | |
|
1224 | for i, window in increasingwindows(0, len(revs)): | |
|
1231 | for i, window in increasingwindows(0, len(revs), windowsize): | |
|
1225 | 1232 | nrevs = [rev for rev in revs[i:i + window] if want(rev)] |
|
1226 | 1233 | for rev in sorted(nrevs): |
|
1227 | 1234 | fns = fncache.get(rev) |
General Comments 0
You need to be logged in to leave comments.
Login now