Show More
@@ -1628,13 +1628,11 b' class localrepository(object):' | |||||
1628 | if branch not in branches: |
|
1628 | if branch not in branches: | |
1629 | return [] |
|
1629 | return [] | |
1630 | # the cache returns heads ordered lowest to highest |
|
1630 | # the cache returns heads ordered lowest to highest | |
1631 |
bheads = list(reversed(branches |
|
1631 | bheads = list(reversed(branches.branchheads(branch, closed=closed))) | |
1632 | if start is not None: |
|
1632 | if start is not None: | |
1633 | # filter out the heads that cannot be reached from startrev |
|
1633 | # filter out the heads that cannot be reached from startrev | |
1634 | fbheads = set(self.changelog.nodesbetween([start], bheads)[2]) |
|
1634 | fbheads = set(self.changelog.nodesbetween([start], bheads)[2]) | |
1635 | bheads = [h for h in bheads if h in fbheads] |
|
1635 | bheads = [h for h in bheads if h in fbheads] | |
1636 | if not closed: |
|
|||
1637 | bheads = [h for h in bheads if not self[h].closesbranch()] |
|
|||
1638 | return bheads |
|
1636 | return bheads | |
1639 |
|
1637 | |||
1640 | def branches(self, nodes): |
|
1638 | def branches(self, nodes): |
General Comments 0
You need to be logged in to leave comments.
Login now