[PATCH 9 of 9] hbisect: add functions to return a label for a cset bisection status
Matt Mackall
mpm at selenic.com
Mon Sep 19 18:21:25 CDT 2011
On Tue, 2011-09-20 at 00:47 +0200, Yann E. MORIN wrote:
> Matt, All,
>
> On Monday 19 September 2011 22:22:04 Matt Mackall wrote:
> > On Mon, 2011-09-19 at 01:31 +0200, Yann E. MORIN wrote:
> [--SNIP--]
> > > hbisect: add functions to return a label for a cset bisection status
> >
> > This looks like something that should be a template method? I'm going to
> > skip queueing it until there's something that uses it.
>
> Yes, that was my question in the intro mail. How should we display the
> bisection status?
>
> I have a few ideas (which may or may not be exclusive to each others):
>
> 1) add a new option '--bisect' to log, that prints the bisect status if
> it is relevant:
> $ hg log --bisect-status -r -2:.
> changeset: 15141:0a355a32b5be
> tag: hbisect.get-simpler-code
> bisect: good
> user: "Yann E. MORIN" <yann.morin.1998 at anciens.enib.fr>
> date: Mon Sep 19 23:17:10 2011 +0200
> summary: hbisect.get: use simpler code
>
> changeset: 15142:622d1a966e61
> tag: hbisect.get-add-ignored
> bisect: ignored
> user: "Yann E. MORIN" <yann.morin.1998 at anciens.enib.fr>
> date: Sat Sep 17 17:39:17 2011 +0200
> summary: revset.bisect: add 'ignored' set to the bisect keyword
>
> $ hg log --bisect-status --quiet -r -2:.
> g 15141:0a355a32b5be
> i 15142:622d1a966e61
>
> 2) fake a tag:
> $ hg log --bisect-status -r -2:.
> changeset: 15141:0a355a32b5be
> tag: hbisect.get-simpler-code
> tag: bisect_good
> user: "Yann E. MORIN" <yann.morin.1998 at anciens.enib.fr>
> date: Mon Sep 19 23:17:10 2011 +0200
> summary: hbisect.get: use simpler code
>
> changeset: 15142:622d1a966e61
> tag: hbisect.get-add-ignored
> tag: bisect_ignored
> user: "Yann E. MORIN" <yann.morin.1998 at anciens.enib.fr>
> date: Sat Sep 17 17:39:17 2011 +0200
> summary: revset.bisect: add 'ignored' set to the bisect keyword
>
> 3) print the bisection status in the extras fields (eg. where we'd find
> transplant, for example). I'll let your imagination turn up with how
> the output would be formatted. ;-)
>
> 4) add a template keyword, with a filter:
> $ hg log -r -2:. --template '{rev}: {bisect}\n'
> 15141: good
> 15142: ignored
> $ hg log -r -2:. --template '{bisect|short} {rev}:{node|short}\n'
> g 15141:0a355a32b5be
> i 15142:622d1a966e61
5) $ hg log --style bisect
...which could look like any of the above?
?
Abusing "tag:" more than it is already is probably not the way to go.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list