changeset 15597:bc0778f5619a stable

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.
author Sune Foldager <cryo@cyanite.org>
date Thu, 01 Dec 2011 14:17:17 +0100
parents a585d78e7b2f
children a77ce45584ef
files mercurial/bundlerepo.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Wed Nov 30 22:43:24 2011 -0600
+++ b/mercurial/bundlerepo.py	Thu Dec 01 14:17:17 2011 +0100
@@ -266,6 +266,10 @@
     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'))