# HG changeset patch # User Pierre-Yves David # Date 1357259858 -3600 # Node ID c565761dde6aa1a70b688cd2eebad69e9b5a16db # Parent d5655e7424572ba5e96db92c55da0645cb4dc859 localrepo: drop `_cacheabletip` method It iss dead code now. diff -r d5655e742457 -r c565761dde6a 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: