mercurial/smartset.py
changeset 32148 2cfdf5241096
parent 31476 413b44003462
child 32817 e962c70c0aad
equal deleted inserted replaced
32147:a77e61b45384 32148:2cfdf5241096
   243         return asclist
   243         return asclist
   244 
   244 
   245     @util.propertycache
   245     @util.propertycache
   246     def _list(self):
   246     def _list(self):
   247         # _list is only lazily constructed if we have _set
   247         # _list is only lazily constructed if we have _set
   248         assert '_set' in self.__dict__
   248         assert r'_set' in self.__dict__
   249         return list(self._set)
   249         return list(self._set)
   250 
   250 
   251     def __iter__(self):
   251     def __iter__(self):
   252         if self._ascending is None:
   252         if self._ascending is None:
   253             return iter(self._list)
   253             return iter(self._list)