--- a/mercurial/debugcommands.py Mon Nov 16 16:25:04 2020 -0800
+++ b/mercurial/debugcommands.py Tue Nov 17 15:37:18 2020 -0800
@@ -2253,7 +2253,7 @@
raise TypeError()
return n
except TypeError:
- raise error.Abort(
+ raise error.InputError(
b'changeset references must be full hexadecimal '
b'node identifiers'
)
@@ -2264,7 +2264,7 @@
try:
indices.append(int(v))
except ValueError:
- raise error.Abort(
+ raise error.InputError(
_(b'invalid index value: %r') % v,
hint=_(b'use integers for indices'),
)
@@ -2282,7 +2282,9 @@
if precursor is not None:
if opts[b'rev']:
- raise error.Abort(b'cannot select revision when creating marker')
+ raise error.InputError(
+ b'cannot select revision when creating marker'
+ )
metadata = {}
metadata[b'user'] = encoding.fromlocal(opts[b'user'] or ui.username())
succs = tuple(parsenodeid(succ) for succ in successors)