Commits

Steve Borho committed d6e808e

sync: emit a message when outgoing --subrepo completes (closes #1564)

Comments (0)

Files changed (1)

tortoisehg/hgqt/sync.py

                        '--template', '{node}\n']
             self.run(cmdline, ('force', 'branch', 'rev'))
         else:
-            self.finishfunc = None
+            def finished(ret, data):
+                if ret == 0:
+                    self.showMessage.emit(_('%d outgoing changesets to %s') %
+                                          (len(nodes), urlu))
+                elif ret == 1:
+                    self.showMessage.emit(_('No outgoing changesets to %s') % urlu)
+                else:
+                    self.showMessage.emit(_('Outgoing to %s aborted, ret %d') % (urlu, ret))
+            self.finishfunc = finished
             cmdline = ['--repository', self.repo.root, 'outgoing']
             self.run(cmdline, ('force', 'branch', 'rev', 'subrepos'))