[PATCH RFC] strip: add -C as alternative to --no-backup

David Soria Parra dsp at experimentalworks.net
Wed Feb 24 11:52:42 EST 2016


O Wed, Feb 24, 2016 at 09:04:38AM +0100, David Demelier wrote:
> # HG changeset patch
> # User David Demelier <demelier.david at gmail.com>
> # Date 1456300657 -3600
> #      Wed Feb 24 08:57:37 2016 +0100
> # Node ID 0d235ba100ff229bdd012d15a6141599fae14835
> # Parent  91a827e760df9d9b3d86692c5aa195a3d6ba2208
> strip: add -C as alternative to --no-backup
> 
> Various commands have -C as synonym of "clean" or "no-backup", add this to
> strip.

I think specificing to not have a backup of your commits (something you explicitly wanted
to store in Mercurial) should be very explicit. It's slightly different from clean
as it existed in histroy once. Not making a backup should be very deliberate and adding
a short option to something hopefully barely used seems dangerous to be accidentally mistyped.

Also the short option hides the fact that you are throwing away work without any chances of
recovery. The naming "no-backup" is pretty explicit.


More information about the Mercurial-devel mailing list