sapling/eden/scm/tests/test-color-enablement.t
Muir Manders 1dcb7966fc tests: turn on eagerepo for a bunch of tests
Summary: These are the tests that passed after adding "$ eagerepo". I attempted to turn on eagerepo for all tests that didn't contain "$ eagerepo" or "configure modern".

Reviewed By: quark-zju

Differential Revision: D44445379

fbshipit-source-id: b283be6d5249f74e11a3205622961e457587e93b
2023-04-04 08:42:03 -07:00

30 lines
621 B
Perl

#chg-compatible
#debugruntest-compatible
$ eagerepo
$ setconfig alias.testcolor="debugtemplate '{label(\"green\", \"output\n\")}'"
$ HGPLAINEXCEPT=alias hg testcolor
output
$ HGPLAINEXCEPT=alias hg testcolor --color always
output
$ hg testcolor --color always
\x1b[32moutput\x1b[39m (esc)
$ hg testcolor --color yes
\x1b[32moutput\x1b[39m (esc)
$ hg testcolor --color auto
output
$ HGPLAINEXCEPT=color,alias hg testcolor --color always
\x1b[32moutput\x1b[39m (esc)
$ hg testcolor --config ui.color=always
\x1b[32moutput\x1b[39m (esc)
$ hg testcolor --config ui.color=t
output