[PATCH stable] revert: accept just -I/-X without paths or -a/-i (issue4592)

Durham Goode durham at fb.com
Wed Apr 22 20:47:15 CDT 2015


On 4/22/15 4:42 PM, Martin von Zweigbergk wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz at google.com>
> # Date 1429745916 25200
> #      Wed Apr 22 16:38:36 2015 -0700
> # Branch stable
> # Node ID e70dc166aab563b700e203db2892386a490033aa
> # Parent  1f9127c9239b9c39c676bb09752db1e2ca6c26f7
> revert: accept just -I/-X without paths or -a/-i (issue4592)
>
> 'hg revert -I foo' currently fails with
>
>    abort: no files or directories specified
>    (use --all to revert all files, or 'hg update 1' to update)
>
> It doesn't seem intentional that -I/-X without other paths or
> --all/--interactive should fail, and it doesn't seem that harmful to
> allow it either, so let's just do that.
>
Pushed to the clowncopter. Thanks for fixing this so quickly!


More information about the Mercurial-devel mailing list