equal
deleted
inserted
replaced
44 yield current |
44 yield current |
45 for parent in cl.parentrevs(current)[:cut]: |
45 for parent in cl.parentrevs(current)[:cut]: |
46 if parent != node.nullrev: |
46 if parent != node.nullrev: |
47 heapq.heappush(h, -parent) |
47 heapq.heappush(h, -parent) |
48 |
48 |
49 return _descgeneratorset(iterate()) |
49 return _generatorset(iterate(), iterasc=False) |
50 |
50 |
51 def _revdescendants(repo, revs, followfirst): |
51 def _revdescendants(repo, revs, followfirst): |
52 """Like revlog.descendants() but supports followfirst.""" |
52 """Like revlog.descendants() but supports followfirst.""" |
53 cut = followfirst and 1 or None |
53 cut = followfirst and 1 or None |
54 |
54 |