mercurial/commands.py
changeset 9584 17da88da1abd
parent 9569 ceb0f59e1327
child 9603 220d39af2e57
--- a/mercurial/commands.py	Mon Oct 12 14:59:28 2009 -0500
+++ b/mercurial/commands.py	Mon Oct 12 18:25:46 2009 -0500
@@ -340,14 +340,11 @@
     state = hbisect.load_state(repo)
 
     if command:
-        commandpath = util.find_exe(command)
-        if commandpath is None:
-            raise util.Abort(_("cannot find executable: %s") % command)
         changesets = 1
         try:
             while changesets:
                 # update state
-                status = subprocess.call([commandpath])
+                status = util.system(command)
                 if status == 125:
                     transition = "skip"
                 elif status == 0:
@@ -370,7 +367,7 @@
                 hg.clean(repo, nodes[0], show_stats=False)
         finally:
             hbisect.save_state(repo, state)
-        return print_result(nodes, not status)
+        return print_result(nodes, good)
 
     # update state
     node = repo.lookup(rev or '.')