# HG changeset patch # User Matt Mackall # Date 2011-09-16 22:53:58 # Node ID c84b3f42d5ae9c5fe8d8c86f72e1129c6e8decd8 # Parent d1bbabf7d35dce76ecfa489b11c772d46cd731d1 remove: suggest forget to undo adds diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -4145,8 +4145,8 @@ def remove(ui, repo, *pats, **opts): ' to force removal)\n') % m.rel(f)) ret = 1 for f in added: - ui.warn(_('not removing %s: file has been marked for add (use -f' - ' to force removal)\n') % m.rel(f)) + ui.warn(_('not removing %s: file has been marked for add' + ' (use forget to undo)\n') % m.rel(f)) ret = 1 for f in sorted(list): diff --git a/tests/test-remove.t b/tests/test-remove.t --- a/tests/test-remove.t +++ b/tests/test-remove.t @@ -29,7 +29,7 @@ 00 state added, options none $ echo b > bar $ hg add bar $ remove bar - not removing bar: file has been marked for add (use -f to force removal) + not removing bar: file has been marked for add (use forget to undo) exit code: 1 A bar ./bar