Mercurial > public > mercurial-scm > hg-stable
diff tests/test-alias.t @ 21569:c5afb07c33d3 stable
alias: handle shlex error in command aliases
No command should fail with ValueError just because there is unparseable
alias definition.
It returns 1 like other badalias handlers, but should be changed to 255 in
a later version because we use 255 for general command error.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 17 May 2014 13:06:16 +0900 |
parents | 5e13507a3b4e |
children | 6c9b7712ac69 |
line wrap: on
line diff
--- a/tests/test-alias.t Thu May 08 19:03:00 2014 +0900 +++ b/tests/test-alias.t Sat May 17 13:06:16 2014 +0900 @@ -11,6 +11,7 @@ > ambiguous = s > recursive = recursive > nodefinition = + > noclosingquotation = ' > no--cwd = status --cwd elsewhere > no-R = status -R elsewhere > no--repo = status --repo elsewhere @@ -92,6 +93,15 @@ no definition for alias 'nodefinition' +no closing quotation + + $ hg noclosing + error in definition for alias 'noclosingquotation': No closing quotation + [1] + $ hg help noclosing + error in definition for alias 'noclosingquotation': No closing quotation + + invalid options $ hg no--cwd