[PATCH 1 of 1] revset: optimize stringset when subset == entire repo

Matt Mackall mpm at selenic.com
Fri Apr 15 12:41:56 CDT 2011


On Fri, 2011-04-15 at 20:10 +0300, Idan Kamara wrote:
> # HG changeset patch
> # User Idan Kamara <idankk86 at gmail.com>
> # Date 1302887264 -10800
> # Node ID eab8d3d2dde5e1ad8a2aa5a0eaf623ffe4a64406
> # Parent  e0e9949a54f8d2a261712ddf783a9a1777dcf459
> revset: optimize stringset when subset == entire repo
> 
> if range(len(repo)) is passed to stringset and x is a valid rev (checked before) then
> x is guaranteed to be in subset, we can check for that by comparing the lengths of the sets

Queued, after wrapping to 80 columns. Thanks!

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list