broadcast: show return code on error

Resolves #60.
2 files changed, 10 insertions(+), 0 deletions(-)

M hgext3rd/confman/commands.py
M tests/test-broadcast.t
M hgext3rd/confman/commands.py +3 -0
@@ 402,6 402,9 @@ def broadcast(ui, repo, *args, **opts):
             out, err = proc.communicate()
             for data in out:
                 ui.write(data)
+            if proc.returncode != 0:
+                ui.write('finished with return code %s\n' % proc.returncode,
+                         label='confman.dirty')
 
 
 @command('cffiles', DEFAULTOPTS + [

          
M tests/test-broadcast.t +7 -0
@@ 113,3 113,10 @@ Test placeholders: unknown parameter
   managed2
   skip managed2: unknown parameter 'unknownparameter'
 
+
+Error reporting: error code is shown
+  $ hg cfbroadcast -e "false"
+  managed1
+  finished with return code 1
+  managed2
+  finished with return code 1