[PATCH 2 of 3] graft: warn when -r is combined with revisions as positional arguments

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sun Jan 17 19:39:17 CST 2016



On 01/17/2016 10:33 AM, Mads Kiilerich wrote:
> # HG changeset patch
> # User Mads Kiilerich <madski at unity3d.com>
> # Date 1453055582 -3600
> #      Sun Jan 17 19:33:02 2016 +0100
> # Node ID 0b62abed95818a2e6b3dbdbaa9bf85f1ec5b7194
> # Parent  1fca1cf4ecf3092cbb6ecd5f3357aee4c244b872
> graft: warn when -r is combined with revisions as positional arguments
>
> The behaviour in this case is undefined. Instead of silently doing something
> "random" and surprising, at least issue a warning.
>
> (This should perhaps be considered a "deprecation" and turned into an error in
> a future release.)

I've taken patch 1 and 2 as obvious improvement. I'm not directly 
convinced by patch 3 and will have make a second path on them.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list