mercurial/ancestor.py
changeset 31476 413b44003462
parent 29216 ead25aa27a43
child 32291 bd872f64a8ba
equal deleted inserted replaced
31475:1b9b00aca8a3 31476:413b44003462
   294             next(iter(self))
   294             next(iter(self))
   295             return True
   295             return True
   296         except StopIteration:
   296         except StopIteration:
   297             return False
   297             return False
   298 
   298 
       
   299     __bool__ = __nonzero__
       
   300 
   299     def __iter__(self):
   301     def __iter__(self):
   300         """Generate the ancestors of _initrevs in reverse topological order.
   302         """Generate the ancestors of _initrevs in reverse topological order.
   301 
   303 
   302         If inclusive is False, yield a sequence of revision numbers starting
   304         If inclusive is False, yield a sequence of revision numbers starting
   303         with the parents of each revision in revs, i.e., each revision is *not*
   305         with the parents of each revision in revs, i.e., each revision is *not*