changeset 33084:6d767d62b25e

smartset: fix default value of abstractsmartset.sort() It's unused, but it shouldn't lie.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 25 Jun 2017 00:14:48 +0900
parents 279c072a5c49
children b04cf7a6e0f3
files mercurial/smartset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/smartset.py	Mon Jun 26 03:47:11 2017 +0900
+++ b/mercurial/smartset.py	Sun Jun 25 00:14:48 2017 +0900
@@ -117,7 +117,7 @@
         """reverse the expected iteration order"""
         raise NotImplementedError()
 
-    def sort(self, reverse=True):
+    def sort(self, reverse=False):
         """get the set to iterate in an ascending or descending order"""
         raise NotImplementedError()