[Bug 5413] New: nested labels get incorrectly colored
bugzilla at mercurial-scm.org
bugzilla at mercurial-scm.org
Fri Nov 4 14:11:41 UTC 2016
https://bz.mercurial-scm.org/show_bug.cgi?id=5413
Bug ID: 5413
Summary: nested labels get incorrectly colored
Product: Mercurial
Version: 4.0-rc
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: color
Assignee: bugzilla at selenic.com
Reporter: martinvonz at google.com
CC: mercurial-devel at selenic.com
The following command print "preinpost" where "pre" and "post" have label
"nested.outer" and "in" has labels "nested.outer" and "nested.inner".
hg --config color.nested.outer=green --config color.nested.inner=red log -r. -T
'{label("nested.outer", "pre{label("nested.inner", "in")}post\n")}'
I would expect the "pre" and "post" to be green and "in" to be red. However,
"post" ends up white (on my terminal) because the color is turned off at the
end of "in".
Passing --color=debug gives support to my expectation:
[nested.outer|pre[nested.inner|in]post]
With the color escape codes:
[[0;32mpre^[[0;31min^[[0mpost^[[0m
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list