Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: synch.py
- Revision:
- 17:04753e1e329d
- Parent:
- 13:ab47a20b66f0
- Child:
- 31:8ea194f6145b
diff -r a6285a7e5cc6 -r 04753e1e329d synch.py
--- 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