[PATCH 2 of 2] revset: mark reachablerootspure as private
Yuya Nishihara
yuya at tcha.org
Thu Aug 27 21:51:49 CDT 2015
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# 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(::<roots> and ::<heads>))
If includepath is True, return (<roots>::<heads>)."""
@@ -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
More information about the Mercurial-devel
mailing list