# HG changeset patch # User Boris Feld # Date 1543187291 -3600 # Node ID 8947f49daaa8662852e66afb349f3346f817cab1 # Parent 32a23c3f56d4f4be9baac4dd00cbb9394072bf4e 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. diff -r 32a23c3f56d4 -r 8947f49daaa8 mercurial/revlog.py --- a/mercurial/revlog.py Mon Nov 26 15:53:34 2018 -0500 +++ b/mercurial/revlog.py Mon Nov 26 00:08:11 2018 +0100 @@ -768,7 +768,7 @@ return chain, stopped def ancestors(self, revs, stoprev=0, inclusive=False): - """Generate the ancestors of 'revs' in reverse topological order. + """Generate the ancestors of 'revs' in reverse revision order. Does not generate revs lower than stoprev. See the documentation for ancestor.lazyancestors for more details."""