[PATCH STABLE] log: fix log revset instability

Durham Goode durham at fb.com
Mon Dec 8 18:09:20 CST 2014


On 12/8/14 4:06 PM, Durham Goode wrote:
> # HG changeset patch
> # User Durham Goode <durham at fb.com>
> # Date 1418082114 28800
> #      Mon Dec 08 15:41:54 2014 -0800
> # Node ID d5dbb3d633dd9299e4344e44a155e420c8b43aa7
> # Parent  098a8c4c2627e08b60cc8a877d47c1507ddb6f0d
> log: fix log revset instability
>
> The log/graphlog revset was not producing stable results since it was
> iterating over a dict. Now we sort before iterating to guarantee a fixed order.
>
> This fixes some potential flakiness in the tests.
>
This patch adjusts some tests added by my 'log: fix log -f slow path to 
actually follow history' patch which was queued by Matt, so it might not 
apply correctly for other people.


More information about the Mercurial-devel mailing list