[PATCH 08 of 18 V2] localrepo: drop `_cacheabletip` method
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Thu Jan 3 19:04:11 CST 2013
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1357259858 -3600
# Node ID f33473072cb625b64b9ded2d4eb054f42c735a6c
# Parent 4e5577b9b1c9e3582e7cf362cce5d3a7d454f821
localrepo: drop `_cacheabletip` method
It iss dead code now.
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -648,22 +648,10 @@ class localrepository(object):
for bookmark, n in self._bookmarks.iteritems():
if n == node:
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:
return self.unfiltered().branchmap()
branchmap.updatecache(self)
More information about the Mercurial-devel
mailing list