Show More
@@ -630,12 +630,7 b' class rebaseruntime(object):' | |||
|
630 | 630 | if self.inmemory: |
|
631 | 631 | raise error.InMemoryMergeConflictsError() |
|
632 | 632 | else: |
|
633 |
raise error. |
|
|
634 | _( | |
|
635 | b"unresolved conflicts (see 'hg " | |
|
636 | b"resolve', then 'hg rebase --continue')" | |
|
637 | ) | |
|
638 | ) | |
|
633 | raise error.ConflictResolutionRequired(b'rebase') | |
|
639 | 634 | if not self.collapsef: |
|
640 | 635 | merging = p2 != nullrev |
|
641 | 636 | editform = cmdutil.mergeeditform(merging, b'rebase') |
@@ -106,6 +106,22 b' class InterventionRequired(Hint, Excepti' | |||
|
106 | 106 | __bytes__ = _tobytes |
|
107 | 107 | |
|
108 | 108 | |
|
109 | class ConflictResolutionRequired(InterventionRequired): | |
|
110 | """Exception raised when a continuable command required merge conflict resolution.""" | |
|
111 | ||
|
112 | def __init__(self, opname): | |
|
113 | from .i18n import _ | |
|
114 | ||
|
115 | self.opname = opname | |
|
116 | InterventionRequired.__init__( | |
|
117 | self, | |
|
118 | _( | |
|
119 | b"unresolved conflicts (see 'hg resolve', then 'hg %s --continue')" | |
|
120 | ) | |
|
121 | % opname, | |
|
122 | ) | |
|
123 | ||
|
124 | ||
|
109 | 125 | class Abort(Hint, Exception): |
|
110 | 126 | """Raised if a command needs to print an error and exit.""" |
|
111 | 127 |
@@ -1014,12 +1014,7 b' def _rebaserestoredcommit(' | |||
|
1014 | 1014 | activebookmark, |
|
1015 | 1015 | interactive, |
|
1016 | 1016 | ) |
|
1017 |
raise error. |
|
|
1018 | _( | |
|
1019 | b"unresolved conflicts (see 'hg resolve', then " | |
|
1020 | b"'hg unshelve --continue')" | |
|
1021 | ) | |
|
1022 | ) | |
|
1017 | raise error.ConflictResolutionRequired(b'unshelve') | |
|
1023 | 1018 | |
|
1024 | 1019 | with repo.dirstate.parentchange(): |
|
1025 | 1020 | repo.setparents(tmpwctx.node(), nodemod.nullid) |
General Comments 0
You need to be logged in to leave comments.
Login now