# HG changeset patch # User Matt Mackall # Date 2010-06-05 03:54:43 # Node ID 8c6c7f6347a34f692a6c874e4317ad4f82f0b657 # Parent 4215ce511134e1fc136e2c547b86709c6ed25052 revset: fix test failure with qfinish diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -153,7 +153,8 @@ def revrange(repo, revs): spec.startswith(revrangesep) or spec.endswith(revrangesep)): m = revset.match(spec) for r in m(repo, range(len(repo))): - l.append(r) + if r not in seen: + l.append(r) seen.update(l) elif revrangesep in spec: start, end = spec.split(revrangesep, 1)