##// END OF EJS Templates
revset: stabilize repr of baseset initialized with a set...
Pierre-Yves David -
r28785:87b89dca default
parent child Browse files
Show More
@@ -2889,7 +2889,13 b' class baseset(abstractsmartset):'
2889 d = {None: '', False: '-', True: '+'}[self._ascending]
2889 d = {None: '', False: '-', True: '+'}[self._ascending]
2890 s = _formatsetrepr(self._datarepr)
2890 s = _formatsetrepr(self._datarepr)
2891 if not s:
2891 if not s:
2892 s = repr(self._list)
2892 l = self._list
2893 # if _list has been built from a set, it might have a different
2894 # order from one python implementation to another.
2895 # We fallback to the sorted version for a stable output.
2896 if self._ascending is not None:
2897 l = self._asclist
2898 s = repr(l)
2893 return '<%s%s %s>' % (type(self).__name__, d, s)
2899 return '<%s%s %s>' % (type(self).__name__, d, s)
2894
2900
2895 class filteredset(abstractsmartset):
2901 class filteredset(abstractsmartset):
@@ -725,7 +725,7 b" Test opreand of '%' is optimized recursi"
725 ('symbol', '9')
725 ('symbol', '9')
726 ('symbol', '5')))
726 ('symbol', '5')))
727 * set:
727 * set:
728 <baseset+ [8, 9, 2, 4]>
728 <baseset+ [2, 4, 8, 9]>
729 2
729 2
730 4
730 4
731 8
731 8
General Comments 0
You need to be logged in to leave comments. Login now