# # # patch "mtn.py" # from [505ae360cf6fcfa6ea5ec6d6f5a8e656ac874c72] # to [baac0cadf56fd7639ff48b4b9f0828e1db05d70d] # ============================================================ --- mtn.py 505ae360cf6fcfa6ea5ec6d6f5a8e656ac874c72 +++ mtn.py baac0cadf56fd7639ff48b4b9f0828e1db05d70d @@ -245,25 +245,6 @@ class Automate(Runner): if code > 0: raise MonotoneException("error code %d in automate packet." % (code)) -class Standalone(Runner): - """Runs commands by running monotone. One monotone process - per command""" - - def run(self, command, args): - # as we pass popen3 as sequence, it executes monotone with these - # arguments - and does not pass them through the shell according - # to help(os.popen3) -# debug(("standalone is running:", command, args)) - to_run = self.base_command + [command] + args - process = popen2.Popen3(to_run, capturestderr=True) - for line in process.fromchild: - yield line - stderr_data = process.childerr.read() - if len(stderr_data) > 0: - raise MonotoneException("data on stderr for command '%s': %s" % (command, - stderr_data)) - terminate_popen3(process) - class MtnObject(object): def __init__(self, obj_type): self.obj_type = obj_type @@ -385,7 +366,6 @@ class Operations(object): class Operations(object): def __init__(self, runner_args): - self.standalone = apply(Standalone, runner_args) self.automate = apply(Automate, runner_args) def per_request(self):