[PATCH] purge: add --ignored-only/-i option to delete only ignored files

Pierre-Yves David pierre-yves.david at logilab.fr
Thu Mar 22 03:36:42 CDT 2012


On Tue, Mar 20, 2012 at 09:50:51PM -0400, Greg Ward wrote:
> # HG changeset patch
> # User Greg Ward <greg at gerg.ca>
> # Date 1332294424 14400
> # Node ID bfde5bbbc3bb0d804a70cad737f0bf95086a448c
> # Parent  12e3f93b1cbc7c930e941f0adfe632c8ad70b73d
> purge: add --ignored-only/-i option to delete only ignored files
> 
> This is handy when you trust .hgignore to specify all of your build
> products, but you do not trust yourself to always remember to "hg add"
> new files. This treats unknown files as valuable, since they might
> become added files soon.

-i is a terrible short name as it sound like "--interactive" an option that
some people would expect to ask confirmation before removing files (as `rm -i`
do)

I met such user yesterday.


-- 
Pierre-Yves David

http://www.logilab.fr/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120322/8118bc41/attachment.pgp>


More information about the Mercurial-devel mailing list