Mercurial > hg
changeset 18219:c565761dde6a
localrepo: drop `_cacheabletip` method
It iss dead code now.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 04 Jan 2013 01:37:38 +0100 |
parents | d5655e742457 |
children | 767d1c602c8b |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- 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: