hgext3rd/topic/__init__.py
changeset 1978 e42dd4523c0d
parent 1977 137f8b04901e
child 1979 bee7a1ef8ba8
--- a/hgext3rd/topic/__init__.py	Fri Aug 12 23:59:37 2016 +0200
+++ b/hgext3rd/topic/__init__.py	Sat Aug 13 01:24:10 2016 +0200
@@ -45,6 +45,7 @@
 cmdtable = {}
 command = cmdutil.command(cmdtable)
 colortable = {'topic.active': 'green',
+              'topic.list.troubledcount': 'red',
               'topic.stack.index': 'yellow',
               'topic.stack.state.base': 'dim',
               'topic.stack.state.clean': 'green',
@@ -295,6 +296,11 @@
             fm.plain('\t(')
             fm.write('changesetcount', '%d changesets', data['changesetcount'],
                      label='topic.list.changesetcount')
+            if data['troubledcount']:
+                fm.plain(', ')
+                fm.write('troubledcount', '%d troubled',
+                         data['troubledcount'],
+                         label='topic.list.troubledcount')
             fm.plain(')')
         fm.plain('\n')
     fm.end()