diff hgext3rd/topic/__init__.py @ 4581:48521a49a07e

stack: rename troubledcount to unstablecount
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 10 Apr 2019 18:20:33 +0800
parents 5e8c47c553db
children c4097632a1a3
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Wed Apr 24 17:21:21 2019 +0800
+++ b/hgext3rd/topic/__init__.py	Wed Apr 10 18:20:33 2019 +0800
@@ -154,7 +154,7 @@
 cmdtable = {}
 command = registrar.command(cmdtable)
 colortable = {'topic.active': 'green',
-              'topic.list.troubledcount': 'red',
+              'topic.list.unstablecount': 'red',
               'topic.list.headcount.multiple': 'yellow',
               'topic.list.behindcount': 'cyan',
               'topic.list.behinderror': 'red',
@@ -1024,11 +1024,11 @@
         fm.write('changesetcount', '%d changesets', data.changesetcount,
                  label='topic.list.changesetcount')
 
-        if data.troubledcount:
+        if data.unstablecount:
             fm.plain(', ')
-            fm.write('troubledcount', '%d troubled',
-                     data.troubledcount,
-                     label='topic.list.troubledcount')
+            fm.write('unstablecount', '%d unstable',
+                     data.unstablecount,
+                     label='topic.list.unstablecount')
 
         headcount = len(data.heads)
         if 1 < headcount: