bundlerepo: drop use of `_cacheabletip`
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 28 Dec 2012 02:34:32 +0100
changeset 18216 46f624780ee8
parent 18215 5e851ca54189
child 18217 46cc3b74e1c5
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.
mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py	Fri Dec 28 02:32:47 2012 +0100
+++ b/mercurial/bundlerepo.py	Fri Dec 28 02:34:32 2012 +0100
@@ -286,11 +286,6 @@
     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: