stack: add some default color configuration
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 14 Mar 2016 19:22:21 +0000
changeset 1908 dbd6d51e63f1
parent 1907 95874e8fc5f2
child 1909 36112e361ee4
stack: add some default color configuration We can make the output more insightful with some default colors, let's do it.
hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py	Mon Mar 14 19:03:32 2016 +0000
+++ b/hgext3rd/topic/__init__.py	Mon Mar 14 19:22:21 2016 +0000
@@ -45,6 +45,13 @@
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
+colortable = {'topic.stack.index': 'yellow',
+              'topic.stack.state.clean': 'dim',
+              'topic.stack.index.current': 'cyan', # random pick
+              'topic.stack.state.current': 'cyan bold', # random pick
+              'topic.stack.desc.current': 'cyan', # random pick
+              'topic.stack.state.unstable': 'red',
+             }
 
 testedwith = '3.7'