Show More
@@ -1081,7 +1081,7 b' def bisect(' | |||
|
1081 | 1081 | raise error.StateError(_(b'current bisect revision is a merge')) |
|
1082 | 1082 | if rev: |
|
1083 | 1083 | if not nodes: |
|
1084 |
raise error. |
|
|
1084 | raise error.InputError(_(b'empty revision set')) | |
|
1085 | 1085 | node = repo[nodes[-1]].node() |
|
1086 | 1086 | with hbisect.restore_state(repo, state, node): |
|
1087 | 1087 | while changesets: |
@@ -689,7 +689,7 b" def revsingle(repo, revspec, default=b'." | |||
|
689 | 689 | |
|
690 | 690 | l = revrange(repo, [revspec], localalias=localalias) |
|
691 | 691 | if not l: |
|
692 |
raise error. |
|
|
692 | raise error.InputError(_(b'empty revision set')) | |
|
693 | 693 | return repo[l.last()] |
|
694 | 694 | |
|
695 | 695 | |
@@ -710,7 +710,7 b' def revpair(repo, revs):' | |||
|
710 | 710 | l = revrange(repo, revs) |
|
711 | 711 | |
|
712 | 712 | if not l: |
|
713 |
raise error. |
|
|
713 | raise error.InputError(_(b'empty revision range')) | |
|
714 | 714 | |
|
715 | 715 | first = l.first() |
|
716 | 716 | second = l.last() |
@@ -720,7 +720,7 b' def revpair(repo, revs):' | |||
|
720 | 720 | and len(revs) >= 2 |
|
721 | 721 | and not all(revrange(repo, [r]) for r in revs) |
|
722 | 722 | ): |
|
723 |
raise error. |
|
|
723 | raise error.InputError(_(b'empty revision on one side of range')) | |
|
724 | 724 | |
|
725 | 725 | # if top-level is range expression, the result must always be a pair |
|
726 | 726 | if first == second and len(revs) == 1 and not _pairspec(revs[0]): |
@@ -119,7 +119,7 b' as pairs even if x == y, but not for "f(' | |||
|
119 | 119 | +wdir |
|
120 | 120 | $ hg diff -r "2 and 1" |
|
121 | 121 | abort: empty revision range |
|
122 |
[ |
|
|
122 | [10] | |
|
123 | 123 | |
|
124 | 124 | $ cd .. |
|
125 | 125 |
@@ -87,7 +87,7 b' Specifying an empty revision should abor' | |||
|
87 | 87 | |
|
88 | 88 | $ hg extdiff -p diff --patch --rev 'ancestor()' --rev 1 |
|
89 | 89 | abort: empty revision on one side of range |
|
90 |
[ |
|
|
90 | [10] | |
|
91 | 91 | |
|
92 | 92 | Test diff during merge: |
|
93 | 93 |
General Comments 0
You need to be logged in to leave comments.
Login now