diff mercurial/commands.py @ 30715:7b526670f540

summary: add evolution "troubles" information to summary output Extend the "parent: " lines in summary with the list of evolution "troubles" in parentheses, when the parent is troubled.
author Denis Laxalde <denis.laxalde@logilab.fr>
date Fri, 06 Jan 2017 14:35:22 +0100
parents 8d46eaaa589c
children 4ab19763d71c
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Jan 06 14:34:34 2017 +0100
+++ b/mercurial/commands.py	Fri Jan 06 14:35:22 2017 +0100
@@ -5991,6 +5991,15 @@
                 ui.write(_(' (empty repository)'))
             else:
                 ui.write(_(' (no revision checked out)'))
+        if p.troubled():
+            ui.write(' (')
+            troubles = p.troubles()
+            for idx, trouble in enumerate(troubles, 1):
+                ui.write(trouble,
+                         label='trouble.%s' % trouble)
+                if idx < len(troubles):
+                    ui.write(', ')
+            ui.write(')')
         ui.write('\n')
         if p.description():
             ui.status(' ' + p.description().splitlines()[0].strip() + '\n',