mercurial/revlog.py
changeset 17008 553e8f5aba7a
parent 16885 d628bcb3a567
child 17009 0c18aed2fcca
equal deleted inserted replaced
17007:21e18c608b68 17008:553e8f5aba7a
   401                     continue
   401                     continue
   402                 if parent not in seen:
   402                 if parent not in seen:
   403                     visit.append(parent)
   403                     visit.append(parent)
   404                     seen.add(parent)
   404                     seen.add(parent)
   405                     yield parent
   405                     yield parent
       
   406 
       
   407     def incancestors(self, revs, stoprev=0):
       
   408         """Identical to ancestors() except it also generates the
       
   409         revisions, 'revs'"""
       
   410         for rev in revs:
       
   411             yield rev
       
   412         for rev in self.ancestors(revs, stoprev):
       
   413             yield rev
   406 
   414 
   407     def descendants(self, revs):
   415     def descendants(self, revs):
   408         """Generate the descendants of 'revs' in revision order.
   416         """Generate the descendants of 'revs' in revision order.
   409 
   417 
   410         Yield a sequence of revision numbers starting with a child of
   418         Yield a sequence of revision numbers starting with a child of