changeset 1908:dbd6d51e63f1

stack: add some default color configuration We can make the output more insightful with some default colors, let's do it.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 14 Mar 2016 19:22:21 +0000
parents 95874e8fc5f2
children 36112e361ee4
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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'