Show More
@@ -499,7 +499,7 b' def revrange(repo, revs):' | |||
|
499 | 499 | try: |
|
500 | 500 | if isinstance(spec, int): |
|
501 | 501 | seen.add(spec) |
|
502 |
l |
|
|
502 | l = l + [spec] | |
|
503 | 503 | continue |
|
504 | 504 | |
|
505 | 505 | if _revrangesep in spec: |
@@ -520,7 +520,7 b' def revrange(repo, revs):' | |||
|
520 | 520 | seen.update(newrevs) |
|
521 | 521 | else: |
|
522 | 522 | seen = newrevs |
|
523 |
l |
|
|
523 | l = l + sorted(newrevs, reverse=start > end) | |
|
524 | 524 | continue |
|
525 | 525 | elif spec and spec in repo: # single unquoted rev |
|
526 | 526 | rev = revfix(repo, spec, None) |
@@ -534,11 +534,14 b' def revrange(repo, revs):' | |||
|
534 | 534 | |
|
535 | 535 | # fall through to new-style queries if old-style fails |
|
536 | 536 | m = revset.match(repo.ui, spec) |
|
537 | dl = [r for r in m(repo, revset.spanset(repo)) if r not in seen] | |
|
538 | l.extend(dl) | |
|
539 | seen.update(dl) | |
|
537 | if seen or l: | |
|
538 | dl = [r for r in m(repo, revset.spanset(repo)) if r not in seen] | |
|
539 | l = l + dl | |
|
540 | seen.update(dl) | |
|
541 | else: | |
|
542 | l = m(repo, revset.spanset(repo)) | |
|
540 | 543 | |
|
541 |
return |
|
|
544 | return l | |
|
542 | 545 | |
|
543 | 546 | def expandpats(pats): |
|
544 | 547 | if not util.expandglobs: |
General Comments 0
You need to be logged in to leave comments.
Login now