diff 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
line wrap: on
line diff
--- a/mercurial/revset.py	Wed Oct 08 14:03:07 2014 -0500
+++ b/mercurial/revset.py	Thu Oct 09 05:27:23 2014 -0700
@@ -2553,7 +2553,7 @@
         val2 = None
 
         choice = max
-        if self._ascending:
+        if ascending:
             choice = min
         try:
             # Consume both iterators in an ordered way until one is