Show More
@@ -179,6 +179,12 b' class branchcache(dict):' | |||
|
179 | 179 | def branchtip(self, branch): |
|
180 | 180 | return self._branchtip(self[branch])[0] |
|
181 | 181 | |
|
182 | def branchheads(self, branch, closed=False): | |
|
183 | heads = self[branch] | |
|
184 | if not closed: | |
|
185 | heads = [h for h in heads if h not in self._closednodes] | |
|
186 | return heads | |
|
187 | ||
|
182 | 188 | def copy(self): |
|
183 | 189 | """return an deep copy of the branchcache object""" |
|
184 | 190 | return branchcache(self, self.tipnode, self.tiprev, self.filteredhash, |
General Comments 0
You need to be logged in to leave comments.
Login now