Tag caching, at last

Matt Mackall mpm at selenic.com
Wed Jul 15 14:43:54 CDT 2009


On Wed, 2009-07-15 at 09:14 -0400, Greg Ward wrote:
> [quoth Matt]
> > - taking your fast solution
> > - writing out cache of final tag to node mapping
> > - if NOTHING has changed on read by (tip revision/hash match), return
> > cached tag list
> 
> [my foolish reply]
> > I'll see what I can whip up!
> 
> Still working on it, but I wanted to see what you think of this
> (pasting patch into gmail, so no guarantees about formatting...this is
> just for design review):
> 
> # HG changeset patch
> # User Greg Ward <greg-hg at gerg.ca>
> # Date 1247625009 14400
> # Node ID 3dfc90efa8a74a837a50c14702a35a8ed04616ec
> # Parent  cc6f04bd7d2511b91a3e54d3235575a8892f7a6a
> localrepo: add destroyed() method for strip/rollback to use (issue548).
> 
> This is sort of like a hook: should we make it a hook instead?

Nah. We add hooks lazily, and I don't want people to get any clever
notions about using such a hook. But this looks fine.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list