Mercurial > hg
changeset 8805:2726a6df11e9
bisect: improve --command output
- Display tested revisions without --verbose
- Display revision number
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 13 Jun 2009 23:02:51 +0200 |
parents | 820723a4bd17 |
children | 14a0bdd59848 |
files | mercurial/commands.py tests/test-bisect.out |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Jun 13 22:42:16 2009 +0200 +++ b/mercurial/commands.py Sat Jun 13 23:02:51 2009 +0200 @@ -357,9 +357,9 @@ raise util.Abort(_("%s killed") % command) else: transition = "bad" - node = repo.lookup(rev or '.') - state[transition].append(node) - ui.note(_('Changeset %s: %s\n') % (short(node), transition)) + ctx = repo[rev or '.'] + state[transition].append(ctx.node()) + ui.status(_('Changeset %d:%s: %s\n') % (ctx, ctx, transition)) check_state(state, interactive=False) # bisect nodes, changesets, good = hbisect.bisect(repo.changelog, state)
--- a/tests/test-bisect.out Sat Jun 13 22:42:16 2009 +0200 +++ b/tests/test-bisect.out Sat Jun 13 23:02:51 2009 +0200 @@ -308,6 +308,11 @@ % test bisecting command Testing changeset 15:e7fa0811edb0 (31 changesets remaining, ~4 tests) 1 files updated, 0 files merged, 0 files removed, 0 files unresolved +Changeset 15:e7fa0811edb0: good +Changeset 7:03750880c6b5: good +Changeset 3:b53bea5e2fcb: bad +Changeset 5:7874a09ea728: bad +Changeset 6:a3d5c6fdf0d3: good The first good revision is: changeset: 6:a3d5c6fdf0d3 user: test