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