Mercurial > hg
comparison mercurial/help/config.txt @ 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 | a58378983687 |
children | 535f2900d078 |
comparison
equal
deleted
inserted
replaced
28056:4f8ced23345e | 28057:1bcb4f34b9f9 |
---|---|
274 echo = !echo $@ | 274 echo = !echo $@ |
275 | 275 |
276 will let you do ``hg echo foo`` to have ``foo`` printed in your | 276 will let you do ``hg echo foo`` to have ``foo`` printed in your |
277 terminal. A better example might be:: | 277 terminal. A better example might be:: |
278 | 278 |
279 purge = !$HG status --no-status --unknown -0 | xargs -0 rm | 279 purge = !$HG status --no-status --unknown -0 re: | xargs -0 rm |
280 | 280 |
281 which will make ``hg purge`` delete all unknown files in the | 281 which will make ``hg purge`` delete all unknown files in the |
282 repository in the same manner as the purge extension. | 282 repository in the same manner as the purge extension. |
283 | 283 |
284 Positional arguments like ``$1``, ``$2``, etc. in the alias definition | 284 Positional arguments like ``$1``, ``$2``, etc. in the alias definition |