# HG changeset patch # User Pierre-Yves David # Date 2012-10-15 15:42:40 # Node ID ac5c9c8046f72883b7532ed06571b85624b284be # Parent 73e1ab39792c6c1887bcf594114ad0b9d01bfc2e clfilter: use changelog to iterate over the repo in branchpoint Otherwise filtered changesets may cause false positives in `branchpoint()`. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -929,7 +929,7 @@ def branchpoint(repo, subset, x): 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