Mercurial > public > mercurial-scm > hg
comparison mercurial/revset.py @ 22723:d4706faa2061
baseset: remove min/max methods
This is now handled by the base class.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 02 Oct 2014 19:02:50 -0500 |
parents | e8832cf1abf6 |
children | abdb46cf3b38 |
comparison
equal
deleted
inserted
replaced
22722:e8832cf1abf6 | 22723:d4706faa2061 |
---|---|
2305 """ | 2305 """ |
2306 def __init__(self, data=()): | 2306 def __init__(self, data=()): |
2307 super(baseset, self).__init__(data) | 2307 super(baseset, self).__init__(data) |
2308 self._set = None | 2308 self._set = None |
2309 | 2309 |
2310 def min(self): | |
2311 return min(self) | |
2312 | |
2313 def max(self): | |
2314 return max(self) | |
2315 | |
2316 def set(self): | 2310 def set(self): |
2317 """Returns a set or a smartset containing all the elements. | 2311 """Returns a set or a smartset containing all the elements. |
2318 | 2312 |
2319 The returned structure should be the fastest option for membership | 2313 The returned structure should be the fastest option for membership |
2320 testing. | 2314 testing. |