Show More
@@ -509,15 +509,17 b' class localrepository(repo.repository):' | |||
|
509 | 509 | bheads.extend(newnodes) |
|
510 | 510 | if len(bheads) <= 1: |
|
511 | 511 | continue |
|
512 | bheads = sorted(bheads, key=lambda x: self[x].rev()) | |
|
512 | 513 | # starting from tip means fewer passes over reachable |
|
513 | 514 | while newnodes: |
|
514 | 515 | latest = newnodes.pop() |
|
515 | 516 | if latest not in bheads: |
|
516 | 517 | continue |
|
517 |
minbhrev = self[ |
|
|
518 | minbhrev = self[bheads[0]].node() | |
|
518 | 519 | reachable = self.changelog.reachable(latest, minbhrev) |
|
519 | 520 | reachable.remove(latest) |
|
520 | bheads = [b for b in bheads if b not in reachable] | |
|
521 | if reachable: | |
|
522 | bheads = [b for b in bheads if b not in reachable] | |
|
521 | 523 | partial[branch] = bheads |
|
522 | 524 | |
|
523 | 525 | def lookup(self, key): |
General Comments 0
You need to be logged in to leave comments.
Login now