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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Feb 24 18:00:29 EST 2016



On 02/24/2016 10:47 PM, Augie Fackler wrote:
> On Wed, Feb 24, 2016 at 12:06:21AM -0800, Sean Farley wrote:
>>
>> David Demelier <demelier.david at gmail.com> writes:
>>
>>> # 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.
>>>
>>> Examples:
>>>
>>> hg revert -C
>>> hg update -C
>>
>> For what it's worth, I kinda like the direction of this short option.
>
> I'm -0 on it. Strip is a bad, destructive thing, and I don't think we
> should make it any easier to not have backups.
>
> (-0: I won't block it, but if it were just up to me I'd reject this.)

While I salute the consistency in the short option (if we were to have 
one, that would be it), I agree with Augie here. I'm not eager to make 
foot-gun easier. (so -0 too)

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list