##// END OF EJS Templates
Changed command synopsises to match style of common UNIX tools....
Thomas Arendsen Hein -
r707:116b2d3f default
parent child Browse files
Show More
@@ -1087,53 +1087,53 b' def verify(ui, repo):'
1087 # Command options and aliases are listed here, alphabetically
1087 # Command options and aliases are listed here, alphabetically
1088
1088
1089 table = {
1089 table = {
1090 "^add": (add, [], "hg add [files]"),
1090 "^add": (add, [], "hg add FILE..."),
1091 "addremove": (addremove, [], "hg addremove [files]"),
1091 "addremove": (addremove, [], "hg addremove [FILE]..."),
1092 "^annotate":
1092 "^annotate":
1093 (annotate,
1093 (annotate,
1094 [('r', 'revision', '', 'revision'),
1094 [('r', 'revision', '', 'revision'),
1095 ('u', 'user', None, 'show user'),
1095 ('u', 'user', None, 'show user'),
1096 ('n', 'number', None, 'show revision number'),
1096 ('n', 'number', None, 'show revision number'),
1097 ('c', 'changeset', None, 'show changeset')],
1097 ('c', 'changeset', None, 'show changeset')],
1098 'hg annotate [-u] [-c] [-n] [-r id] [files]'),
1098 'hg annotate [-r REV] [-u] [-n] [-c] FILE...'),
1099 "cat":
1099 "cat":
1100 (cat,
1100 (cat,
1101 [('o', 'output', "", 'output to file')],
1101 [('o', 'output', "", 'output to file')],
1102 'hg cat [-o outfile] <file> [rev]'),
1102 'hg cat [-o OUTFILE] FILE [REV]'),
1103 "^clone":
1103 "^clone":
1104 (clone,
1104 (clone,
1105 [('U', 'noupdate', None, 'skip update after cloning')],
1105 [('U', 'noupdate', None, 'skip update after cloning')],
1106 'hg clone [options] <source> [dest]'),
1106 'hg clone [-U] SOURCE [DEST]'),
1107 "^commit|ci":
1107 "^commit|ci":
1108 (commit,
1108 (commit,
1109 [('t', 'text', "", 'commit text'),
1109 [('A', 'addremove', None, 'run add/remove during commit'),
1110 ('A', 'addremove', None, 'run add/remove during commit'),
1110 ('t', 'text', "", 'commit text'),
1111 ('l', 'logfile', "", 'commit text file'),
1111 ('l', 'logfile', "", 'commit text file'),
1112 ('d', 'date', "", 'date code'),
1112 ('d', 'date', "", 'date code'),
1113 ('u', 'user', "", 'user')],
1113 ('u', 'user', "", 'user')],
1114 'hg commit [files]'),
1114 'hg commit [OPTION]... [FILE]...'),
1115 "copy": (copy, [], 'hg copy <source> <dest>'),
1115 "copy": (copy, [], 'hg copy SOURCE DEST'),
1116 "debugcheckstate": (debugcheckstate, [], 'debugcheckstate'),
1116 "debugcheckstate": (debugcheckstate, [], 'debugcheckstate'),
1117 "debugstate": (debugstate, [], 'debugstate'),
1117 "debugstate": (debugstate, [], 'debugstate'),
1118 "debugindex": (debugindex, [], 'debugindex <file>'),
1118 "debugindex": (debugindex, [], 'debugindex FILE'),
1119 "debugindexdot": (debugindexdot, [], 'debugindexdot <file>'),
1119 "debugindexdot": (debugindexdot, [], 'debugindexdot FILE'),
1120 "^diff":
1120 "^diff":
1121 (diff,
1121 (diff,
1122 [('r', 'rev', [], 'revision')],
1122 [('r', 'rev', [], 'revision')],
1123 'hg diff [-r A] [-r B] [files]'),
1123 'hg diff [-r REV1 [-r REV2]] [FILE]...'),
1124 "^export":
1124 "^export":
1125 (export,
1125 (export,
1126 [('o', 'output', "", 'output to file')],
1126 [('o', 'output', "", 'output to file')],
1127 "hg export [-o file] <changeset> ..."),
1127 "hg export [-o OUTFILE] REV..."),
1128 "forget": (forget, [], "hg forget [files]"),
1128 "forget": (forget, [], "hg forget [FILE]..."),
1129 "heads": (heads, [], 'hg heads'),
1129 "heads": (heads, [], 'hg heads'),
1130 "help": (help_, [], 'hg help [command]'),
1130 "help": (help_, [], 'hg help [COMMAND]'),
1131 "identify|id": (identify, [], 'hg identify'),
1131 "identify|id": (identify, [], 'hg identify'),
1132 "import|patch":
1132 "import|patch":
1133 (import_,
1133 (import_,
1134 [('p', 'strip', 1, 'path strip'),
1134 [('p', 'strip', 1, 'path strip'),
1135 ('b', 'base', "", 'base path')],
1135 ('b', 'base', "", 'base path')],
1136 "hg import [options] <patches>"),
1136 "hg import [-p NUM] [-b BASE] PATCH..."),
1137 "^init": (init, [], 'hg init'),
1137 "^init": (init, [], 'hg init'),
1138 "locate":
1138 "locate":
1139 (locate,
1139 (locate,
@@ -1142,19 +1142,19 b' table = {'
1142 ('i', 'include', [], 'include path in search'),
1142 ('i', 'include', [], 'include path in search'),
1143 ('r', 'rev', '', 'revision'),
1143 ('r', 'rev', '', 'revision'),
1144 ('x', 'exclude', [], 'exclude path from search')],
1144 ('x', 'exclude', [], 'exclude path from search')],
1145 'hg locate [options] [files]'),
1145 'hg locate [OPTION]... [PATTERN]...'),
1146 "^log|history":
1146 "^log|history":
1147 (log,
1147 (log,
1148 [('r', 'rev', [], 'revision'),
1148 [('r', 'rev', [], 'revision'),
1149 ('p', 'patch', None, 'show patch')],
1149 ('p', 'patch', None, 'show patch')],
1150 'hg log [-r A] [-r B] [-p] [file]'),
1150 'hg log [-r REV1 [-r REV2]] [-p] [FILE]'),
1151 "manifest": (manifest, [], 'hg manifest [rev]'),
1151 "manifest": (manifest, [], 'hg manifest [REV]'),
1152 "parents": (parents, [], 'hg parents [node]'),
1152 "parents": (parents, [], 'hg parents [REV]'),
1153 "^pull":
1153 "^pull":
1154 (pull,
1154 (pull,
1155 [('u', 'update', None, 'update working directory')],
1155 [('u', 'update', None, 'update working directory')],
1156 'hg pull [options] [source]'),
1156 'hg pull [-u] [SOURCE]'),
1157 "^push": (push, [], 'hg push <destination>'),
1157 "^push": (push, [], 'hg push [DEST]'),
1158 "rawcommit":
1158 "rawcommit":
1159 (rawcommit,
1159 (rawcommit,
1160 [('p', 'parent', [], 'parent'),
1160 [('p', 'parent', [], 'parent'),
@@ -1163,14 +1163,14 b' table = {'
1163 ('F', 'files', "", 'file list'),
1163 ('F', 'files', "", 'file list'),
1164 ('t', 'text', "", 'commit text'),
1164 ('t', 'text', "", 'commit text'),
1165 ('l', 'logfile', "", 'commit text file')],
1165 ('l', 'logfile', "", 'commit text file')],
1166 'hg rawcommit [options] [files]'),
1166 'hg rawcommit [OPTION]... [FILE]...'),
1167 "recover": (recover, [], "hg recover"),
1167 "recover": (recover, [], "hg recover"),
1168 "^remove|rm": (remove, [], "hg remove [files]"),
1168 "^remove|rm": (remove, [], "hg remove FILE..."),
1169 "^revert":
1169 "^revert":
1170 (revert,
1170 (revert,
1171 [("n", "nonrecursive", None, "don't recurse into subdirs"),
1171 [("n", "nonrecursive", None, "don't recurse into subdirs"),
1172 ("r", "rev", "", "revision")],
1172 ("r", "rev", "", "revision")],
1173 "hg revert [files|dirs]"),
1173 "hg revert [-n] [-r REV] NAME..."),
1174 "root": (root, [], "hg root"),
1174 "root": (root, [], "hg root"),
1175 "^serve":
1175 "^serve":
1176 (serve,
1176 (serve,
@@ -1181,7 +1181,7 b' table = {'
1181 ('n', 'name', os.getcwd(), 'repository name'),
1181 ('n', 'name', os.getcwd(), 'repository name'),
1182 ('', 'stdio', None, 'for remote clients'),
1182 ('', 'stdio', None, 'for remote clients'),
1183 ('t', 'templates', "", 'template map')],
1183 ('t', 'templates', "", 'template map')],
1184 "hg serve [options]"),
1184 "hg serve [OPTION]..."),
1185 "^status": (status, [], 'hg status'),
1185 "^status": (status, [], 'hg status'),
1186 "tag":
1186 "tag":
1187 (tag,
1187 (tag,
@@ -1189,7 +1189,7 b' table = {'
1189 ('t', 'text', "", 'commit text'),
1189 ('t', 'text', "", 'commit text'),
1190 ('d', 'date', "", 'date code'),
1190 ('d', 'date', "", 'date code'),
1191 ('u', 'user', "", 'user')],
1191 ('u', 'user', "", 'user')],
1192 'hg tag [options] <name> [rev]'),
1192 'hg tag [OPTION]... NAME [REV]'),
1193 "tags": (tags, [], 'hg tags'),
1193 "tags": (tags, [], 'hg tags'),
1194 "tip": (tip, [], 'hg tip'),
1194 "tip": (tip, [], 'hg tip'),
1195 "undo": (undo, [], 'hg undo'),
1195 "undo": (undo, [], 'hg undo'),
@@ -1197,7 +1197,7 b' table = {'
1197 (update,
1197 (update,
1198 [('m', 'merge', None, 'allow merging of conflicts'),
1198 [('m', 'merge', None, 'allow merging of conflicts'),
1199 ('C', 'clean', None, 'overwrite locally modified files')],
1199 ('C', 'clean', None, 'overwrite locally modified files')],
1200 'hg update [options] [node]'),
1200 'hg update [-m] [-C] [REV]'),
1201 "verify": (verify, [], 'hg verify'),
1201 "verify": (verify, [], 'hg verify'),
1202 "version": (show_version, [], 'hg version'),
1202 "version": (show_version, [], 'hg version'),
1203 }
1203 }
@@ -33,14 +33,14 b' basic hg commands (use "hg help -v" for '
33 status show changed files in the working directory
33 status show changed files in the working directory
34 update update or merge working directory
34 update update or merge working directory
35 hg add: option -h not recognized
35 hg add: option -h not recognized
36 hg add [files]
36 hg add FILE...
37
37
38 add the specified files on the next commit
38 add the specified files on the next commit
39 hg add: option --skjdfks not recognized
39 hg add: option --skjdfks not recognized
40 hg add [files]
40 hg add FILE...
41
41
42 add the specified files on the next commit
42 add the specified files on the next commit
43 hg diff [-r A] [-r B] [files]
43 hg diff [-r REV1 [-r REV2]] [FILE]...
44
44
45 -r --rev
45 -r --rev
46 revision
46 revision
General Comments 0
You need to be logged in to leave comments. Login now