# HG changeset patch # User Sune Foldager # Date 2011-12-01 13:17:17 # Node ID bc0778f5619ab53f150c63a02605d26346f34a4f # Parent a585d78e7b2f6c3336d757a69c2379f4c26c26b8 bundlerepo: don't write branch cache to disk Calling branchmap() or similar on a bundlerepo would write the bundle-augmented branch cache to disk, requiring a subsequent expensive rebuild when the repo is used without the bundle. diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py +++ b/mercurial/bundlerepo.py @@ -266,6 +266,10 @@ class bundlerepository(localrepo.localre def getcwd(self): return os.getcwd() # always outside the repo + def _writebranchcache(self, branches, tip, tiprev): + # don't overwrite the disk cache with bundle-augmented data + pass + def instance(ui, path, create): if create: raise util.Abort(_('cannot create new bundle repository'))