hgext3rd/topic/__init__.py
changeset 1979 bee7a1ef8ba8
parent 1978 e42dd4523c0d
child 1985 03d6b685c16a
--- a/hgext3rd/topic/__init__.py	Sat Aug 13 01:24:10 2016 +0200
+++ b/hgext3rd/topic/__init__.py	Sun Aug 14 19:40:53 2016 +0200
@@ -46,6 +46,7 @@
 command = cmdutil.command(cmdtable)
 colortable = {'topic.active': 'green',
               'topic.list.troubledcount': 'red',
+              'topic.list.headcount.multiple': 'yellow',
               'topic.stack.index': 'yellow',
               'topic.stack.state.base': 'dim',
               'topic.stack.state.clean': 'green',
@@ -301,6 +302,11 @@
                 fm.write('troubledcount', '%d troubled',
                          data['troubledcount'],
                          label='topic.list.troubledcount')
+            if 1 < data['headcount']:
+                fm.plain(', ')
+                fm.write('headcount', '%d heads',
+                         data['headcount'],
+                         label='topic.list.headcount.multiple')
             fm.plain(')')
         fm.plain('\n')
     fm.end()