mercurial/revset.py
changeset 26001 748053b4a66b
parent 25998 a7527c5769bb
child 26002 fd92bfbbe02d
--- a/mercurial/revset.py	Tue Aug 11 13:19:42 2015 +0800
+++ b/mercurial/revset.py	Fri Aug 07 02:13:42 2015 -0700
@@ -87,7 +87,7 @@
 
     return generatorset(iterate(), iterasc=True)
 
-def _revsbetween(repo, roots, heads):
+def revsbetween(repo, roots, heads):
     """Return all paths between roots and heads, inclusive of both endpoint
     sets."""
     if not roots:
@@ -406,7 +406,7 @@
 
 def dagrange(repo, subset, x, y):
     r = fullreposet(repo)
-    xs = _revsbetween(repo, getset(repo, r, x), getset(repo, r, y))
+    xs = revsbetween(repo, getset(repo, r, x), getset(repo, r, y))
     # XXX We should combine with subset first: 'subset & baseset(...)'. This is
     # necessary to ensure we preserve the order in subset.
     return xs & subset