Skip to content

Commit 162aad2

Browse files
author
Bogdan Marinescu
committed
Changed do_sync do return the list of changed repositories
1 parent 5ec4edf commit 162aad2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

workspace_tools/synch.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,12 @@ def update_mbed():
284284
update_repo("mbed", join(BUILD_DIR, "mbed"))
285285

286286
def do_sync(options):
287-
global push_remote, quiet, commit_msg
287+
global push_remote, quiet, commit_msg, changed
288288

289289
push_remote = not options.nopush
290290
quiet = options.quiet
291291
commit_msg = options.msg
292+
chnaged = []
292293

293294
if options.code:
294295
update_code(OFFICIAL_CODE)
@@ -302,6 +303,8 @@ def do_sync(options):
302303
if changed:
303304
print "Repositories with changes:", changed
304305

306+
return changed
307+
305308
if __name__ == '__main__':
306309
parser = OptionParser()
307310

0 commit comments

Comments
 (0)