Skip to content
Snippets Groups Projects
Commit e7eca6e1 authored by Rainer Woitok's avatar Rainer Woitok
Browse files

doc: correct example concerning "hg purge" alias in man page "hgrc.5"

The "hg purge" alias as currently described in "hgrc.5" issues a possibly
confusing error message like

   rm: missing operand
   Try 'rm --help' for more information.

if no files are to be purged at all.

This patch slightly modifies the example by adding a "-f" option to the
"rm" command.
parent 84ec2d6a
No related branches found
No related tags found
No related merge requests found
......@@ -277,7 +277,7 @@
will let you do ``hg echo foo`` to have ``foo`` printed in your
terminal. A better example might be::
purge = !$HG status --no-status --unknown -0 re: | xargs -0 rm
purge = !$HG status --no-status --unknown -0 re: | xargs -0 rm -f
which will make ``hg purge`` delete all unknown files in the
repository in the same manner as the purge extension.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment