diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2058,7 +2058,7 @@ def add(ui, repo, match, prefix, explici names.append(f) if ui.verbose or not exact: ui.status(_('adding %s\n') % match.rel(f), - label='addremove.added') + label='ui.addremove.added') for subpath in sorted(wctx.substate): sub = wctx.sub(subpath) @@ -2157,7 +2157,7 @@ def forget(ui, repo, match, prefix, expl for f in forget: if ui.verbose or not match.exact(f) or interactive: ui.status(_('removing %s\n') % match.rel(f), - label='addremove.removed') + label='ui.addremove.removed') if not dryrun: rejected = wctx.forget(forget, prefix) @@ -2291,7 +2291,7 @@ def remove(ui, repo, m, prefix, after, f if ui.verbose or not m.exact(f): progress.increment() ui.status(_('removing %s\n') % m.rel(f), - label='addremove.removed') + label='ui.addremove.removed') progress.complete() if not dryrun: diff --git a/mercurial/color.py b/mercurial/color.py --- a/mercurial/color.py +++ b/mercurial/color.py @@ -83,8 +83,6 @@ except ImportError: '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 @@ except ImportError: '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', diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -1043,10 +1043,10 @@ def addremove(repo, matcher, prefix, opt 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, diff --git a/tests/test-add.t b/tests/test-add.t --- a/tests/test-add.t +++ b/tests/test-add.t @@ -14,7 +14,7 @@ adding a $ hg forget a $ hg add --color debug - [addremove.added ui.status|adding a] + [ui.addremove.added ui.status|adding a] $ hg st A a $ mkdir dir diff --git a/tests/test-addremove.t b/tests/test-addremove.t --- a/tests/test-addremove.t +++ b/tests/test-addremove.t @@ -70,10 +70,10 @@ adding d recording removal of a as rename to b (100% similar) $ hg addremove -ns 50 --color debug - [addremove.removed ui.status|removing a] - [addremove.added ui.status|adding b] - [addremove.removed ui.status|removing c] - [addremove.added ui.status|adding d] + [ui.addremove.removed ui.status|removing a] + [ui.addremove.added ui.status|adding b] + [ui.addremove.removed ui.status|removing c] + [ui.addremove.added ui.status|adding d] [ ui.status|recording removal of a as rename to b (100% similar)] $ hg addremove -s 50 removing a diff --git a/tests/test-remove.t b/tests/test-remove.t --- a/tests/test-remove.t +++ b/tests/test-remove.t @@ -527,7 +527,7 @@ test dry-run for remove \r (no-eol) (esc) deleting [===========================================>] 1/1\r (no-eol) (esc) \r (no-eol) (esc) - [addremove.removed ui.status|removing a] + [ui.addremove.removed ui.status|removing a] $ hg diff $ cat >> .hg/hgrc <