# HG changeset patch # User Patrick Mezard # Date 2009-06-13 21:02:51 # Node ID 2726a6df11e9495106e9889bb32db6ace956608e # Parent 820723a4bd174235427f6ae1e83faa3260480f10 bisect: improve --command output - Display tested revisions without --verbose - Display revision number diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -357,9 +357,9 @@ def bisect(ui, repo, rev=None, extra=Non 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) diff --git a/tests/test-bisect.out b/tests/test-bisect.out --- a/tests/test-bisect.out +++ b/tests/test-bisect.out @@ -308,6 +308,11 @@ abort: cannot find executable: foobar % 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