##// END OF EJS Templates
branchmap: introduce iterbranches() method
Brodie Rao -
r20190:d5d25e54 default
parent child Browse files
Show More
@@ -185,6 +185,10 b' class branchcache(dict):'
185 heads = [h for h in heads if h not in self._closednodes]
185 heads = [h for h in heads if h not in self._closednodes]
186 return heads
186 return heads
187
187
188 def iterbranches(self):
189 for bn, heads in self.iteritems():
190 yield (bn, heads) + self._branchtip(heads)
191
188 def copy(self):
192 def copy(self):
189 """return an deep copy of the branchcache object"""
193 """return an deep copy of the branchcache object"""
190 return branchcache(self, self.tipnode, self.tiprev, self.filteredhash,
194 return branchcache(self, self.tipnode, self.tiprev, self.filteredhash,
General Comments 0
You need to be logged in to leave comments. Login now