This is an archive of the discontinued Mercurial Phabricator instance.

run-tests: enable color on Windows

Authored by mharbison72 on May 20 2021, 4:16 PM.



In setting up the CI for Windows on heptapod, I noticed it was complaining about
color not being enabled because pygments wasn't installed- even though it was.
I had initially disabled color on Windows when using Windows 7, because that
didn't understand ANSI color codes and made a mess of the output. But now that
it's been unsupported for over a year, I don't think we should care about it

It's admittedly a hack to depend on Mercurial proper to enable color support in
the terminal, but I didn't feel like duplicating that code. I'm under the
impression that 3rd party stuff is supposed to use this runner in the Mercurial
repo instead of using their own copy, so I think it's safe to assume the
Mercurial code is available. If it's not, it won't break anything.

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mharbison72 created this revision.May 20 2021, 4:16 PM
pulkit accepted this revision.May 23 2021, 3:34 PM
This revision is now accepted and ready to land.May 23 2021, 3:34 PM
This revision was automatically updated to reflect the committed changes.