Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 23328:3a7d9c0c57a5
ancestor.lazyancestors: take parentrevs function rather than changelog
Principle of least privilege, and it also brings this in line with
missingancestors.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Fri, 14 Nov 2014 14:36:25 -0800 |
parents | f7a42f8e82bd |
children | 3a8a763f4197 |
comparison
equal
deleted
inserted
replaced
23327:bd296bb4b5c8 | 23328:3a7d9c0c57a5 |
---|---|
405 """Generate the ancestors of 'revs' in reverse topological order. | 405 """Generate the ancestors of 'revs' in reverse topological order. |
406 Does not generate revs lower than stoprev. | 406 Does not generate revs lower than stoprev. |
407 | 407 |
408 See the documentation for ancestor.lazyancestors for more details.""" | 408 See the documentation for ancestor.lazyancestors for more details.""" |
409 | 409 |
410 return ancestor.lazyancestors(self, revs, stoprev=stoprev, | 410 return ancestor.lazyancestors(self.parentrevs, revs, stoprev=stoprev, |
411 inclusive=inclusive) | 411 inclusive=inclusive) |
412 | 412 |
413 def descendants(self, revs): | 413 def descendants(self, revs): |
414 """Generate the descendants of 'revs' in revision order. | 414 """Generate the descendants of 'revs' in revision order. |
415 | 415 |