Mercurial > public > mercurial-scm > hg
comparison mercurial/bundlerepo.py @ 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 | 106f89299da6 |
children | 4b7aa1c899dc |
comparison
equal
deleted
inserted
replaced
15595:a585d78e7b2f | 15597:bc0778f5619a |
---|---|
264 return False | 264 return False |
265 | 265 |
266 def getcwd(self): | 266 def getcwd(self): |
267 return os.getcwd() # always outside the repo | 267 return os.getcwd() # always outside the repo |
268 | 268 |
269 def _writebranchcache(self, branches, tip, tiprev): | |
270 # don't overwrite the disk cache with bundle-augmented data | |
271 pass | |
272 | |
269 def instance(ui, path, create): | 273 def instance(ui, path, create): |
270 if create: | 274 if create: |
271 raise util.Abort(_('cannot create new bundle repository')) | 275 raise util.Abort(_('cannot create new bundle repository')) |
272 parentpath = ui.config("bundle", "mainreporoot", "") | 276 parentpath = ui.config("bundle", "mainreporoot", "") |
273 if parentpath: | 277 if parentpath: |