comparison mercurial/localrepo.py @ 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 b9026ba002f6
children 082d6929fd4d
comparison
equal deleted inserted replaced
18218:d5655e742457 18219:c565761dde6a
647 marks = [] 647 marks = []
648 for bookmark, n in self._bookmarks.iteritems(): 648 for bookmark, n in self._bookmarks.iteritems():
649 if n == node: 649 if n == node:
650 marks.append(bookmark) 650 marks.append(bookmark)
651 return sorted(marks) 651 return sorted(marks)
652
653 def _cacheabletip(self):
654 """tip-most revision stable enought to used in persistent cache
655
656 This function is overwritten by MQ to ensure we do not write cache for
657 a part of the history that will likely change.
658
659 Efficient handling of filtered revision in branchcache should offer a
660 better alternative. But we are using this approach until it is ready.
661 """
662 cl = self.changelog
663 return cl.rev(cl.tip())
664 652
665 def branchmap(self): 653 def branchmap(self):
666 '''returns a dictionary {branch: [branchheads]}''' 654 '''returns a dictionary {branch: [branchheads]}'''
667 if self.filtername and not self.changelog.filteredrevs: 655 if self.filtername and not self.changelog.filteredrevs:
668 return self.unfiltered().branchmap() 656 return self.unfiltered().branchmap()