mercurial/revlog.py
changeset 18083 717c692fa449
parent 18081 f88c60e740a1
child 18090 9abc55ef85b5
equal deleted inserted replaced
18082:40f0c0748cfc 18083:717c692fa449
   368                     continue
   368                     continue
   369                 if parent not in seen:
   369                 if parent not in seen:
   370                     visit.append(parent)
   370                     visit.append(parent)
   371                     seen.add(parent)
   371                     seen.add(parent)
   372                     yield parent
   372                     yield parent
   373 
       
   374     def incancestors(self, revs, stoprev=0):
       
   375         """Identical to ancestors() except it also generates the
       
   376         revisions, 'revs'"""
       
   377         return self.ancestors(revs, stoprev, inclusive=True)
       
   378 
   373 
   379     def descendants(self, revs):
   374     def descendants(self, revs):
   380         """Generate the descendants of 'revs' in revision order.
   375         """Generate the descendants of 'revs' in revision order.
   381 
   376 
   382         Yield a sequence of revision numbers starting with a child of
   377         Yield a sequence of revision numbers starting with a child of