Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 17675:8575f4a2126e
clfilter: remove usage of `range` in favor of iteration over changelog
If we want to apply filtering at changelog level, we need to iterate over it.
See previous changeset description for details.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Thu, 20 Sep 2012 19:01:53 +0200 |
parents | f65c6a5f256c |
children | a41fd730f230 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Mon Sep 03 14:19:45 2012 +0200 +++ b/mercurial/scmutil.py Thu Sep 20 19:01:53 2012 +0200 @@ -631,7 +631,7 @@ # fall through to new-style queries if old-style fails m = revset.match(repo.ui, spec) - dl = [r for r in m(repo, xrange(len(repo))) if r not in seen] + dl = [r for r in m(repo, list(repo)) if r not in seen] l.extend(dl) seen.update(dl)