Show More
@@ -230,17 +230,15 b' class branchcache(dict):' | |||
|
230 | 230 | getbranchinfo = cl.branchinfo |
|
231 | 231 | for r in revgen: |
|
232 | 232 | branch, closesbranch = getbranchinfo(r) |
|
233 | node = cl.node(r) | |
|
234 | newbranches.setdefault(branch, []).append(node) | |
|
233 | newbranches.setdefault(branch, []).append(r) | |
|
235 | 234 | if closesbranch: |
|
236 | self._closednodes.add(node) | |
|
235 | self._closednodes.add(cl.node(r)) | |
|
237 | 236 | # if older branchheads are reachable from new ones, they aren't |
|
238 | 237 | # really branchheads. Note checking parents is insufficient: |
|
239 | 238 | # 1 (branch a) -> 2 (branch b) -> 3 (branch a) |
|
240 |
for branch, new |
|
|
239 | for branch, newheadrevs in newbranches.iteritems(): | |
|
241 | 240 | bheads = self.setdefault(branch, []) |
|
242 | 241 | bheadrevs = [cl.rev(node) for node in bheads] |
|
243 | newheadrevs = [cl.rev(node) for node in newnodes] | |
|
244 | 242 | ctxisnew = bheadrevs and min(newheadrevs) > max(bheadrevs) |
|
245 | 243 | # Remove duplicates - nodes that are in newheadrevs and are already |
|
246 | 244 | # in bheadrevs. This can happen if you strip a node whose parent |
General Comments 0
You need to be logged in to leave comments.
Login now