--- 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()