diff mercurial/scmutil.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 d916ed3ca951
children bf249bb60087
line wrap: on
line diff
--- a/mercurial/scmutil.py	Thu Feb 09 09:17:40 2017 -0800
+++ b/mercurial/scmutil.py	Thu Oct 18 21:00:07 2018 +0900
@@ -1043,10 +1043,10 @@
         if repo.ui.verbose or not m.exact(abs):
             if abs in unknownset:
                 status = _('adding %s\n') % m.uipath(abs)
-                label = 'addremove.added'
+                label = 'ui.addremove.added'
             else:
                 status = _('removing %s\n') % m.uipath(abs)
-                label = 'addremove.removed'
+                label = 'ui.addremove.removed'
             repo.ui.status(status, label=label)
 
     renames = _findrenames(repo, m, added + unknown, removed + deleted,