[PATCH 3 of 3] revset: simplify orderedlazyset creation in spanset method

Durham Goode durham at fb.com
Thu Sep 18 14:32:40 CDT 2014


On 9/18/14, 11:26 AM, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at fb.com>
> # Date 1410936454 25200
> #      Tue Sep 16 23:47:34 2014 -0700
> # Node ID d26e9a84e752ca0eaa2533d9a3fd3ab614e17b38
> # Parent  862bc6d9cdea929b80bf3635f8b66d7b39ebd6ad
> revset: simplify orderedlazyset creation in spanset method
>
> We can simply use the `self.isascending` value instead of more complex if/else
> clause. This get the code simpler.
>
> Benchmarks show no performances harmed in the process.
>
Queued this series to the clowncopter repo.  Verified there were no 
performance changes in my repo, too.


More information about the Mercurial-devel mailing list