[PATCH 4 of 5] revset: optimize 'or' operation of trivial revisions to a list

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri May 29 14:44:51 CDT 2015



On 05/29/2015 07:38 AM, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1431843098 -32400
> #      Sun May 17 15:11:38 2015 +0900
> # Node ID d12328ffb015412492b1ec2266cb643c1a75428f
> # Parent  a965eb455f7803702865fdac7ebfeff03f1d5a80
> revset: optimize 'or' operation of trivial revisions to a list
>
> As seen in issue4565 and issue4624, GUI wrappers and automated scripts are
> likely to generate a long query that just has numeric revisions joined by 'or'.
> One reason why is that they allows users to choose arbitrary revisions from
> a list. Because this use case isn't handled well by smartset, let's optimize
> it to a plain old list.

urg, I guess my "list as ascending" assertion is not going to fly then ☺

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list