comparison mercurial/revset.py @ 22791:a074421fa4e1

addset: use the ascending argument in _iterordered Fix a bug where fastasc and fastdesc were iterator in the same order as self._ascending.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 09 Oct 2014 05:27:23 -0700
parents d3068f7056cd
children bec4365a0707
comparison
equal deleted inserted replaced
22790:c64f9e0beead 22791:a074421fa4e1
2551 2551
2552 val1 = None 2552 val1 = None
2553 val2 = None 2553 val2 = None
2554 2554
2555 choice = max 2555 choice = max
2556 if self._ascending: 2556 if ascending:
2557 choice = min 2557 choice = min
2558 try: 2558 try:
2559 # Consume both iterators in an ordered way until one is 2559 # Consume both iterators in an ordered way until one is
2560 # empty 2560 # empty
2561 while True: 2561 while True: