Show More
@@ -713,19 +713,19 b' class revlog(object):' | |||
|
713 | 713 | """ |
|
714 | 714 | if start is None: |
|
715 | 715 | start = nullid |
|
716 | reachable = {start: 1} | |
|
717 | heads = {start: 1} | |
|
718 | 716 | startrev = self.rev(start) |
|
717 | reachable = {startrev: 1} | |
|
718 | heads = {startrev: 1} | |
|
719 | 719 | |
|
720 | parentrevs = self.parentrevs | |
|
720 | 721 | for r in xrange(startrev + 1, self.count()): |
|
721 | n = self.node(r) | |
|
722 |
f |
|
|
723 |
|
|
|
724 |
|
|
|
725 |
|
|
|
726 |
|
|
|
727 | del heads[pn] | |
|
728 | return heads.keys() | |
|
722 | for p in parentrevs(r): | |
|
723 | if p in reachable: | |
|
724 | reachable[r] = 1 | |
|
725 | heads[r] = 1 | |
|
726 | if p in heads: | |
|
727 | del heads[p] | |
|
728 | return [self.node(r) for r in heads] | |
|
729 | 729 | |
|
730 | 730 | def children(self, node): |
|
731 | 731 | """find the children of a given node""" |
General Comments 0
You need to be logged in to leave comments.
Login now