Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dispatch.py @ 45924:ca39c45014fa
errors: remove trailing "!" in messages about bad top-level args
Differential Revision: https://phab.mercurial-scm.org/D9381
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 23 Nov 2020 12:47:08 -0800 |
parents | 7eb221b9af6c |
children | 8939062597f0 |
line wrap: on
line diff
--- a/mercurial/dispatch.py Mon Nov 23 12:42:57 2020 -0800 +++ b/mercurial/dispatch.py Mon Nov 23 12:47:08 2020 -0800 @@ -1058,18 +1058,18 @@ req.canonical_command = cmd if options[b"config"] != req.earlyoptions[b"config"]: - raise error.Abort(_(b"option --config may not be abbreviated!")) + raise error.Abort(_(b"option --config may not be abbreviated")) if options[b"cwd"] != req.earlyoptions[b"cwd"]: - raise error.Abort(_(b"option --cwd may not be abbreviated!")) + raise error.Abort(_(b"option --cwd may not be abbreviated")) if options[b"repository"] != req.earlyoptions[b"repository"]: raise error.Abort( _( b"option -R has to be separated from other options (e.g. not " - b"-qR) and --repository may only be abbreviated as --repo!" + b"-qR) and --repository may only be abbreviated as --repo" ) ) if options[b"debugger"] != req.earlyoptions[b"debugger"]: - raise error.Abort(_(b"option --debugger may not be abbreviated!")) + raise error.Abort(_(b"option --debugger may not be abbreviated")) # don't validate --profile/--traceback, which can be enabled from now if options[b"encoding"]: