[PATCH] revert: warn of usage of --all and -i together

Laurent Charignon lcharignon at fb.com
Thu Apr 16 17:07:59 CDT 2015


I thought it was useful so that the next time they type the command they
don¹t have to add -‹all and save time

On 4/16/15, 2:44 PM, "Durham Goode" <durham at fb.com> wrote:

>On 4/16/15 5:34 PM, Laurent Charignon wrote:
>> # HG changeset patch
>> # User Laurent Charignon <lcharignon at fb.com>
>> # Date 1429210221 25200
>> #      Thu Apr 16 11:50:21 2015 -0700
>> # Node ID ada0cc881c7c9c13b09f00ffaa4a05968d67a43c
>> # Parent  c560d8c687916cb70a6d54c2c9ddcb5c9e457be2
>> revert: warn of usage of --all and -i together
>>
>> When using hg revert -i allows to select interactively the changes, if
>>--all is
>> used in combination with -i, it is redundant and we should warn the
>>user about
>> it.
>>
>> Fix the test accordingly to:
>> - not use --all when it is not needed
>> - check that the warning is shown when using --all and -i together
>>
>If the result is the same either way, why bother warning the user about
>it?
>_______________________________________________
>Mercurial-devel mailing list
>Mercurial-devel at selenic.com
>http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list