[issue2866] Color extension ignored when using style template

Michael Williams bugs at mercurial.selenic.com
Wed Jun 22 16:21:16 CDT 2011


New submission from Michael Williams <mike at pentangle.net>:

The color extension is ignored when a style is specified, either using the --style command 
or in .hgrc.

REPRODUCTION

1. Enable the color extension by including the following in ~/.hgrc

  [extensions]
  color=
  [color]
  log.changeset=yellow

2. Run "hg log" and "hg log --style=default". Then add "style=default" to ~/.hgrc and run 
"hg log" again.

EXPECTED BEHAVIOUR

Changeset line of log output is highlighted in yellow in all three "hg log" commands

ACTUAL BEHAVIOUR

Changeset line of log output only highlighted if no style is specified on the command line 
or in .hgrc configuration. If a style is specified then all color preferences are ignored.

NOTES

You may say, "well, don't specify --style=default!" Unfortunately this is a problem 
because my goal is to tweak the default template. I made a copy of the template, called it 
map-cmdline.default2 and whether I do hg log --style=default2 or add style=default2 to my 
~/.hgrc, the color highlighting is disabled.

----------
messages: 16596
nosy: williamsmj
priority: bug
status: unread
title: Color extension ignored when using style template

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2866>
____________________________________________________


More information about the Mercurial-devel mailing list