[PATCH 2 of 3] color: style the changeset parents yellow too
Dan Villiom Podlaski Christiansen
danchr at gmail.com
Sun May 1 10:11:55 CDT 2011
# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
# Date 1304261814 -7200
# Node ID 5df08ee62c531a8306ff9734b0ad848776463e54
# Parent 1c8a84c0797a23092947efbe60d4ef63d5d9859d
color: style the changeset parents yellow too
diff --git a/hgext/color.py b/hgext/color.py
--- a/hgext/color.py
+++ b/hgext/color.py
@@ -193,6 +193,7 @@ _styles = {'grep.match': 'red bold',
'diffstat.inserted': 'green',
'ui.prompt': 'yellow',
'log.changeset': 'yellow',
+ 'log.parent': 'yellow',
'resolve.resolved': 'green bold',
'resolve.unresolved': 'red bold',
'status.added': 'green bold',
diff --git a/tests/test-log.t b/tests/test-log.t
--- a/tests/test-log.t
+++ b/tests/test-log.t
@@ -558,8 +558,8 @@ log -p -l2 --color=always
\x1b[0;32m+postm\x1b[0m (esc)
\x1b[0;33mchangeset: 5:302e9dd6890d\x1b[0m (esc)
- parent: 3:e62f78d544b4
- parent: 4:ddb82e70d1a1
+ \x1b[0;33mparent: 3:e62f78d544b4\x1b[0m (esc)
+ \x1b[0;33mparent: 4:ddb82e70d1a1\x1b[0m (esc)
user: test
date: Thu Jan 01 00:00:01 1970 +0000
summary: m12
More information about the Mercurial-devel
mailing list