Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 48030:7d908ee19b5b
errors: use InputError for some invalid revsets and such
Differential Revision: https://phab.mercurial-scm.org/D11496
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 23 Sep 2021 09:38:45 -0700 |
parents | 76dccbbe73fd |
children | 12966768595a |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Sep 23 17:05:37 2021 -0400 +++ b/mercurial/commands.py Thu Sep 23 09:38:45 2021 -0700 @@ -1081,7 +1081,7 @@ raise error.StateError(_(b'current bisect revision is a merge')) if rev: if not nodes: - raise error.Abort(_(b'empty revision set')) + raise error.InputError(_(b'empty revision set')) node = repo[nodes[-1]].node() with hbisect.restore_state(repo, state, node): while changesets: