From patchwork Fri Aug 28 02:51:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2,of,2] revset: mark reachablerootspure as private From: Yuya Nishihara X-Patchwork-Id: 10313 Message-Id: To: mercurial-devel@selenic.com Date: Fri, 28 Aug 2015 11:51:49 +0900 # HG changeset patch # User Yuya Nishihara # Date 1440728131 -32400 # Fri Aug 28 11:15:31 2015 +0900 # Node ID bb3dee2c8d859ae4b357b2e86a52881d5e8522f3 # Parent 054babf5b3a0f0f5a2bdaa95e0abd1469aa1f165 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 (::).""" @@ -139,7 +139,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