Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/revlog.py Sun Nov 16 00:24:23 2014 -0500 +++ b/mercurial/revlog.py Fri Nov 14 14:36:25 2014 -0800 @@ -407,7 +407,7 @@ See the documentation for ancestor.lazyancestors for more details.""" - return ancestor.lazyancestors(self, revs, stoprev=stoprev, + return ancestor.lazyancestors(self.parentrevs, revs, stoprev=stoprev, inclusive=inclusive) def descendants(self, revs):