Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 15153:fa0a464e4ca5
hbisect: add two new revset descriptions: 'goods' and 'bads'
This patch adds two new revset descriptions:
- 'goods': the list of topologicaly-good csets:
- if good csets are topologically before bad csets, yields '::good'
- else, yields 'good::'
- and conversely for 'bads'
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
author | "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> |
---|---|
date | Sat, 24 Sep 2011 01:32:50 +0200 |
parents | 395ca8cd2669 |
children | 8bea39ca9acb |
comparison
equal
deleted
inserted
replaced
15151:0d4f6e843b05 | 15153:fa0a464e4ca5 |
---|---|
235 n = getstring(x, _("author requires a string")).lower() | 235 n = getstring(x, _("author requires a string")).lower() |
236 return [r for r in subset if n in repo[r].user().lower()] | 236 return [r for r in subset if n in repo[r].user().lower()] |
237 | 237 |
238 def bisect(repo, subset, x): | 238 def bisect(repo, subset, x): |
239 """``bisect(string)`` | 239 """``bisect(string)`` |
240 Changesets marked in the specified bisect status (``good``, ``bad``, | 240 Changesets marked in the specified bisect status: |
241 ``skip``), or any of the meta-status: | 241 |
242 | 242 - ``good``, ``bad``, ``skip``: csets explicitly marked as good/bad/skip |
243 - ``range`` : all csets taking part in the bisection | 243 - ``goods``, ``bads`` : csets topologicaly good/bad |
244 - ``pruned`` : csets that are good, bad or skipped | 244 - ``range`` : csets taking part in the bisection |
245 - ``untested`` : csets whose fate is yet unknown | 245 - ``pruned`` : csets that are goods, bads or skipped |
246 - ``ignored`` : csets ignored due to DAG topology | 246 - ``untested`` : csets whose fate is yet unknown |
247 - ``ignored`` : csets ignored due to DAG topology | |
247 """ | 248 """ |
248 status = getstring(x, _("bisect requires a string")).lower() | 249 status = getstring(x, _("bisect requires a string")).lower() |
249 return [r for r in subset if r in hbisect.get(repo, status)] | 250 return [r for r in subset if r in hbisect.get(repo, status)] |
250 | 251 |
251 # Backward-compatibility | 252 # Backward-compatibility |