Mercurial > public > mercurial-scm > hg
diff tests/test-releasenotes-formatting.t @ 34340:741a511492d3
releasenotes: raise error on simultaneous usage of flags
The releasenotes command is supposed to raise an error when --list and
--rev/--check flags are used together. This patch adds the above functionality.
Differential Revision: https://phab.mercurial-scm.org/D831
author | Rishabh Madan <rishabhmadan96@gmail.com> |
---|---|
date | Thu, 28 Sep 2017 13:22:58 +0530 |
parents | 2a37459aedf2 |
children | 159a6f7e09a9 |
line wrap: on
line diff
--- a/tests/test-releasenotes-formatting.t Tue Sep 26 03:56:20 2017 -0700 +++ b/tests/test-releasenotes-formatting.t Thu Sep 28 13:22:58 2017 +0530 @@ -420,3 +420,17 @@ fix: Bug Fixes perf: Performance Improvements api: API Changes + + $ cd .. + +Raise error on simultaneous usage of flags + + $ hg init relnotes-raise-error + $ cd relnotes-raise-error + $ hg releasenotes -r . -l + abort: cannot use both '--list' and '--rev' + [255] + + $ hg releasenotes -l -c + abort: cannot use both '--list' and '--check' + [255]