# # # patch "mtn.py" # from [a5ec3cbfe946ecd1906516504d035eaf269a3622] # to [841033a1a4de47d51405d0f9a10c2743ec7933b7] # ============================================================ --- mtn.py a5ec3cbfe946ecd1906516504d035eaf269a3622 +++ mtn.py 841033a1a4de47d51405d0f9a10c2743ec7933b7 @@ -67,7 +67,7 @@ class Automate(object): """ def __init__(self, monotone, database, **kwargs): self.database = database - self.base_command = [monotone, "--db=%s" % pipes.quote(database)] + self.command = [monotone, "automate", "stdio", "--db=%s" % pipes.quote(database)] self.lock = threading.Lock() self.process = None self.running_mtime = None @@ -90,9 +90,8 @@ class Automate(object): '''returns whether it started a process''' if self.process != None: return False - to_run = self.base_command + ['automate', 'stdio'] self.running_mtime = self.database_mtime() - self.process = popen2.Popen3(to_run, capturestderr=True) + self.process = popen2.Popen3(self.command, capturestderr=True) map (set_nonblocking, [ self.process.fromchild, self.process.tochild, self.process.childerr ])