# HG changeset patch # User Valentin Gatien-Baron # Date 1560181243 14400 # Node ID 3e42fc243741a805e13a0b92ad468e6db75ba1bb # Parent f33d3ee110da12a42ea160f69505433aee6648f2 dagop: fix documentation of reachableroots The previous revset couldn't be correct as it is symmetric in and , but reachableroots has no such symmetry. It makes a difference with for instance reachableroots(2, 3) where 2 and 3 are both children of 1. Differential Revision: https://phab.mercurial-scm.org/D6505 diff -r f33d3ee110da -r 3e42fc243741 mercurial/dagop.py --- a/mercurial/dagop.py Tue Jun 11 19:52:16 2019 +0100 +++ b/mercurial/dagop.py Mon Jun 10 11:40:43 2019 -0400 @@ -260,9 +260,7 @@ break def _reachablerootspure(repo, minroot, roots, heads, includepath): - """return (heads(:: and ::)) - - If includepath is True, return (::).""" + """See reachableroots""" if not roots: return [] parentrevs = repo.changelog.parentrevs @@ -298,7 +296,7 @@ return reachable def reachableroots(repo, roots, heads, includepath=False): - """return (heads(:: and ::)) + """return (heads(:: and ::)) If includepath is True, return (::).""" if not roots: