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

David Demelier demelier.david at gmail.com
Wed Feb 24 11:55:09 EST 2016


Le 24/02/2016 17:52, David Soria Parra a écrit :
> 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.

I understand your point of view but just using strip is dangerous. It's 
the same case for hg revert, once you've reverted the file there is no 
way to recover it.

I would like to see this option for more consistency.

-- 
David Demelier



More information about the Mercurial-devel mailing list