mercurial/smartset.py
changeset 50599 921a72735482
parent 50598 80b37d26097f
child 50600 1d937e495cd0
equal deleted inserted replaced
50598:80b37d26097f 50599:921a72735482
   668         # try to use our own fast iterator if it exists
   668         # try to use our own fast iterator if it exists
   669         self._trysetasclist()
   669         self._trysetasclist()
   670         if self._ascending:
   670         if self._ascending:
   671             attr = 'fastasc'
   671             attr = 'fastasc'
   672         else:
   672         else:
   673             attr = b'fastdesc'
   673             attr = 'fastdesc'
   674         it = getattr(self, attr)
   674         it = getattr(self, attr)
   675         if it is not None:
   675         if it is not None:
   676             return it()
   676             return it()
   677         # maybe half of the component supports fast
   677         # maybe half of the component supports fast
   678         # get iterator for _r1
   678         # get iterator for _r1