Mercurial > hg
diff mercurial/debugcommands.py @ 45874:1a72e4839795
errors: raise InputError in `hg debugobsolete`
Differential Revision: https://phab.mercurial-scm.org/D9336
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 17 Nov 2020 15:37:18 -0800 |
parents | d7a508a75d72 |
children | 87e7dd8e7734 |
line wrap: on
line diff
--- 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)