# HG changeset patch # User Matt Mackall # Date 1316213638 18000 # Node ID c84b3f42d5ae9c5fe8d8c86f72e1129c6e8decd8 # Parent d1bbabf7d35dce76ecfa489b11c772d46cd731d1 remove: suggest forget to undo adds diff -r d1bbabf7d35d -r c84b3f42d5ae mercurial/commands.py --- a/mercurial/commands.py Fri Sep 16 17:41:36 2011 -0500 +++ b/mercurial/commands.py Fri Sep 16 17:53:58 2011 -0500 @@ -4145,8 +4145,8 @@ ' 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 -r d1bbabf7d35d -r c84b3f42d5ae tests/test-remove.t --- a/tests/test-remove.t Fri Sep 16 17:41:36 2011 -0500 +++ b/tests/test-remove.t Fri Sep 16 17:53:58 2011 -0500 @@ -29,7 +29,7 @@ $ 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