Example of "purge" alias in "man/man5/hgrc.5"

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri Feb 12 11:40:43 UTC 2016



On 02/12/2016 11:33 AM, Dr Rainer Woitok wrote:
> Greetings,
>
> in "man/man5/hgrc.5" you find an example how to define a "purge" alias:
>
>     purge = !$HG status --no-status --unknown -0 | xargs -0 rm
>
>     which will make hg purge delete all unknown files in the repository in
>     the same manner as the purge extension.
>
> I'm not sure whether or not the  "purge" extension has the same problem,
> but the alias defined above only works when your current working direct-
> ory is the repository's  root directory.   If you are somewhere deep in-
> side your repository, the alias definition should instead be:
>
>     purge = !$HG status -nu0 | ( cd `$HG root` ; xargs -0 rm )
>
> Perhaps someone who cares could update the documentation accordingly.

Good catch, would you walk the final stage and send use a patch?

https://www.mercurial-scm.org/wiki/ContributingChanges

Cheers,

-- 
Pierre-Yves David



More information about the Mercurial mailing list