Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 40772:8947f49daaa8
revlog: update the docstring of `ancestors` to match reality
Code using this method expect the revision to be (reverse) sorted. As pointed by
Yuya Nishihara, the docstring should reflect that.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 26 Nov 2018 00:08:11 +0100 |
parents | e9293c5f8bb9 |
children | 64051af15596 |
comparison
equal
deleted
inserted
replaced
40771:32a23c3f56d4 | 40772:8947f49daaa8 |
---|---|
766 | 766 |
767 chain.reverse() | 767 chain.reverse() |
768 return chain, stopped | 768 return chain, stopped |
769 | 769 |
770 def ancestors(self, revs, stoprev=0, inclusive=False): | 770 def ancestors(self, revs, stoprev=0, inclusive=False): |
771 """Generate the ancestors of 'revs' in reverse topological order. | 771 """Generate the ancestors of 'revs' in reverse revision order. |
772 Does not generate revs lower than stoprev. | 772 Does not generate revs lower than stoprev. |
773 | 773 |
774 See the documentation for ancestor.lazyancestors for more details.""" | 774 See the documentation for ancestor.lazyancestors for more details.""" |
775 | 775 |
776 # first, make sure start revisions aren't filtered | 776 # first, make sure start revisions aren't filtered |