[PATCH] purge: don't delete ignored files if --all is not specified [Was: hg purge purges files in .ignore]

Emanuele Aina faina.mail at tiscali.it
Wed Jun 6 20:58:21 UTC 2007


Marcin Kasperski suggerì:

>> files autogenerated by the build system can be purged by the
>> clean systems clean command, no need for mercurial.
> 
> I think both use cases can be satisfied.
> 
> 	hg purge
> 
> should purge only the files displayed by hg status, but there can 
> be sth like
> 
>        hg purge --all
> 
> which would remove also ignored files.

The original behavior was taken from cvspurge which deleted files 
ignored by CVS. But better safe than sorry, so here is the patch with 
the --all option.

I'm currently thinking on how to rename the --abort-on-error options to 
free the -a short option for --all, as it is a lot more common.

What do you think about making --abort-on-error the default and add a 
--continue-on-error (-c) option?

-- 
Buongiorno.
Complimenti per l'ottima scelta.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hg-purge-keep-ignored.patch
Type: text/x-patch
Size: 3255 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20070606/700e65b2/attachment-0003.bin>


More information about the Mercurial mailing list