--- a/mercurial/ancestor.py Wed Sep 12 11:24:51 2018 -0700
+++ b/mercurial/ancestor.py Mon Sep 10 20:57:18 2018 +0900
@@ -348,9 +348,8 @@
If inclusive is True, the source revisions are also yielded. The
reverse revision number order is still enforced."""
- for rev in _lazyancestorsiter(self._parentrevs, self._initrevs,
- self._stoprev, self._inclusive):
- yield rev
+ return _lazyancestorsiter(self._parentrevs, self._initrevs,
+ self._stoprev, self._inclusive)
def __contains__(self, target):
"""Test whether target is an ancestor of self._initrevs."""