Show More
@@ -672,11 +672,12 b' def revpair(repo, revs):' | |||||
672 |
|
672 | |||
673 | l = revrange(repo, revs) |
|
673 | l = revrange(repo, revs) | |
674 |
|
674 | |||
|
675 | if not l: | |||
|
676 | raise error.Abort(_('empty revision range')) | |||
|
677 | ||||
675 | first = l.first() |
|
678 | first = l.first() | |
676 | second = l.last() |
|
679 | second = l.last() | |
677 |
|
680 | |||
678 | if first is None: |
|
|||
679 | raise error.Abort(_('empty revision range')) |
|
|||
680 | if (first == second and len(revs) >= 2 |
|
681 | if (first == second and len(revs) >= 2 | |
681 | and not all(revrange(repo, [r]) for r in revs)): |
|
682 | and not all(revrange(repo, [r]) for r in revs)): | |
682 | raise error.Abort(_('empty revision on one side of range')) |
|
683 | raise error.Abort(_('empty revision on one side of range')) |
General Comments 0
You need to be logged in to leave comments.
Login now