comparison mercurial/revset.py @ 22760:13e179dca666

revset: use _generatorset in _revancestors The _descgeneratorset class is going away.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 03 Oct 2014 12:53:41 -0500
parents 6a8c55d73c66
children d3068f7056cd
comparison
equal deleted inserted replaced
22759:6a8c55d73c66 22760:13e179dca666
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