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

Durham Goode durham at fb.com
Thu Apr 16 16:44:20 CDT 2015


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?


More information about the Mercurial-devel mailing list