# HG changeset patch # User Yuya Nishihara # Date 2015-08-28 02:15:31 # Node ID 6eed95ca4c03a9690aa529602b14982e5660e7ce # Parent df41c7be16d69e2e4c57c35ea90a1e52fdf3b781 revset: mark reachablerootspure as private diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -87,7 +87,7 @@ def _revdescendants(repo, revs, followfi return generatorset(iterate(), iterasc=True) -def reachablerootspure(repo, minroot, roots, heads, includepath): +def _reachablerootspure(repo, minroot, roots, heads, includepath): """return (heads(:: and ::)) If includepath is True, return (::).""" @@ -137,7 +137,7 @@ def reachableroots(repo, roots, heads, i try: revs = repo.changelog.reachableroots(minroot, heads, roots, includepath) except AttributeError: - revs = reachablerootspure(repo, minroot, roots, heads, includepath) + revs = _reachablerootspure(repo, minroot, roots, heads, includepath) revs = baseset(revs) revs.sort() return revs