diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -5750,8 +5750,10 @@ def remove(ui, repo, *pats, **opts): -Af R R R R ========= == == == == - Note that remove never deletes files in Added [A] state from the - working directory, not even if option --force is specified. + .. note:: + + :hg:`remove` never deletes files in Added [A] state from the + working directory, not even if ``--force`` is specified. Returns 0 on success, 1 if any warnings encountered. """ diff --git a/tests/test-help.t b/tests/test-help.t --- a/tests/test-help.t +++ b/tests/test-help.t @@ -2437,8 +2437,11 @@ Dish up an empty repo; serve it cold. R

- Note that remove never deletes files in Added [A] state from the - working directory, not even if option --force is specified. + Note: +

+

+ "hg remove" never deletes files in Added [A] state from the + working directory, not even if "--force" is specified.

Returns 0 on success, 1 if any warnings encountered.