Show More
@@ -490,7 +490,7 b' def revrange(repo, revs):' | |||
|
490 | 490 | return defval |
|
491 | 491 | return repo[val].rev() |
|
492 | 492 | |
|
493 | seen, l = set(), [] | |
|
493 | seen, l = set(), revset.baseset([]) | |
|
494 | 494 | for spec in revs: |
|
495 | 495 | if l and not seen: |
|
496 | 496 | seen = set(l) |
@@ -511,7 +511,7 b' def revrange(repo, revs):' | |||
|
511 | 511 | rangeiter = repo.changelog.revs(start, end) |
|
512 | 512 | if not seen and not l: |
|
513 | 513 | # by far the most common case: revs = ["-1:0"] |
|
514 |
l = |
|
|
514 | l = revset.baseset(rangeiter) | |
|
515 | 515 | # defer syncing seen until next iteration |
|
516 | 516 | continue |
|
517 | 517 | newrevs = set(rangeiter) |
@@ -527,7 +527,7 b' def revrange(repo, revs):' | |||
|
527 | 527 | if rev in seen: |
|
528 | 528 | continue |
|
529 | 529 | seen.add(rev) |
|
530 |
l |
|
|
530 | l = l + [rev] | |
|
531 | 531 | continue |
|
532 | 532 | except error.RepoLookupError: |
|
533 | 533 | pass |
General Comments 0
You need to be logged in to leave comments.
Login now