[PATCH 4 of 6 RFC] color: add an array of default labels

Sean Farley sean.michael.farley at gmail.com
Mon Dec 24 01:03:11 CST 2012


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1356329608 21600
# Node ID ff411dd59f4ef22383b647ae2e0c98da1310bba4
# Parent  7270e507a63ecf14622e07d4f2809929acfca6f7
color: add an array of default labels

diff --git a/hgext/color.py b/hgext/color.py
--- a/hgext/color.py
+++ b/hgext/color.py
@@ -261,10 +261,32 @@
            'status.removed': 'red bold',
            'status.unknown': 'magenta bold underline',
            'tags.normal': 'green',
            'tags.local': 'black bold'}
 
+_labels = {
+    'author': 'log.user',
+    'branch': 'log.branch',
+    'bookmarks': 'log.bookmark',
+    'children': 'log.changeset',
+    'date': 'log.date',
+    'desc': 'log.description',
+    'extras': 'log.extra',
+    'file': 'log.files',
+    'latesttag': 'log.tag',
+    'manifest': 'log.manifest',
+    'node': 'log.changeset',
+    'p1rev': 'log.changeset',
+    'p1node': 'log.changeset',
+    'p2rev': 'log.changeset',
+    'p2node': 'log.changeset',
+    'phase': 'log.phase',
+    'phaseidx': 'log.phase',
+    'rev': 'log.changeset',
+    'tags': 'log.tag',
+}
+
 
 def _effect_str(effect):
     '''Helper function for render_effects().'''
 
     bg = False


More information about the Mercurial-devel mailing list