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 |
|
|
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