##// END OF EJS Templates
revrange: evaluate all revset specs at once...
Yuya Nishihara -
r25928:4ee4f741 default
parent child Browse files
Show More
@@ -720,14 +720,13 b' def revpair(repo, revs):'
720
720
721 def revrange(repo, revs):
721 def revrange(repo, revs):
722 """Yield revision as strings from a list of revision specifications."""
722 """Yield revision as strings from a list of revision specifications."""
723 subsets = []
723 allspecs = []
724 for spec in revs:
724 for spec in revs:
725 if isinstance(spec, int):
725 if isinstance(spec, int):
726 spec = revset.formatspec('rev(%d)', spec)
726 spec = revset.formatspec('rev(%d)', spec)
727 m = revset.match(repo.ui, spec, repo)
727 allspecs.append(spec)
728 subsets.append(m(repo))
728 m = revset.matchany(repo.ui, allspecs, repo)
729
729 return m(repo)
730 return revset._combinesets(subsets)
731
730
732 def expandpats(pats):
731 def expandpats(pats):
733 '''Expand bare globs when running on windows.
732 '''Expand bare globs when running on windows.
General Comments 0
You need to be logged in to leave comments. Login now