Show More
@@ -524,9 +524,11 b' def revpair(repo, revs):' | |||||
524 | l = revrange(repo, revs) |
|
524 | l = revrange(repo, revs) | |
525 |
|
525 | |||
526 | if len(l) == 0: |
|
526 | if len(l) == 0: | |
|
527 | if revs: | |||
|
528 | raise util.Abort(_('empty revision range')) | |||
527 | return repo.dirstate.p1(), None |
|
529 | return repo.dirstate.p1(), None | |
528 |
|
530 | |||
529 | if len(l) == 1: |
|
531 | if len(l) == 1 and len(revs) == 1 and _revrangesep not in revs[0]: | |
530 | return repo.lookup(l[0]), None |
|
532 | return repo.lookup(l[0]), None | |
531 |
|
533 | |||
532 | return repo.lookup(l[0]), repo.lookup(l[-1]) |
|
534 | return repo.lookup(l[0]), repo.lookup(l[-1]) |
General Comments 0
You need to be logged in to leave comments.
Login now