# HG changeset patch # User Nicolas Dumazet # Date 1278234450 -32400 # Branch stable # Node ID 80f156c8ee94377094f3743f0f2db344a3e4949f # Parent 239f3210c970615dc1d5f861a92b61b4662a71a5 log: slowpath: dont use increasing windows When in the slowpath, we are examining _all_ changesets. Increasing windows were used to read changelog backwards in a windowed manner, reading the changelog forward inside each window. It is just clearer and simpler to read the full changelog forward. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1103,12 +1103,8 @@ 'filenames')) # The slow path checks files modified in every changeset. - def changerevgen(): - for i, window in increasing_windows(len(repo) - 1, nullrev): - for j in xrange(i - window, i + 1): - yield change(j) - - for ctx in changerevgen(): + for i in repo: + ctx = change(i) matches = filter(match, ctx.files()) if matches: fncache[ctx.rev()] = matches