Mercurial > evolve
diff tests/test-prune.t @ 6330:7650b38961a2
prune: check user-supplied CLI flags in a modern way
Calling the function twice because --biject is an alias to --pair. Technically
they don't conflict with each other, only with --fold and --split.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 20 Nov 2022 17:16:47 +0400 |
parents | 4466989cee8d |
children | 9c243e98d0be |
line wrap: on
line diff
--- a/tests/test-prune.t Tue Nov 15 16:52:16 2022 +0400 +++ b/tests/test-prune.t Sun Nov 20 17:16:47 2022 +0400 @@ -36,20 +36,20 @@ --------------------------------------- $ hg prune --fold --pair - abort: can only specify one of pair, fold - [255] + abort: cannot specify both --pair and --fold + [10] $ hg prune --fold --biject - abort: no revisions specified to prune - [255] + abort: cannot specify both --biject and --fold + [10] $ hg prune --split --fold - abort: can only specify one of fold, split - [255] + abort: cannot specify both --fold and --split + [10] $ hg prune --split --fold --pair - abort: can only specify one of pair, fold, split - [255] + abort: cannot specify both --pair and --fold + [10] $ hg prune --split --fold --biject - abort: can only specify one of fold, split - [255] + abort: cannot specify both --fold and --split + [10] Check simple case ----------------------------