comparison mercurial/localrepo.py @ 18119:5264464b5f68

branchmap: _updatebranchmap does not need to be filtered The `_updatebranchmap` method on repo does not need to be filtered as all callers are already handling filtering themself. The fact it is filtered may had even lead to buggy behaviors, but by chances the method make very sparse use of the repo object.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Wed, 19 Dec 2012 14:47:38 +0100
parents e70ff1e599f4
children 88990d3e3d75
comparison
equal deleted inserted replaced
18118:e70ff1e599f4 18119:5264464b5f68
728 bt = {} 728 bt = {}
729 for bn, heads in self.branchmap().iteritems(): 729 for bn, heads in self.branchmap().iteritems():
730 bt[bn] = self._branchtip(heads) 730 bt[bn] = self._branchtip(heads)
731 return bt 731 return bt
732 732
733 @unfilteredmethod # Until we get a smarter cache management
734 def _updatebranchcache(self, partial, ctxgen): 733 def _updatebranchcache(self, partial, ctxgen):
735 """Given a branchhead cache, partial, that may have extra nodes or be 734 """Given a branchhead cache, partial, that may have extra nodes or be
736 missing heads, and a generator of nodes that are at least a superset of 735 missing heads, and a generator of nodes that are at least a superset of
737 heads missing, this function updates partial to be correct. 736 heads missing, this function updates partial to be correct.
738 """ 737 """