changeset 11290:8c6c7f6347a3

revset: fix test failure with qfinish
author Matt Mackall <mpm@selenic.com>
date Fri, 04 Jun 2010 22:54:43 -0500
parents 4215ce511134
children 543597fae51d
files mercurial/cmdutil.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Fri Jun 04 20:57:52 2010 -0500
+++ b/mercurial/cmdutil.py	Fri Jun 04 22:54:43 2010 -0500
@@ -153,7 +153,8 @@
             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)