[PATCH 05 of 18 V2] bundlerepo: drop use of `_cacheabletip`
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Fri Jan 4 01:04:08 UTC 2013
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1356658472 -3600
# Node ID 395b8853eb752ec5e13277ce5341a65e614b0fbd
# Parent 7defb8a8e87dbfaacbcbf51c68e50f33c5a403c2
bundlerepo: drop use of `_cacheabletip`
Now that bundlerepo use a read only VFS, we do not worry about what part of the
branchmap is written back to disk. Nothing is written at all.
diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py
+++ b/mercurial/bundlerepo.py
@@ -284,15 +284,10 @@ class bundlerepository(localrepo.localre
return bundlepeer(self)
def getcwd(self):
return os.getcwd() # always outside the repo
- def _cacheabletip(self):
- # we should not cache data from the bundle on disk
- ret = super(bundlerepository, self)._cacheabletip()
- return min(self.changelog.disktiprev, ret)
-
def instance(ui, path, create):
if create:
raise util.Abort(_('cannot create new bundle repository'))
parentpath = ui.config("bundle", "mainreporoot", "")
More information about the Mercurial-devel
mailing list