mercurial/commands.py
changeset 8806 14a0bdd59848
parent 8796 2bcef677a6c3
parent 8805 2726a6df11e9
child 8810 ac92775b3b80
--- a/mercurial/commands.py	Sat Jun 13 18:01:48 2009 -0500
+++ b/mercurial/commands.py	Sat Jun 13 18:08:51 2009 -0500
@@ -339,6 +339,8 @@
 
     if command:
         commandpath = util.find_exe(command)
+        if commandpath is None:
+            raise util.Abort(_("cannot find executable: %s") % command)
         changesets = 1
         try:
             while changesets:
@@ -355,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)