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