hgext3rd/topic/__init__.py
changeset 1985 03d6b685c16a
parent 1979 bee7a1ef8ba8
child 1987 d427fd97c9d5
--- a/hgext3rd/topic/__init__.py	Mon Aug 15 00:19:44 2016 +0200
+++ b/hgext3rd/topic/__init__.py	Sun Aug 14 19:57:58 2016 +0200
@@ -47,6 +47,8 @@
 colortable = {'topic.active': 'green',
               'topic.list.troubledcount': 'red',
               'topic.list.headcount.multiple': 'yellow',
+              'topic.list.behindcount': 'cyan',
+              'topic.list.behinderror': 'red',
               'topic.stack.index': 'yellow',
               'topic.stack.state.base': 'dim',
               'topic.stack.state.clean': 'green',
@@ -307,6 +309,16 @@
                 fm.write('headcount', '%d heads',
                          data['headcount'],
                          label='topic.list.headcount.multiple')
+            if 0 < data['behindcount']:
+                fm.plain(', ')
+                fm.write('behindcount', '%d behind',
+                         data['behindcount'],
+                         label='topic.list.behindcount')
+            elif -1 == data['behindcount']:
+                fm.plain(', ')
+                fm.write('behinderror', '%s',
+                         _('ambiguous destination'),
+                         label='topic.list.behinderror')
             fm.plain(')')
         fm.plain('\n')
     fm.end()