Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 707:116b2d3f4554
Changed command synopsises to match style of common UNIX tools.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Changed command synopsises to match style of common UNIX tools.
manifest hash: cf62235e46f5c06ac5a3c88cb61e9b57d35fe222
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFC13YhW7P1GVgWeRoRAnSOAKCOtrYHZ2XMTjpphY/G2UZHcJcZeQCdFsgv
D5Hu+s9ahVX8hns2ZbQpriI=
=g6NW
-----END PGP SIGNATURE-----
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 15 Jul 2005 09:38:57 +0100 |
parents | 5107a7b6b14a |
children | cc2e8f3d4412 |
comparison
equal
deleted
inserted
replaced
706:5107a7b6b14a | 707:116b2d3f4554 |
---|---|
1085 return repo.verify() | 1085 return repo.verify() |
1086 | 1086 |
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, |
1140 [('0', 'print0', None, 'end records with NUL'), | 1140 [('0', 'print0', None, 'end records with NUL'), |
1141 ('f', 'fullpath', None, 'print complete paths'), | 1141 ('f', 'fullpath', None, 'print complete paths'), |
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'), |
1161 ('d', 'date', "", 'date code'), | 1161 ('d', 'date', "", 'date code'), |
1162 ('u', 'user', "", 'user'), | 1162 ('u', 'user', "", 'user'), |
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, |
1177 [('A', 'accesslog', '', 'access log file'), | 1177 [('A', 'accesslog', '', 'access log file'), |
1178 ('E', 'errorlog', '', 'error log file'), | 1178 ('E', 'errorlog', '', 'error log file'), |
1179 ('p', 'port', 8000, 'listen port'), | 1179 ('p', 'port', 8000, 'listen port'), |
1180 ('a', 'address', '', 'interface address'), | 1180 ('a', 'address', '', 'interface address'), |
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, |
1188 [('l', 'local', None, 'make the tag local'), | 1188 [('l', 'local', None, 'make the tag local'), |
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'), |
1196 "^update|up|checkout|co": | 1196 "^update|up|checkout|co": |
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 } |
1204 | 1204 |
1205 globalopts = [('v', 'verbose', None, 'verbose'), | 1205 globalopts = [('v', 'verbose', None, 'verbose'), |