diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -568,7 +568,7 @@ def revrange(repo, revs): newrevs = set(xrange(start, end + step, step)) if seen: newrevs.difference_update(seen) - seen.union(newrevs) + seen.update(newrevs) else: seen = newrevs l.extend(sorted(newrevs, reverse=start > end))