[patch 3/7] Add revlog.strip to truncate away revisions.

Matt Mackall mpm at selenic.com
Mon Aug 22 15:09:33 CDT 2005


On Mon, Aug 22, 2005 at 01:44:37PM -0400, Chris Mason wrote:
>  
>          if len(i) > 10000:
>              # big index, let's parse it on demand
> -            parser = lazyparser(i, self)
> -            self.index = lazyindex(parser)
> -            self.nodemap = lazymap(parser)
> +            self.parser = lazyparser(i, self)
> +            self.index = lazyindex(self.parser)
> +            self.nodemap = lazymap(self.parser)

Something odd's going on here. Formerly, we had an optimization where
once we'd read in the entire index, we could replace the lazy elements
in revlog with the full elements.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list