revset: mark reachablerootspure as private
authorYuya Nishihara <yuya@tcha.org>
Fri, 28 Aug 2015 11:15:31 +0900
changeset 26095 6eed95ca4c03
parent 26094 df41c7be16d6
child 26096 b237a68bfea3
revset: mark reachablerootspure as private
mercurial/revset.py
--- a/mercurial/revset.py	Fri Aug 28 11:14:24 2015 +0900
+++ b/mercurial/revset.py	Fri Aug 28 11:15:31 2015 +0900
@@ -87,7 +87,7 @@
 
     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>)."""
@@ -137,7 +137,7 @@
     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