Clone of official tools
Diff: synch.py
- Revision:
- 17:04753e1e329d
- Parent:
- 13:ab47a20b66f0
- Child:
- 31:8ea194f6145b
--- a/synch.py Thu Jul 14 21:29:46 2016 +0100 +++ b/synch.py Fri Jul 15 12:33:09 2016 +0100 @@ -122,7 +122,7 @@ class MbedRepository: @staticmethod def run_and_print(command, cwd): - stdout, _, _ = run_cmd(command, wd=cwd, redirect=True) + stdout, _, _ = run_cmd(command, work_dir=cwd, redirect=True) print(stdout) def __init__(self, name, team = None): @@ -147,7 +147,7 @@ def publish(self): # The maintainer has to evaluate the changes first and explicitly accept them self.run_and_print(['hg', 'addremove'], cwd=self.path) - stdout, _, _ = run_cmd(['hg', 'status'], wd=self.path) + stdout, _, _ = run_cmd(['hg', 'status'], work_dir=self.path) if stdout == '': print "No changes" return False