changeset 8284:36c704b0e7ab

bisect: use subprocess to get command return code
author Alexander Solovyov <piranha@piranha.org.ua>
date Sun, 03 May 2009 10:38:08 +0300
parents d6134b800797
children 262738574aff
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun May 03 00:41:09 2009 +0200
+++ b/mercurial/commands.py	Sun May 03 10:38:08 2009 +0300
@@ -8,7 +8,7 @@
 from node import hex, nullid, nullrev, short
 from lock import release
 from i18n import _, gettext
-import os, re, sys, textwrap
+import os, re, sys, textwrap, subprocess
 import hg, util, revlog, bundlerepo, extensions, copies, context, error
 import difflib, patch, time, help, mdiff, tempfile, url, encoding
 import archival, changegroup, cmdutil, hgweb.server, sshserver, hbisect
@@ -343,7 +343,7 @@
         try:
             while changesets:
                 # update state
-                status = os.spawnl(os.P_WAIT, commandpath, commandpath)
+                status = subprocess.call([commandpath])
                 if status == 125:
                     transition = "skip"
                 elif status == 0: