##// END OF EJS Templates
_descendant: use filteredset instead of orderedlazyset...
Pierre-Yves David -
r22750:66e2b648 default
parent child Browse files
Show More
@@ -665,12 +665,12 b' def _descendants(repo, subset, x, follow'
665 # Both sets need to be ascending in order to lazily return the union
665 # Both sets need to be ascending in order to lazily return the union
666 # in the correct order.
666 # in the correct order.
667 args.ascending()
667 args.ascending()
668 result = (orderedlazyset(s, subset.__contains__, ascending=True) +
668 result = (filteredset(s, subset.__contains__, ascending=True) +
669 orderedlazyset(args, subset.__contains__, ascending=True))
669 filteredset(args, subset.__contains__, ascending=True))
670
670
671 # Wrap result in a filteredset since it's an _addset, which doesn't
671 # Wrap result in a filteredset since it's an _addset, which doesn't
672 # implement all the necessary functions to be consumed by callers.
672 # implement all the necessary functions to be consumed by callers.
673 return orderedlazyset(result, lambda r: True, ascending=True)
673 return filteredset(result, lambda r: True, ascending=True)
674
674
675 def descendants(repo, subset, x):
675 def descendants(repo, subset, x):
676 """``descendants(set)``
676 """``descendants(set)``
General Comments 0
You need to be logged in to leave comments. Login now