changeset 28902:eb017d52899d

remove: fix --force option help description (issue5177) Before this commit --force option help description stated that file was removed and deleted even if file was added or modified which is not true. Force option removes added file only from dirstate, it doesn't delete it from the filesystem.
author liscju <piotr.listkiewicz@gmail.com>
date Wed, 13 Apr 2016 09:56:51 +0200
parents a368da441b32
children e1dd0de26557
files mercurial/commands.py tests/test-help.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Tue Apr 05 17:39:59 2016 +0100
+++ b/mercurial/commands.py	Wed Apr 13 09:56:51 2016 +0200
@@ -5968,7 +5968,7 @@
 @command('^remove|rm',
     [('A', 'after', None, _('record delete for missing files')),
     ('f', 'force', None,
-     _('remove (and delete) file even if added or modified')),
+     _('forget added files, delete modified files')),
     ] + subrepoopts + walkopts,
     _('[OPTION]... FILE...'),
     inferrepo=True)
--- a/tests/test-help.t	Tue Apr 05 17:39:59 2016 +0100
+++ b/tests/test-help.t	Wed Apr 13 09:56:51 2016 +0200
@@ -2551,7 +2551,7 @@
   <td>record delete for missing files</td></tr>
   <tr><td>-f</td>
   <td>--force</td>
-  <td>remove (and delete) file even if added or modified</td></tr>
+  <td>forget added files, delete modified files</td></tr>
   <tr><td>-S</td>
   <td>--subrepos</td>
   <td>recurse into subrepositories</td></tr>