##// END OF EJS Templates
revset: make revsbetween public...
Laurent Charignon -
r26001:748053b4 default
parent child Browse files
Show More
@@ -87,7 +87,7 b' def _revdescendants(repo, revs, followfi'
87
87
88 return generatorset(iterate(), iterasc=True)
88 return generatorset(iterate(), iterasc=True)
89
89
90 def _revsbetween(repo, roots, heads):
90 def revsbetween(repo, roots, heads):
91 """Return all paths between roots and heads, inclusive of both endpoint
91 """Return all paths between roots and heads, inclusive of both endpoint
92 sets."""
92 sets."""
93 if not roots:
93 if not roots:
@@ -406,7 +406,7 b' def rangeset(repo, subset, x, y):'
406
406
407 def dagrange(repo, subset, x, y):
407 def dagrange(repo, subset, x, y):
408 r = fullreposet(repo)
408 r = fullreposet(repo)
409 xs = _revsbetween(repo, getset(repo, r, x), getset(repo, r, y))
409 xs = revsbetween(repo, getset(repo, r, x), getset(repo, r, y))
410 # XXX We should combine with subset first: 'subset & baseset(...)'. This is
410 # XXX We should combine with subset first: 'subset & baseset(...)'. This is
411 # necessary to ensure we preserve the order in subset.
411 # necessary to ensure we preserve the order in subset.
412 return xs & subset
412 return xs & subset
General Comments 0
You need to be logged in to leave comments. Login now