Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 757:7000825ef3ba
Updated help strings and test-help:
- options -I/-X: always at the end, don't include them in the synopsis.
- NAME is optional for hg revert
- other small changes.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 22 Jul 2005 08:47:35 +0100 |
parents | 87e2b094ab86 |
children | c5db9581bfa6 |
comparison
equal
deleted
inserted
replaced
756:5d79dfa5e98f | 757:7000825ef3ba |
---|---|
1076 | 1076 |
1077 table = { | 1077 table = { |
1078 "^add": (add, | 1078 "^add": (add, |
1079 [('I', 'include', [], 'include path in search'), | 1079 [('I', 'include', [], 'include path in search'), |
1080 ('X', 'exclude', [], 'exclude path from search')], | 1080 ('X', 'exclude', [], 'exclude path from search')], |
1081 "hg add [OPTIONS] [FILES]"), | 1081 "hg add [FILE]..."), |
1082 "addremove": (addremove, [], "hg addremove [FILES]"), | 1082 "addremove": (addremove, [], "hg addremove [FILE]..."), |
1083 "^annotate": | 1083 "^annotate": |
1084 (annotate, | 1084 (annotate, |
1085 [('I', 'include', [], 'include path in search'), | 1085 [('r', 'rev', '', 'revision'), |
1086 ('X', 'exclude', [], 'exclude path from search'), | |
1087 ('r', 'rev', '', 'revision'), | |
1088 ('u', 'user', None, 'show user'), | 1086 ('u', 'user', None, 'show user'), |
1089 ('n', 'number', None, 'show revision number'), | 1087 ('n', 'number', None, 'show revision number'), |
1090 ('c', 'changeset', None, 'show changeset')], | 1088 ('c', 'changeset', None, 'show changeset'), |
1089 ('I', 'include', [], 'include path in search'), | |
1090 ('X', 'exclude', [], 'exclude path from search')], | |
1091 'hg annotate [-r REV] [-u] [-n] [-c] FILE...'), | 1091 'hg annotate [-r REV] [-u] [-n] [-c] FILE...'), |
1092 "cat": | 1092 "cat": |
1093 (cat, | 1093 (cat, |
1094 [('o', 'output', "", 'output to file')], | 1094 [('o', 'output', "", 'output to file')], |
1095 'hg cat [-o OUTFILE] FILE [REV]'), | 1095 'hg cat [-o OUTFILE] FILE [REV]'), |
1099 'hg clone [-U] SOURCE [DEST]'), | 1099 'hg clone [-U] SOURCE [DEST]'), |
1100 "^commit|ci": | 1100 "^commit|ci": |
1101 (commit, | 1101 (commit, |
1102 [('A', 'addremove', None, 'run add/remove during commit'), | 1102 [('A', 'addremove', None, 'run add/remove during commit'), |
1103 ('m', 'text', "", 'commit message'), | 1103 ('m', 'text', "", 'commit message'), |
1104 ('t', 'text', "", 'commit message (deprecated)'), | 1104 ('t', 'text', "", 'commit message (deprecated: use -m)'), |
1105 ('l', 'logfile', "", 'commit text file'), | 1105 ('l', 'logfile', "", 'commit text file'), |
1106 ('d', 'date', "", 'date code'), | 1106 ('d', 'date', "", 'date code'), |
1107 ('u', 'user', "", 'user')], | 1107 ('u', 'user', "", 'user')], |
1108 'hg commit [OPTION]... [FILE]...'), | 1108 'hg commit [OPTION]... [FILE]...'), |
1109 "copy": (copy, [], 'hg copy SOURCE DEST'), | 1109 "copy": (copy, [], 'hg copy SOURCE DEST'), |
1111 "debugstate": (debugstate, [], 'debugstate'), | 1111 "debugstate": (debugstate, [], 'debugstate'), |
1112 "debugindex": (debugindex, [], 'debugindex FILE'), | 1112 "debugindex": (debugindex, [], 'debugindex FILE'), |
1113 "debugindexdot": (debugindexdot, [], 'debugindexdot FILE'), | 1113 "debugindexdot": (debugindexdot, [], 'debugindexdot FILE'), |
1114 "^diff": | 1114 "^diff": |
1115 (diff, | 1115 (diff, |
1116 [('I', 'include', [], 'include path in search'), | 1116 [('r', 'rev', [], 'revision'), |
1117 ('X', 'exclude', [], 'exclude path from search'), | 1117 ('I', 'include', [], 'include path in search'), |
1118 ('r', 'rev', [], 'revision')], | 1118 ('X', 'exclude', [], 'exclude path from search')], |
1119 'hg diff [-r REV1 [-r REV2]] [FILE]...'), | 1119 'hg diff [-r REV1 [-r REV2]] [FILE]...'), |
1120 "^export": | 1120 "^export": |
1121 (export, | 1121 (export, |
1122 [('o', 'output', "", 'output to file')], | 1122 [('o', 'output', "", 'output to file')], |
1123 "hg export [-o OUTFILE] REV..."), | 1123 "hg export [-o OUTFILE] REV..."), |
1131 ('b', 'base', "", 'base path')], | 1131 ('b', 'base', "", 'base path')], |
1132 "hg import [-p NUM] [-b BASE] PATCH..."), | 1132 "hg import [-p NUM] [-b BASE] PATCH..."), |
1133 "^init": (init, [], 'hg init'), | 1133 "^init": (init, [], 'hg init'), |
1134 "locate": | 1134 "locate": |
1135 (locate, | 1135 (locate, |
1136 [('0', 'print0', None, 'end records with NUL'), | 1136 [('r', 'rev', '', 'revision'), |
1137 ('0', 'print0', None, 'end records with NUL'), | |
1137 ('f', 'fullpath', None, 'print complete paths'), | 1138 ('f', 'fullpath', None, 'print complete paths'), |
1138 ('I', 'include', [], 'include path in search'), | 1139 ('I', 'include', [], 'include path in search'), |
1139 ('r', 'rev', '', 'revision'), | |
1140 ('X', 'exclude', [], 'exclude path from search')], | 1140 ('X', 'exclude', [], 'exclude path from search')], |
1141 'hg locate [OPTION]... [PATTERN]...'), | 1141 'hg locate [-r REV] [-f] [-0] [PATTERN]...'), |
1142 "^log|history": | 1142 "^log|history": |
1143 (log, | 1143 (log, |
1144 [('r', 'rev', [], 'revision'), | 1144 [('r', 'rev', [], 'revision'), |
1145 ('p', 'patch', None, 'show patch')], | 1145 ('p', 'patch', None, 'show patch')], |
1146 'hg log [-r REV1 [-r REV2]] [-p] [FILE]'), | 1146 'hg log [-r REV1 [-r REV2]] [-p] [FILE]'), |
1165 "^remove|rm": (remove, [], "hg remove FILE..."), | 1165 "^remove|rm": (remove, [], "hg remove FILE..."), |
1166 "^revert": | 1166 "^revert": |
1167 (revert, | 1167 (revert, |
1168 [("n", "nonrecursive", None, "don't recurse into subdirs"), | 1168 [("n", "nonrecursive", None, "don't recurse into subdirs"), |
1169 ("r", "rev", "", "revision")], | 1169 ("r", "rev", "", "revision")], |
1170 "hg revert [-n] [-r REV] NAME..."), | 1170 "hg revert [-n] [-r REV] [NAME]..."), |
1171 "root": (root, [], "hg root"), | 1171 "root": (root, [], "hg root"), |
1172 "^serve": | 1172 "^serve": |
1173 (serve, | 1173 (serve, |
1174 [('A', 'accesslog', '', 'access log file'), | 1174 [('A', 'accesslog', '', 'access log file'), |
1175 ('E', 'errorlog', '', 'error log file'), | 1175 ('E', 'errorlog', '', 'error log file'), |
1180 ('t', 'templates', "", 'template map')], | 1180 ('t', 'templates', "", 'template map')], |
1181 "hg serve [OPTION]..."), | 1181 "hg serve [OPTION]..."), |
1182 "^status": (status, | 1182 "^status": (status, |
1183 [('I', 'include', [], 'include path in search'), | 1183 [('I', 'include', [], 'include path in search'), |
1184 ('X', 'exclude', [], 'exclude path from search')], | 1184 ('X', 'exclude', [], 'exclude path from search')], |
1185 'hg status [OPTION]... [FILE]...'), | 1185 'hg status [FILE]...'), |
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 ('m', 'text', "", 'commit message'), | 1189 ('m', 'text', "", 'commit message'), |
1190 ('t', 'text', "", 'commit message (deprecated)'), | 1190 ('t', 'text', "", 'commit message (deprecated)'), |