Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 18083:717c692fa449
revlog: remove incancestors since it is no longer used
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Mon, 17 Dec 2012 15:08:37 -0800 |
parents | f88c60e740a1 |
children | 9abc55ef85b5 |
comparison
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 |