comparison hgext/extdiff.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 9fd9f91b0c43
children bb2525871d95
comparison
equal deleted inserted replaced
33679:8fbd56a4073c 33680:f9f28ee41cac