Mercurial > hg
comparison tests/test-extension.t @ 30993:9c2977ceaa46
pager: move more behavior into core
This moves the global flag and the --pager=yes logic into core. Only
functionality change is that users now always get a --pager flag and
can enable the pager via the flag without the extension active.
Moving the flag into core exposes a defect in the ro localization,
which will have to be corrected later.
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 15 Feb 2017 17:47:57 -0500 |
parents | c2cbc1b050db |
children | 8346b2f09e79 |
comparison
equal
deleted
inserted
replaced
30992:61b4122019d3 | 30993:9c2977ceaa46 |
---|---|
541 --time time how long the command takes | 541 --time time how long the command takes |
542 --profile print command execution profile | 542 --profile print command execution profile |
543 --version output version information and exit | 543 --version output version information and exit |
544 -h --help display help and exit | 544 -h --help display help and exit |
545 --hidden consider hidden changesets | 545 --hidden consider hidden changesets |
546 --pager TYPE when to paginate (boolean, always, auto, or never) | |
547 (default: auto) | |
546 | 548 |
547 | 549 |
548 | 550 |
549 | 551 |
550 | 552 |
576 --time time how long the command takes | 578 --time time how long the command takes |
577 --profile print command execution profile | 579 --profile print command execution profile |
578 --version output version information and exit | 580 --version output version information and exit |
579 -h --help display help and exit | 581 -h --help display help and exit |
580 --hidden consider hidden changesets | 582 --hidden consider hidden changesets |
583 --pager TYPE when to paginate (boolean, always, auto, or never) | |
584 (default: auto) | |
581 | 585 |
582 | 586 |
583 | 587 |
584 | 588 |
585 | 589 |
854 --time time how long the command takes | 858 --time time how long the command takes |
855 --profile print command execution profile | 859 --profile print command execution profile |
856 --version output version information and exit | 860 --version output version information and exit |
857 -h --help display help and exit | 861 -h --help display help and exit |
858 --hidden consider hidden changesets | 862 --hidden consider hidden changesets |
863 --pager TYPE when to paginate (boolean, always, auto, or never) | |
864 (default: auto) | |
859 | 865 |
860 Make sure that single '-v' option shows help and built-ins only for 'dodo' command | 866 Make sure that single '-v' option shows help and built-ins only for 'dodo' command |
861 $ hg help -v dodo | 867 $ hg help -v dodo |
862 hg dodo | 868 hg dodo |
863 | 869 |
887 --time time how long the command takes | 893 --time time how long the command takes |
888 --profile print command execution profile | 894 --profile print command execution profile |
889 --version output version information and exit | 895 --version output version information and exit |
890 -h --help display help and exit | 896 -h --help display help and exit |
891 --hidden consider hidden changesets | 897 --hidden consider hidden changesets |
898 --pager TYPE when to paginate (boolean, always, auto, or never) | |
899 (default: auto) | |
892 | 900 |
893 In case when extension name doesn't match any of its commands, | 901 In case when extension name doesn't match any of its commands, |
894 help message should ask for '-v' to get list of built-in aliases | 902 help message should ask for '-v' to get list of built-in aliases |
895 along with extension help | 903 along with extension help |
896 $ cat > $TESTTMP/d/dudu.py <<EOF | 904 $ cat > $TESTTMP/d/dudu.py <<EOF |
958 --time time how long the command takes | 966 --time time how long the command takes |
959 --profile print command execution profile | 967 --profile print command execution profile |
960 --version output version information and exit | 968 --version output version information and exit |
961 -h --help display help and exit | 969 -h --help display help and exit |
962 --hidden consider hidden changesets | 970 --hidden consider hidden changesets |
971 --pager TYPE when to paginate (boolean, always, auto, or never) | |
972 (default: auto) | |
963 | 973 |
964 $ hg help -v -e dudu | 974 $ hg help -v -e dudu |
965 dudu extension - | 975 dudu extension - |
966 | 976 |
967 This is an awesome 'dudu' extension. It does something and also writes 'Beep | 977 This is an awesome 'dudu' extension. It does something and also writes 'Beep |
990 --time time how long the command takes | 1000 --time time how long the command takes |
991 --profile print command execution profile | 1001 --profile print command execution profile |
992 --version output version information and exit | 1002 --version output version information and exit |
993 -h --help display help and exit | 1003 -h --help display help and exit |
994 --hidden consider hidden changesets | 1004 --hidden consider hidden changesets |
1005 --pager TYPE when to paginate (boolean, always, auto, or never) | |
1006 (default: auto) | |
995 | 1007 |
996 Disabled extension commands: | 1008 Disabled extension commands: |
997 | 1009 |
998 $ ORGHGRCPATH=$HGRCPATH | 1010 $ ORGHGRCPATH=$HGRCPATH |
999 $ HGRCPATH= | 1011 $ HGRCPATH= |