comparison tests/test-bisect.t @ 32766:fbe9c4dcc8a0

bisect: improve option validation message
author Brandon McCaig <bamccaig@gmail.com>
date Fri, 09 Jun 2017 20:12:39 -0400
parents 35a69efbf190
children b6776b34e44e
comparison
equal deleted inserted replaced
32765:041d976b662a 32766:fbe9c4dcc8a0
609 changeset: 26:3efc6fd51aeb 609 changeset: 26:3efc6fd51aeb
610 user: test 610 user: test
611 date: Thu Jan 01 00:00:26 1970 +0000 611 date: Thu Jan 01 00:00:26 1970 +0000
612 summary: msg 26 612 summary: msg 26
613 613
614 Test the validation message when exclusive options are used:
615
616 $ hg bisect -r
617 $ hg bisect -b -c false
618 abort: --bad and --command are incompatible
619 [255]
620 $ hg bisect -b -e
621 abort: --bad and --extend are incompatible
622 [255]
623 $ hg bisect -b -g
624 abort: --bad and --good are incompatible
625 [255]
626 $ hg bisect -b -r
627 abort: --bad and --reset are incompatible
628 [255]
629 $ hg bisect -b -s
630 abort: --bad and --skip are incompatible
631 [255]
632 $ hg bisect -c false -e
633 abort: --command and --extend are incompatible
634 [255]
635 $ hg bisect -c false -g
636 abort: --command and --good are incompatible
637 [255]
638 $ hg bisect -c false -r
639 abort: --command and --reset are incompatible
640 [255]
641 $ hg bisect -c false -s
642 abort: --command and --skip are incompatible
643 [255]
644 $ hg bisect -e -g
645 abort: --extend and --good are incompatible
646 [255]
647 $ hg bisect -e -r
648 abort: --extend and --reset are incompatible
649 [255]
650 $ hg bisect -e -s
651 abort: --extend and --skip are incompatible
652 [255]
653 $ hg bisect -g -r
654 abort: --good and --reset are incompatible
655 [255]
656 $ hg bisect -g -s
657 abort: --good and --skip are incompatible
658 [255]
659 $ hg bisect -r -s
660 abort: --reset and --skip are incompatible
661 [255]