diff mercurial/revset.py @ 26682:6eed95ca4c03

revset: mark reachablerootspure as private
author Yuya Nishihara <yuya@tcha.org>
date Fri, 28 Aug 2015 11:15:31 +0900 (2015-08-28)
parents df41c7be16d6
children ab66c1dee405
line wrap: on
line diff
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -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