hg clean is pure evil

Dennis Brakhane brakhane at googlemail.com
Fri Nov 5 13:53:22 CDT 2010


(forgot to cc the list)

On Fri, Nov 5, 2010 at 7:51 PM, Dennis Brakhane <brakhane at googlemail.com> wrote:
> On Fri, Nov 5, 2010 at 4:38 PM, Bryan O'Sullivan <bos at serpentine.com> wrote:
>> I'd be inclined to side with Aardwolf on that. Yes, it is dangerous
>> because of its similarity to the "svn cleanup" command. "purge" on the
>> other hand is fine, as it sounds safer.
>
> Not only that, it's also dangerous if you happen to have a make/ant
> target called
> "clean" and confuse "ant" and "hg". I like how git handles this. "git
> clean" does nothing, you have to supply
> "-f" to let it actually do anything. Of course, in git "clean" is
> always activated and doesn't require
> you to explicitely enable an extension.
>
> But even when you intend to use a command like "hg clean", I find it
> useful to require
> a force setting, for the reasons stated above.
>


More information about the Mercurial mailing list