comparison mercurial/commands.py @ 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 ca14b3982ffe
children 14a0bdd59848
comparison
equal deleted inserted replaced
8804:820723a4bd17 8805:2726a6df11e9
355 raise util.Abort(_("failed to execute %s") % command) 355 raise util.Abort(_("failed to execute %s") % command)
356 elif status < 0: 356 elif status < 0:
357 raise util.Abort(_("%s killed") % command) 357 raise util.Abort(_("%s killed") % command)
358 else: 358 else:
359 transition = "bad" 359 transition = "bad"
360 node = repo.lookup(rev or '.') 360 ctx = repo[rev or '.']
361 state[transition].append(node) 361 state[transition].append(ctx.node())
362 ui.note(_('Changeset %s: %s\n') % (short(node), transition)) 362 ui.status(_('Changeset %d:%s: %s\n') % (ctx, ctx, transition))
363 check_state(state, interactive=False) 363 check_state(state, interactive=False)
364 # bisect 364 # bisect
365 nodes, changesets, good = hbisect.bisect(repo.changelog, state) 365 nodes, changesets, good = hbisect.bisect(repo.changelog, state)
366 # update to next check 366 # update to next check
367 cmdutil.bail_if_changed(repo) 367 cmdutil.bail_if_changed(repo)