hgpurge: a cvspurge for mercurial

Thomas Arendsen Hein thomas at intevation.de
Fri Aug 26 13:01:08 CDT 2005

* Matt Mackall <mpm at selenic.com> [20050826 19:53]:
> On Thu, Aug 25, 2005 at 10:32:28PM +0200, Emanuele Aina wrote:
> > It's function is to clean the working copy from every file not under the
> > control of the SCM.
> You might also be able to do this with:
>  hg status -u | xargs rm 

Better use:

$ hg status -u | while read stat file; do rm "$file"; done

So you don't delete any single-letter file and cope with files
containing spaces.


Email: thomas at intevation.de

More information about the Mercurial mailing list