errors: use InputError for bad path arguments to `hg annotate`
Differential Revision: https://phab.mercurial-scm.org/D11498
--- 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)
--- 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
--- 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