doc: correct example concerning "hg purge" alias in man page "hgrc.5"
authorRainer Woitok <Rainer.Woitok@Gmail.Com>
Fri, 17 Feb 2017 11:08:36 +0100
changeset 31001 e7eca6e1372e
parent 31000 84ec2d6a2831
child 31002 a489ee9b2852
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.
mercurial/help/config.txt
--- a/mercurial/help/config.txt	Mon Feb 06 23:22:04 2017 -0500
+++ b/mercurial/help/config.txt	Fri Feb 17 11:08:36 2017 +0100
@@ -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.