[Updated] D11498: errors: use InputError for bad path arguments to `hg annotate`
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri Sep 24 12:06:36 UTC 2021
Closed by commit rHG12966768595a: errors: use InputError for bad path arguments to `hg annotate` (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11498?vs=30394&id=30397
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11498/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11498
AFFECTED FILES
mercurial/commands.py
tests/test-annotate.t
tests/test-fastannotate-hg.t
CHANGE DETAILS
diff --git a/tests/test-fastannotate-hg.t b/tests/test-fastannotate-hg.t
--- a/tests/test-fastannotate-hg.t
+++ b/tests/test-fastannotate-hg.t
@@ -458,7 +458,7 @@
$ hg ann nosuchfile
abort: nosuchfile: no such file in rev e9e6b4fa872f
- [255]
+ [10]
annotate file without '\n' on last line
diff --git a/tests/test-annotate.t b/tests/test-annotate.t
--- a/tests/test-annotate.t
+++ b/tests/test-annotate.t
@@ -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 --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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)
To: martinvonz, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210924/9d72fd2a/attachment-0002.html>
More information about the Mercurial-patches
mailing list