821 > pass |
821 > pass |
822 > |
822 > |
823 > def uisetup(ui): |
823 > def uisetup(ui): |
824 > ui.setconfig(b'alias', b'shellalias', b'!echo hi', b'helpext') |
824 > ui.setconfig(b'alias', b'shellalias', b'!echo hi', b'helpext') |
825 > ui.setconfig(b'alias', b'hgalias', b'summary', b'helpext') |
825 > ui.setconfig(b'alias', b'hgalias', b'summary', b'helpext') |
|
826 > ui.setconfig(b'alias', b'hgalias:doc', b'My doc', b'helpext') |
|
827 > ui.setconfig(b'alias', b'hgalias:category', b'navigation', b'helpext') |
|
828 > ui.setconfig(b'alias', b'hgaliasnodoc', b'summary', b'helpext') |
826 > |
829 > |
827 > EOF |
830 > EOF |
828 $ echo '[extensions]' >> $HGRCPATH |
831 $ echo '[extensions]' >> $HGRCPATH |
829 $ echo "helpext = `pwd`/helpext.py" >> $HGRCPATH |
832 $ echo "helpext = `pwd`/helpext.py" >> $HGRCPATH |
830 |
833 |
831 Test for aliases |
834 Test for aliases |
832 |
835 |
|
836 $ hg help | grep hgalias |
|
837 hgalias My doc |
|
838 |
833 $ hg help hgalias |
839 $ hg help hgalias |
834 hg hgalias [--remote] |
840 hg hgalias [--remote] |
|
841 |
|
842 alias for: hg summary |
|
843 |
|
844 My doc |
|
845 |
|
846 defined by: helpext |
|
847 |
|
848 options: |
|
849 |
|
850 --remote check for push and pull |
|
851 |
|
852 (some details hidden, use --verbose to show complete help) |
|
853 $ hg help hgaliasnodoc |
|
854 hg hgaliasnodoc [--remote] |
835 |
855 |
836 alias for: hg summary |
856 alias for: hg summary |
837 |
857 |
838 summarize working directory state |
858 summarize working directory state |
839 |
859 |
945 |
965 |
946 Change navigation: |
966 Change navigation: |
947 |
967 |
948 bisect subdivision search of changesets |
968 bisect subdivision search of changesets |
949 heads show branch heads |
969 heads show branch heads |
|
970 hgalias My doc |
950 identify identify the working directory or specified revision |
971 identify identify the working directory or specified revision |
951 log show revision history of entire repository or files |
972 log show revision history of entire repository or files |
952 |
973 |
953 Working directory management: |
974 Working directory management: |
954 |
975 |