[PATCH] rebase: invalidate caches before stripping (issue1951)

Stefano Tortarolo stefano.tortarolo at gmail.com
Thu Feb 11 11:01:48 CST 2010


2010/2/11 Dirkjan Ochtman <dirkjan at ochtman.nl>

> On Thu, Feb 11, 2010 at 11:51, Stefano Tortarolo
> <stefano.tortarolo at gmail.com> wrote:
> > Well, the problem is that strip uses an old branchcache and fails in
> finding
> > the node.
> > Hence, strip fails -> rebase fails.
> > That's exactly what happens in issue1951.
>
> Well, I think it'd be better to update the cache instead of removing
> it. Removing it will mean the next thing that has to instantiate it
> will be *very* slow, so it would be nice if we could prevent that.
>
> Cheers,
>
> Dirkjan
>

Yes, it would be better if we could update just the cache, but should rebase
modify branchcache "manually"?
It doesn't seem to exist a suitable function to ask for a branchcache
update.

However, I've written a draft and it works. There are several corner cases
though.
I'll post something asap.

Cheers,
Stefano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100211/bc7ad7cc/attachment.htm>


More information about the Mercurial-devel mailing list