Patchwork [04,of,16] bundlerepo: drop use of `_cacheabletip`

mail settings
Submitter Pierre-Yves David
Date Jan. 2, 2013, 1:09 a.m.
Message ID <dfb763787bd5eeff1d79.1357088966@yamac.lan>
Download mbox | patch
Permalink /patch/349/
State Superseded, archived
Commit 46f624780ee8492c5670dcf285938e235ecec325
Headers show


Pierre-Yves David - Jan. 2, 2013, 1:09 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at>
# Date 1356658472 -3600
# Node ID dfb763787bd5eeff1d791e40d65460a80137985f
# Parent  de5ef8a195d3cfc307dac4d56ad52b431392a3a0
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/ b/mercurial/
--- a/mercurial/
+++ b/mercurial/
@@ -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", "")