[PATCH 9 of 9] hbisect: add functions to return a label for a cset bisection status

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Mon Sep 19 17:47:06 CDT 2011


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

What I'd like, is a possibility to *easily* see the bisection status, so
I'd like to see smthg like 1 or 2. (Note that the examples above have been
manually written, and are *not* actual output from any command.)

Of course, I'm open to any suggestion. ;-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


More information about the Mercurial-devel mailing list