adding log command to color extension

Brodie Rao dackze at gmail.com
Fri Mar 19 17:22:59 CDT 2010


On Mar 19, 2010, at 6:05 PM, Gilles Moris wrote:

> On Friday 19 March 2010 11:27:27 am Martin Geisler wrote:
>>> +_log_effects = { 'changeset': ['white', 'bold'],
>>> +                 'parent': ['none'],
>>> +                 'tag': ['cyan'],
>>> +                 'user': ['magenta'],
>>> +                 'date': ['none'],
>>> +                 'summary': ['blue', 'bold'], }
>> 
>> Perhaps we should just colorize the "changeset:" line by default? That
>> way each significant record of the output will begin with a colored
>> line. Your color scheme is a bit too colorful for my taste :-)
> 
> And I've just realized that because my background was white as well,
> "changeset:" wasn't appearing at all. White and black color should be
> avoided as those colors are common background.

I agree with Martin, and I think yellow'd be nice. I've done something similar in a patch series I'm working on for direct color/annotation support (as opposed to parsing/wrapping output). Highlighting each changeset line makes scanning a lot easier, especially when displaying diffs with hg log -p.

Coloring graphlog would also be great (a la hgweb and THG). I've been taking a look at it, but the code in graphlog has left me scratching my head so far.


More information about the Mercurial-devel mailing list