Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
40366:b14fdf1fb615 | 40367:824b687ff6af |
---|---|
1041 toprint.update(deleted) | 1041 toprint.update(deleted) |
1042 for abs in sorted(toprint): | 1042 for abs in sorted(toprint): |
1043 if repo.ui.verbose or not m.exact(abs): | 1043 if repo.ui.verbose or not m.exact(abs): |
1044 if abs in unknownset: | 1044 if abs in unknownset: |
1045 status = _('adding %s\n') % m.uipath(abs) | 1045 status = _('adding %s\n') % m.uipath(abs) |
1046 label = 'addremove.added' | 1046 label = 'ui.addremove.added' |
1047 else: | 1047 else: |
1048 status = _('removing %s\n') % m.uipath(abs) | 1048 status = _('removing %s\n') % m.uipath(abs) |
1049 label = 'addremove.removed' | 1049 label = 'ui.addremove.removed' |
1050 repo.ui.status(status, label=label) | 1050 repo.ui.status(status, label=label) |
1051 | 1051 |
1052 renames = _findrenames(repo, m, added + unknown, removed + deleted, | 1052 renames = _findrenames(repo, m, added + unknown, removed + deleted, |
1053 similarity) | 1053 similarity) |
1054 | 1054 |