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

login
register
mail settings
Submitter Sean Farley
Date Dec. 24, 2012, 7:03 a.m.
Message ID <ff411dd59f4ef22383b6.1356332591@laptop.local>
Download mbox | patch
Permalink /patch/294/
State Superseded
Headers show

Comments

Sean Farley - Dec. 24, 2012, 7:03 a.m.
# 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

Patch

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