# HG changeset patch # User Boris Feld # Date 2018-08-14 09:15:05 # Node ID 3ff9d2ec6d888b080880cc0a11f3c392762b2b16 # Parent ad88726d69822060a8ea9755d94809196ca3b864 add: add a label for messages about added files Keeping consistency between addremove and add seems a good idea. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2031,7 +2031,8 @@ def add(ui, repo, match, prefix, explici cca(f) names.append(f) if ui.verbose or not exact: - ui.status(_('adding %s\n') % match.rel(f)) + ui.status(_('adding %s\n') % match.rel(f), + label='addremove.added') for subpath in sorted(wctx.substate): sub = wctx.sub(subpath) diff --git a/tests/test-add.t b/tests/test-add.t --- a/tests/test-add.t +++ b/tests/test-add.t @@ -12,6 +12,9 @@ $ hg forget a $ hg add adding a + $ hg forget a + $ hg add --color debug + [addremove.added ui.status|adding a] $ hg st A a $ mkdir dir