[PATCH] bundlerepo: don't write branch cache to disk

Sune Foldager cryo at cyanite.org
Thu Dec 1 07:32:53 CST 2011


On 01-12-2011 14:19, Sune Foldager wrote:
> # HG changeset patch
> # User Sune Foldager<cryo at cyanite.org>
> # Date 1322745437 -3600
> # Branch stable
> # Node ID 239940e1075e9540ca83853fa43a23bf5c421cf6
> # Parent  e387e760b207383c961ed8accd35583791a33bb0
> bundlerepo: don't write branch cache to disk

The problem is seen in TortoiseHg, which uses branchmap to get a list of 
branch names, used for assigning colors.

Building the bundlerepo branchmap is not too slow, since it can augment 
the existing cache with the bundled changesets. Removing the bundle, 
however, will necessitate a complete rebuild which takes a long time, 
even with simple repos (such as the thg repo; more than 2 seconds on my 
fast SSD'ed machine).

I can push this to crew, but thought a minimal review would be nice :)

-Sune


More information about the Mercurial-devel mailing list