Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 11290:8c6c7f6347a3
revset: fix test failure with qfinish
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 04 Jun 2010 22:54:43 -0500 |
parents | b724b8467b82 |
children | a1aad8333864 |
comparison
equal
deleted
inserted
replaced
11289:4215ce511134 | 11290:8c6c7f6347a3 |
---|---|
151 for spec in revs: | 151 for spec in revs: |
152 if spec and not ( | 152 if spec and not ( |
153 spec.startswith(revrangesep) or spec.endswith(revrangesep)): | 153 spec.startswith(revrangesep) or spec.endswith(revrangesep)): |
154 m = revset.match(spec) | 154 m = revset.match(spec) |
155 for r in m(repo, range(len(repo))): | 155 for r in m(repo, range(len(repo))): |
156 l.append(r) | 156 if r not in seen: |
157 l.append(r) | |
157 seen.update(l) | 158 seen.update(l) |
158 elif revrangesep in spec: | 159 elif revrangesep in spec: |
159 start, end = spec.split(revrangesep, 1) | 160 start, end = spec.split(revrangesep, 1) |
160 start = revfix(repo, start, 0) | 161 start = revfix(repo, start, 0) |
161 end = revfix(repo, end, len(repo) - 1) | 162 end = revfix(repo, end, len(repo) - 1) |