Mercurial > hg
diff hgext/automv.py @ 33680:f9f28ee41cac
color: remove warnings if term is not formatted (==dumb or !ui.formatted())
If the user sets color.mode=terminfo, and then runs in the shell inside of emacs
(so TERM=dumb), the previous behavior was that it would warn about no terminfo
entry for setab/setaf, and then warn about 'failed to set color mode to
terminfo'. The first warning is silenced by carrying 'formatted' through to
_terminfosetup, the second is silenced by using 'formatted' instead of
ui.formatted().
If --color=on (or ui.color=always) is specified, this will still warn, since the
formatted boolean is set to true in these cases.
Differential Revision: https://phab.mercurial-scm.org/D223
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Thu, 03 Aug 2017 12:40:48 -0700 |
parents | 54bc88c56ec8 |
children | 38637dd39cfd |