# HG changeset patch # User Martin von Zweigbergk # Date 1632415340 25200 # Node ID 12966768595a0512c515a134ae2ec9dec9c187c5 # Parent 5b89626c11e9687169ca4407efe3de3b19b59e47 errors: use InputError for bad path arguments to `hg annotate` Differential Revision: https://phab.mercurial-scm.org/D11498 diff -r 5b89626c11e9 -r 12966768595a mercurial/commands.py --- a/mercurial/commands.py Thu Sep 23 09:40:01 2021 -0700 +++ b/mercurial/commands.py Thu Sep 23 09:42:20 2021 -0700 @@ -526,7 +526,7 @@ ) def bad(x, y): - raise error.Abort(b"%s: %s" % (x, y)) + raise error.InputError(b"%s: %s" % (x, y)) m = scmutil.match(ctx, pats, opts, badfn=bad) diff -r 5b89626c11e9 -r 12966768595a tests/test-annotate.t --- a/tests/test-annotate.t Thu Sep 23 09:40:01 2021 -0700 +++ b/tests/test-annotate.t Thu Sep 23 09:42:20 2021 -0700 @@ -455,7 +455,7 @@ $ hg ann nosuchfile abort: nosuchfile: no such file in rev e9e6b4fa872f - [255] + [10] annotate file without '\n' on last line diff -r 5b89626c11e9 -r 12966768595a tests/test-fastannotate-hg.t --- a/tests/test-fastannotate-hg.t Thu Sep 23 09:40:01 2021 -0700 +++ b/tests/test-fastannotate-hg.t Thu Sep 23 09:42:20 2021 -0700 @@ -458,7 +458,7 @@ $ hg ann nosuchfile abort: nosuchfile: no such file in rev e9e6b4fa872f - [255] + [10] annotate file without '\n' on last line