Show More
@@ -378,6 +378,10 b' class branchcache(object):' | |||||
378 | # fetch current topological heads to speed up filtering |
|
378 | # fetch current topological heads to speed up filtering | |
379 | topoheads = set(cl.headrevs()) |
|
379 | topoheads = set(cl.headrevs()) | |
380 |
|
380 | |||
|
381 | # new tip revision which we found after iterating items from new | |||
|
382 | # branches | |||
|
383 | ntiprev = self.tiprev | |||
|
384 | ||||
381 | # if older branchheads are reachable from new ones, they aren't |
|
385 | # if older branchheads are reachable from new ones, they aren't | |
382 | # really branchheads. Note checking parents is insufficient: |
|
386 | # really branchheads. Note checking parents is insufficient: | |
383 | # 1 (branch a) -> 2 (branch b) -> 3 (branch a) |
|
387 | # 1 (branch a) -> 2 (branch b) -> 3 (branch a) | |
@@ -401,9 +405,12 b' class branchcache(object):' | |||||
401 | bheadrevs = sorted(bheadset) |
|
405 | bheadrevs = sorted(bheadset) | |
402 | self[branch] = [cl.node(rev) for rev in bheadrevs] |
|
406 | self[branch] = [cl.node(rev) for rev in bheadrevs] | |
403 | tiprev = bheadrevs[-1] |
|
407 | tiprev = bheadrevs[-1] | |
404 |
if tiprev > |
|
408 | if tiprev > ntiprev: | |
405 | self.tipnode = cl.node(tiprev) |
|
409 | ntiprev = tiprev | |
406 | self.tiprev = tiprev |
|
410 | ||
|
411 | if ntiprev > self.tiprev: | |||
|
412 | self.tiprev = ntiprev | |||
|
413 | self.tipnode = cl.node(ntiprev) | |||
407 |
|
414 | |||
408 | if not self.validfor(repo): |
|
415 | if not self.validfor(repo): | |
409 | # cache key are not valid anymore |
|
416 | # cache key are not valid anymore |
General Comments 0
You need to be logged in to leave comments.
Login now