##// END OF EJS Templates
json: implement {helptopics} template
Gregory Szorc -
r24590:0bb733df default
parent child Browse files
Show More
@@ -83,7 +83,15 b' filecomparison = \'"not yet implemented"\''
83 fileannotate = '"not yet implemented"'
83 fileannotate = '"not yet implemented"'
84 filelog = '"not yet implemented"'
84 filelog = '"not yet implemented"'
85 graph = '"not yet implemented"'
85 graph = '"not yet implemented"'
86 helptopics = '"not yet implemented"'
86 helptopics = '\{
87 "topics": [{join(topics%helptopicentry, ", ")}],
88 "earlycommands": [{join(earlycommands%helptopicentry, ", ")}],
89 "othercommands": [{join(othercommands%helptopicentry, ", ")}]
90 }'
91 helptopicentry = '\{
92 "topic": {topic|json},
93 "summary": {summary|json}
94 }'
87 help = '"not yet implemented"'
95 help = '"not yet implemented"'
88 filenodelink = ''
96 filenodelink = ''
89 filenolink = ''
97 filenolink = ''
@@ -717,7 +717,286 b' help/ shows help topics'
717 $ request json-help
717 $ request json-help
718 200 Script output follows
718 200 Script output follows
719
719
720 "not yet implemented"
720 {
721 "earlycommands": [
722 {
723 "summary": "add the specified files on the next commit",
724 "topic": "add"
725 },
726 {
727 "summary": "show changeset information by line for each file",
728 "topic": "annotate"
729 },
730 {
731 "summary": "make a copy of an existing repository",
732 "topic": "clone"
733 },
734 {
735 "summary": "commit the specified files or all outstanding changes",
736 "topic": "commit"
737 },
738 {
739 "summary": "diff repository (or selected files)",
740 "topic": "diff"
741 },
742 {
743 "summary": "dump the header and diffs for one or more changesets",
744 "topic": "export"
745 },
746 {
747 "summary": "forget the specified files on the next commit",
748 "topic": "forget"
749 },
750 {
751 "summary": "create a new repository in the given directory",
752 "topic": "init"
753 },
754 {
755 "summary": "show revision history of entire repository or files",
756 "topic": "log"
757 },
758 {
759 "summary": "merge another revision into working directory",
760 "topic": "merge"
761 },
762 {
763 "summary": "pull changes from the specified source",
764 "topic": "pull"
765 },
766 {
767 "summary": "push changes to the specified destination",
768 "topic": "push"
769 },
770 {
771 "summary": "remove the specified files on the next commit",
772 "topic": "remove"
773 },
774 {
775 "summary": "start stand-alone webserver",
776 "topic": "serve"
777 },
778 {
779 "summary": "show changed files in the working directory",
780 "topic": "status"
781 },
782 {
783 "summary": "summarize working directory state",
784 "topic": "summary"
785 },
786 {
787 "summary": "update working directory (or switch revisions)",
788 "topic": "update"
789 }
790 ],
791 "othercommands": [
792 {
793 "summary": "add all new files, delete all missing files",
794 "topic": "addremove"
795 },
796 {
797 "summary": "create an unversioned archive of a repository revision",
798 "topic": "archive"
799 },
800 {
801 "summary": "reverse effect of earlier changeset",
802 "topic": "backout"
803 },
804 {
805 "summary": "subdivision search of changesets",
806 "topic": "bisect"
807 },
808 {
809 "summary": "create a new bookmark or list existing bookmarks",
810 "topic": "bookmarks"
811 },
812 {
813 "summary": "set or show the current branch name",
814 "topic": "branch"
815 },
816 {
817 "summary": "list repository named branches",
818 "topic": "branches"
819 },
820 {
821 "summary": "create a changegroup file",
822 "topic": "bundle"
823 },
824 {
825 "summary": "output the current or given revision of files",
826 "topic": "cat"
827 },
828 {
829 "summary": "show combined config settings from all hgrc files",
830 "topic": "config"
831 },
832 {
833 "summary": "mark files as copied for the next commit",
834 "topic": "copy"
835 },
836 {
837 "summary": "list tracked files",
838 "topic": "files"
839 },
840 {
841 "summary": "copy changes from other branches onto the current branch",
842 "topic": "graft"
843 },
844 {
845 "summary": "search for a pattern in specified files and revisions",
846 "topic": "grep"
847 },
848 {
849 "summary": "show branch heads",
850 "topic": "heads"
851 },
852 {
853 "summary": "show help for a given topic or a help overview",
854 "topic": "help"
855 },
856 {
857 "summary": "identify the working directory or specified revision",
858 "topic": "identify"
859 },
860 {
861 "summary": "import an ordered set of patches",
862 "topic": "import"
863 },
864 {
865 "summary": "show new changesets found in source",
866 "topic": "incoming"
867 },
868 {
869 "summary": "output the current or given revision of the project manifest",
870 "topic": "manifest"
871 },
872 {
873 "summary": "show changesets not found in the destination",
874 "topic": "outgoing"
875 },
876 {
877 "summary": "show aliases for remote repositories",
878 "topic": "paths"
879 },
880 {
881 "summary": "set or show the current phase name",
882 "topic": "phase"
883 },
884 {
885 "summary": "roll back an interrupted transaction",
886 "topic": "recover"
887 },
888 {
889 "summary": "rename files; equivalent of copy + remove",
890 "topic": "rename"
891 },
892 {
893 "summary": "redo merges or set/view the merge status of files",
894 "topic": "resolve"
895 },
896 {
897 "summary": "restore files to their checkout state",
898 "topic": "revert"
899 },
900 {
901 "summary": "print the root (top) of the current working directory",
902 "topic": "root"
903 },
904 {
905 "summary": "add one or more tags for the current or given revision",
906 "topic": "tag"
907 },
908 {
909 "summary": "list repository tags",
910 "topic": "tags"
911 },
912 {
913 "summary": "apply one or more changegroup files",
914 "topic": "unbundle"
915 },
916 {
917 "summary": "verify the integrity of the repository",
918 "topic": "verify"
919 },
920 {
921 "summary": "output version and copyright information",
922 "topic": "version"
923 }
924 ],
925 "topics": [
926 {
927 "summary": "Configuration Files",
928 "topic": "config"
929 },
930 {
931 "summary": "Date Formats",
932 "topic": "dates"
933 },
934 {
935 "summary": "Diff Formats",
936 "topic": "diffs"
937 },
938 {
939 "summary": "Environment Variables",
940 "topic": "environment"
941 },
942 {
943 "summary": "Using Additional Features",
944 "topic": "extensions"
945 },
946 {
947 "summary": "Specifying File Sets",
948 "topic": "filesets"
949 },
950 {
951 "summary": "Glossary",
952 "topic": "glossary"
953 },
954 {
955 "summary": "Syntax for Mercurial Ignore Files",
956 "topic": "hgignore"
957 },
958 {
959 "summary": "Configuring hgweb",
960 "topic": "hgweb"
961 },
962 {
963 "summary": "Merge Tools",
964 "topic": "merge-tools"
965 },
966 {
967 "summary": "Specifying Multiple Revisions",
968 "topic": "multirevs"
969 },
970 {
971 "summary": "File Name Patterns",
972 "topic": "patterns"
973 },
974 {
975 "summary": "Working with Phases",
976 "topic": "phases"
977 },
978 {
979 "summary": "Specifying Single Revisions",
980 "topic": "revisions"
981 },
982 {
983 "summary": "Specifying Revision Sets",
984 "topic": "revsets"
985 },
986 {
987 "summary": "Subrepositories",
988 "topic": "subrepos"
989 },
990 {
991 "summary": "Template Usage",
992 "topic": "templating"
993 },
994 {
995 "summary": "URL Paths",
996 "topic": "urls"
997 }
998 ]
999 }
721
1000
722 help/{topic} shows an individual help topic
1001 help/{topic} shows an individual help topic
723
1002
General Comments 0
You need to be logged in to leave comments. Login now