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: bugzi...@selenic.com
          Reporter: martinv...@google.com
                CC: mercurial-de...@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.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to