localrepo: drop `_cacheabletip` method
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 04 Jan 2013 01:37:38 +0100
changeset 18219 c565761dde6a
parent 18218 d5655e742457
child 18220 767d1c602c8b
localrepo: drop `_cacheabletip` method It iss dead code now.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Jan 04 01:25:55 2013 +0100
+++ b/mercurial/localrepo.py	Fri Jan 04 01:37:38 2013 +0100
@@ -650,18 +650,6 @@
                 marks.append(bookmark)
         return sorted(marks)
 
-    def _cacheabletip(self):
-        """tip-most revision stable enought to used in persistent cache
-
-        This function is overwritten by MQ to ensure we do not write cache for
-        a part of the history that will likely change.
-
-        Efficient handling of filtered revision in branchcache should offer a
-        better alternative. But we are using this approach until it is ready.
-        """
-        cl = self.changelog
-        return cl.rev(cl.tip())
-
     def branchmap(self):
         '''returns a dictionary {branch: [branchheads]}'''
         if self.filtername and not self.changelog.filteredrevs: