I've created a wincolor extension that performs this same hack at a lower
level. It swaps out sys.stdout for an ANSI aware pyreadline console as soon
as wincolor is loaded into the hg process.
http://bitbucket.org/sborho/wincolor
Recent TortoiseHg nightly builds include pyreadline and wincolor, so the
color extension works right away if you enable wincolor as well, as in:
[extensions]
color =
wincolor =
It's an open topic for future optimization to combine wincolor into the
color extension, when wincolor is considered stable.
|