Color extension in ANSI mode - Hg 1.6

Steve Borho steve at borho.org
Sat Jul 3 11:29:51 CDT 2010


On Sat, Jul 3, 2010 at 5:52 AM, Eduard Stefan <alexandrul.ct at gmail.com> wrote:
> I have a little problem with the color extension:
> I'm capturing the commands output with ui.pushbuffer()
> & ui.popbuffer(), but the output doesn't contain
> any ANSI sequence.
>
> I've set the TERM environment variable, also tried
> running "hg.exe diff -r 334 --color always"
> - in all cases the captured output has no ANSI codes.
>
> In case of "hg.exe diff -r 334 --color always > a.txt"
> the text file does contain the expected ANSI codes.
>
> Has anything changed in ui.pushbuffer()/ui.popbuffer()
> behavior in 1.6 version (1.5 worked fine)?

Color changed a lot between 1.5 and 1.6.  label arguments were added
to many ui methods (including popbuffer()) so Mercurial can explicitly
state a style to apply to each piece of output.

-- 
Steve Borho


More information about the Mercurial-devel mailing list