comparison mercurial/revset.py @ 22714:a729b91c58df

baseset: remove ascending/descending redefinition We can rely on the abstractsmartset implementation.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 02 Oct 2014 18:35:00 -0500
parents f5f51872883d
children 557749fea14a
comparison
equal deleted inserted replaced
22713:f5f51872883d 22714:a729b91c58df
2289 """ 2289 """
2290 def __init__(self, data=()): 2290 def __init__(self, data=()):
2291 super(baseset, self).__init__(data) 2291 super(baseset, self).__init__(data)
2292 self._set = None 2292 self._set = None
2293 2293
2294 def ascending(self):
2295 """Sorts the set in ascending order (in place).
2296
2297 This is part of the mandatory API for smartset."""
2298 self.sort()
2299
2300 def descending(self):
2301 """Sorts the set in descending order (in place).
2302
2303 This is part of the mandatory API for smartset."""
2304 self.sort(reverse=True)
2305
2306 def min(self): 2294 def min(self):
2307 return min(self) 2295 return min(self)
2308 2296
2309 def max(self): 2297 def max(self):
2310 return max(self) 2298 return max(self)