mercurial/revset.py
changeset 22808 228b0aafb1ce
parent 22805 e74245b79901
child 22809 88dad916c008
equal deleted inserted replaced
22807:cd43195ef876 22808:228b0aafb1ce
  2260             for r in self.fastdesc():
  2260             for r in self.fastdesc():
  2261                 return r
  2261                 return r
  2262             raise ValueError('arg is an empty sequence')
  2262             raise ValueError('arg is an empty sequence')
  2263         return max(self)
  2263         return max(self)
  2264 
  2264 
       
  2265     def first(self):
       
  2266         """return the first element in the set (user iteration perspective)
       
  2267 
       
  2268         Return None if the set is empty"""
       
  2269         raise NotImplementedError()
       
  2270 
       
  2271     def last(self):
       
  2272         """return the last element in the set (user iteration perspective)
       
  2273 
       
  2274         Return None if the set is empty"""
       
  2275         raise NotImplementedError()
       
  2276 
  2265     def reverse(self):
  2277     def reverse(self):
  2266         """reverse the expected iteration order"""
  2278         """reverse the expected iteration order"""
  2267         raise NotImplementedError()
  2279         raise NotImplementedError()
  2268 
  2280 
  2269     def sort(self, reverse=True):
  2281     def sort(self, reverse=True):