doc: correct example concerning "hg purge" alias in man page "hgrc.5" stable
authorRainer Woitok <Rainer.Woitok@Gmail.Com>
Sat, 20 Feb 2016 17:32:26 +0100
branchstable
changeset 28057 1bcb4f34b9f9
parent 28056 4f8ced23345e
child 28191 535f2900d078
doc: correct example concerning "hg purge" alias in man page "hgrc.5" The "hg purge" alias as currently described in "hgrc.5" only works, if the caller's current working directory is identical to the repository's root directory. This patch slightly modifies the example by adding an empty pattern as a file argument to the "hg status" command, thus forcing this command to list the affected files relative to the current directory.
mercurial/help/config.txt
--- a/mercurial/help/config.txt	Thu Feb 18 22:32:18 2016 -0500
+++ b/mercurial/help/config.txt	Sat Feb 20 17:32:26 2016 +0100
@@ -276,7 +276,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 | xargs -0 rm
+   purge = !$HG status --no-status --unknown -0 re: | xargs -0 rm
 
 which will make ``hg purge`` delete all unknown files in the
 repository in the same manner as the purge extension.