changeset 28057:1bcb4f34b9f9 stable

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.
author Rainer Woitok <Rainer.Woitok@Gmail.Com>
date Sat, 20 Feb 2016 17:32:26 +0100
parents 4f8ced23345e
children 535f2900d078
files mercurial/help/config.txt
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.