Mercurial > hg
comparison mercurial/help/environment.txt @ 35181:d4805a5e7e70
color: respect HGPLAINEXCEPT=color to allow colors while scripting (issue5749)
I'd also like --color=always on the command-line to override HGPLAIN=1
et al, but that's more work, and this seems like a better fix. We've
got a fair number of programs that actually want to automate hg and
get colored output to users, so they should set HGPLAINEXCEPT=alias
(what we usually recommend), but this has been breaking them because
they then lose color.
.. feature::
The ``HGPLAINEXCEPT`` environment variable can now include ``color``
to allow automatic output colorization in otherwise automated
environments.
Differential Revision: https://phab.mercurial-scm.org/D1532
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 28 Nov 2017 13:27:43 -0500 |
parents | 40785ccab410 |
children | aef2b98d9352 |
comparison
equal
deleted
inserted
replaced
35180:3180ff7f6025 | 35181:d4805a5e7e70 |
---|---|
63 This is a comma-separated list of features to preserve when | 63 This is a comma-separated list of features to preserve when |
64 HGPLAIN is enabled. Currently the following values are supported: | 64 HGPLAIN is enabled. Currently the following values are supported: |
65 | 65 |
66 ``alias`` | 66 ``alias`` |
67 Don't remove aliases. | 67 Don't remove aliases. |
68 ``color`` | |
69 Don't disable colored output. | |
68 ``i18n`` | 70 ``i18n`` |
69 Preserve internationalization. | 71 Preserve internationalization. |
70 ``revsetalias`` | 72 ``revsetalias`` |
71 Don't remove revset aliases. | 73 Don't remove revset aliases. |
72 ``templatealias`` | 74 ``templatealias`` |