changeset 17785:ac5c9c8046f7

clfilter: use changelog to iterate over the repo in branchpoint Otherwise filtered changesets may cause false positives in `branchpoint()`.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Mon, 15 Oct 2012 17:42:40 +0200
parents 73e1ab39792c
children 72c234081ae1
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Fri Oct 12 10:52:33 2012 +0200
+++ b/mercurial/revset.py	Mon Oct 15 17:42:40 2012 +0200
@@ -929,7 +929,7 @@
         return []
     baserev = min(subset)
     parentscount = [0]*(len(repo) - baserev)
-    for r in xrange(baserev + 1, len(repo)):
+    for r in cl.revs(start=baserev + 1):
         for p in cl.parentrevs(r):
             if p >= baserev:
                 parentscount[p - baserev] += 1