Mercurial > public > mercurial-scm > hg-stable
diff mercurial/color.py @ 40367:824b687ff6af
addremove: add "ui." prefix to message color keys
I don't like fully-colorized status/warning messages, and I want to disable
them at all. If we'd supported a syntax like 'color.ui.*=none', I could
easily turn addremove.added/removed off as well as ui.error. This patch is
just for that.
Since addremove colors aren't released yet, which were added at ddc1da134772,
there are no compatibility concerns.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 18 Oct 2018 21:00:07 +0900 |
parents | cabf09dbc6e0 |
children | 49746e53ac92 |
line wrap: on
line diff
--- a/mercurial/color.py Thu Feb 09 09:17:40 2017 -0800 +++ b/mercurial/color.py Thu Oct 18 21:00:07 2018 +0900 @@ -83,8 +83,6 @@ 'grep.filename': 'magenta', 'grep.user': 'magenta', 'grep.date': 'magenta', - 'addremove.added': 'green', - 'addremove.removed': 'red', 'bookmarks.active': 'green', 'branches.active': 'none', 'branches.closed': 'black bold', @@ -119,6 +117,8 @@ 'formatvariant.config.default': 'green', 'formatvariant.default': '', 'histedit.remaining': 'red bold', + 'ui.addremove.added': 'green', + 'ui.addremove.removed': 'red', 'ui.error': 'red', 'ui.prompt': 'yellow', 'log.changeset': 'yellow',