2221 _('hg bundle FILE DEST')), |
2242 _('hg bundle FILE DEST')), |
2222 "cat": |
2243 "cat": |
2223 (cat, |
2244 (cat, |
2224 [('I', 'include', [], _('include names matching the given patterns')), |
2245 [('I', 'include', [], _('include names matching the given patterns')), |
2225 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2246 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2226 ('o', 'output', "", _('print output to file with formatted name')), |
2247 ('o', 'output', '', _('print output to file with formatted name')), |
2227 ('r', 'rev', '', _('print the given revision'))], |
2248 ('r', 'rev', '', _('print the given revision'))], |
2228 _('hg cat [OPTION]... FILE...')), |
2249 _('hg cat [OPTION]... FILE...')), |
2229 "^clone": |
2250 "^clone": |
2230 (clone, |
2251 (clone, |
2231 [('U', 'noupdate', None, _('do not update the new working directory')), |
2252 [('U', 'noupdate', None, _('do not update the new working directory')), |
2232 ('e', 'ssh', "", _('specify ssh command to use')), |
2253 ('e', 'ssh', '', _('specify ssh command to use')), |
2233 ('', 'pull', None, _('use pull protocol to copy metadata')), |
2254 ('', 'pull', None, _('use pull protocol to copy metadata')), |
2234 ('r', 'rev', [], |
2255 ('r', 'rev', [], |
2235 _('a changeset you would like to have after cloning')), |
2256 _('a changeset you would like to have after cloning')), |
2236 ('', 'remotecmd', "", |
2257 ('', 'remotecmd', '', |
2237 _('specify hg command to run on the remote side'))], |
2258 _('specify hg command to run on the remote side'))], |
2238 _('hg clone [OPTION]... SOURCE [DEST]')), |
2259 _('hg clone [OPTION]... SOURCE [DEST]')), |
2239 "^commit|ci": |
2260 "^commit|ci": |
2240 (commit, |
2261 (commit, |
2241 [('A', 'addremove', None, _('run addremove during commit')), |
2262 [('A', 'addremove', None, _('run addremove during commit')), |
2242 ('I', 'include', [], _('include names matching the given patterns')), |
2263 ('I', 'include', [], _('include names matching the given patterns')), |
2243 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2264 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2244 ('m', 'message', "", _('use <text> as commit message')), |
2265 ('m', 'message', '', _('use <text> as commit message')), |
2245 ('l', 'logfile', "", _('read the commit message from <file>')), |
2266 ('l', 'logfile', '', _('read the commit message from <file>')), |
2246 ('d', 'date', "", _('record datecode as commit date')), |
2267 ('d', 'date', '', _('record datecode as commit date')), |
2247 ('u', 'user', "", _('record user as commiter'))], |
2268 ('u', 'user', '', _('record user as commiter'))], |
2248 _('hg commit [OPTION]... [FILE]...')), |
2269 _('hg commit [OPTION]... [FILE]...')), |
2249 "copy|cp": (copy, |
2270 "copy|cp": |
2250 [('I', 'include', [], |
2271 (copy, |
2251 _('include names matching the given patterns')), |
2272 [('I', 'include', [], _('include names matching the given patterns')), |
2252 ('X', 'exclude', [], |
2273 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2253 _('exclude names matching the given patterns')), |
2274 ('A', 'after', None, _('record a copy that has already occurred')), |
2254 ('A', 'after', None, |
2275 ('f', 'force', None, |
2255 _('record a copy that has already occurred')), |
2276 _('forcibly copy over an existing managed file'))], |
2256 ('f', 'force', None, |
2277 _('hg copy [OPTION]... [SOURCE]... DEST')), |
2257 _('forcibly copy over an existing managed file'))], |
|
2258 _('hg copy [OPTION]... [SOURCE]... DEST')), |
|
2259 "debugancestor": (debugancestor, [], _('debugancestor INDEX REV1 REV2')), |
2278 "debugancestor": (debugancestor, [], _('debugancestor INDEX REV1 REV2')), |
2260 "debugcheckstate": (debugcheckstate, [], _('debugcheckstate')), |
2279 "debugcheckstate": (debugcheckstate, [], _('debugcheckstate')), |
2261 "debugconfig": (debugconfig, [], _('debugconfig')), |
2280 "debugconfig": (debugconfig, [], _('debugconfig')), |
2262 "debugsetparents": (debugsetparents, [], _('debugsetparents REV1 [REV2]')), |
2281 "debugsetparents": (debugsetparents, [], _('debugsetparents REV1 [REV2]')), |
2263 "debugstate": (debugstate, [], _('debugstate')), |
2282 "debugstate": (debugstate, [], _('debugstate')), |
2277 ('I', 'include', [], _('include names matching the given patterns')), |
2296 ('I', 'include', [], _('include names matching the given patterns')), |
2278 ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
2297 ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
2279 _('hg diff [-a] [-I] [-X] [-r REV1 [-r REV2]] [FILE]...')), |
2298 _('hg diff [-a] [-I] [-X] [-r REV1 [-r REV2]] [FILE]...')), |
2280 "^export": |
2299 "^export": |
2281 (export, |
2300 (export, |
2282 [('o', 'output', "", _('print output to file with formatted name')), |
2301 [('o', 'output', '', _('print output to file with formatted name')), |
2283 ('a', 'text', None, _('treat all files as text')), |
2302 ('a', 'text', None, _('treat all files as text')), |
2284 ('', 'switch-parent', None, _('diff against the second parent'))], |
2303 ('', 'switch-parent', None, _('diff against the second parent'))], |
2285 "hg export [-a] [-o OUTFILE] REV..."), |
2304 _('hg export [-a] [-o OUTFILE] REV...')), |
2286 "forget": |
2305 "forget": |
2287 (forget, |
2306 (forget, |
2288 [('I', 'include', [], _('include names matching the given patterns')), |
2307 [('I', 'include', [], _('include names matching the given patterns')), |
2289 ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
2308 ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
2290 "hg forget [OPTION]... FILE..."), |
2309 _('hg forget [OPTION]... FILE...')), |
2291 "grep": |
2310 "grep": |
2292 (grep, |
2311 (grep, |
2293 [('0', 'print0', None, _('end fields with NUL')), |
2312 [('0', 'print0', None, _('end fields with NUL')), |
2294 ('I', 'include', [], _('include names matching the given patterns')), |
2313 ('I', 'include', [], _('include names matching the given patterns')), |
2295 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2314 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2298 ('l', 'files-with-matches', None, |
2317 ('l', 'files-with-matches', None, |
2299 _('print only filenames and revs that match')), |
2318 _('print only filenames and revs that match')), |
2300 ('n', 'line-number', None, _('print matching line numbers')), |
2319 ('n', 'line-number', None, _('print matching line numbers')), |
2301 ('r', 'rev', [], _('search in given revision range')), |
2320 ('r', 'rev', [], _('search in given revision range')), |
2302 ('u', 'user', None, _('print user who committed change'))], |
2321 ('u', 'user', None, _('print user who committed change'))], |
2303 "hg grep [OPTION]... PATTERN [FILE]..."), |
2322 _('hg grep [OPTION]... PATTERN [FILE]...')), |
2304 "heads": |
2323 "heads": |
2305 (heads, |
2324 (heads, |
2306 [('b', 'branches', None, _('find branch info')), |
2325 [('b', 'branches', None, _('find branch info')), |
2307 ('r', 'rev', "", _('show only heads which are descendants of rev'))], |
2326 ('r', 'rev', '', _('show only heads which are descendants of rev'))], |
2308 _('hg heads [-b] [-r <rev>]')), |
2327 _('hg heads [-b] [-r <rev>]')), |
2309 "help": (help_, [], _('hg help [COMMAND]')), |
2328 "help": (help_, [], _('hg help [COMMAND]')), |
2310 "identify|id": (identify, [], _('hg identify')), |
2329 "identify|id": (identify, [], _('hg identify')), |
2311 "import|patch": |
2330 "import|patch": |
2312 (import_, |
2331 (import_, |
2313 [('p', 'strip', 1, |
2332 [('p', 'strip', 1, |
2314 _('directory strip option for patch. This has the same\n') + |
2333 _('directory strip option for patch. This has the same\n') + |
2315 _('meaning as the corresponding patch option')), |
2334 _('meaning as the corresponding patch option')), |
2316 ('f', 'force', None, |
2335 ('f', 'force', None, |
2317 _('skip check for outstanding uncommitted changes')), |
2336 _('skip check for outstanding uncommitted changes')), |
2318 ('b', 'base', "", _('base path'))], |
2337 ('b', 'base', '', _('base path'))], |
2319 "hg import [-f] [-p NUM] [-b BASE] PATCH..."), |
2338 _('hg import [-f] [-p NUM] [-b BASE] PATCH...')), |
2320 "incoming|in": (incoming, |
2339 "incoming|in": (incoming, |
2321 [('M', 'no-merges', None, _("do not show merges")), |
2340 [('M', 'no-merges', None, _('do not show merges')), |
2322 ('p', 'patch', None, _('show patch')), |
2341 ('p', 'patch', None, _('show patch')), |
2323 ('n', 'newest-first', None, _('show newest record first'))], |
2342 ('n', 'newest-first', None, _('show newest record first'))], |
2324 _('hg incoming [-p] [-n] [-M] [SOURCE]')), |
2343 _('hg incoming [-p] [-n] [-M] [SOURCE]')), |
2325 "^init": (init, [], _('hg init [DEST]')), |
2344 "^init": (init, [], _('hg init [DEST]')), |
2326 "locate": |
2345 "locate": |
2338 [('I', 'include', [], _('include names matching the given patterns')), |
2357 [('I', 'include', [], _('include names matching the given patterns')), |
2339 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2358 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2340 ('b', 'branch', None, _('show branches')), |
2359 ('b', 'branch', None, _('show branches')), |
2341 ('k', 'keyword', [], _('search for a keyword')), |
2360 ('k', 'keyword', [], _('search for a keyword')), |
2342 ('r', 'rev', [], _('show the specified revision or range')), |
2361 ('r', 'rev', [], _('show the specified revision or range')), |
2343 ('M', 'no-merges', None, _("do not show merges")), |
2362 ('M', 'no-merges', None, _('do not show merges')), |
2344 ('m', 'only-merges', None, _("show only merges")), |
2363 ('m', 'only-merges', None, _('show only merges')), |
2345 ('p', 'patch', None, _('show patch'))], |
2364 ('p', 'patch', None, _('show patch'))], |
2346 _('hg log [-I] [-X] [-r REV]... [-p] [FILE]')), |
2365 _('hg log [-I] [-X] [-r REV]... [-p] [FILE]')), |
2347 "manifest": (manifest, [], _('hg manifest [REV]')), |
2366 "manifest": (manifest, [], _('hg manifest [REV]')), |
2348 "outgoing|out": (outgoing, |
2367 "outgoing|out": (outgoing, |
2349 [('M', 'no-merges', None, _("do not show merges")), |
2368 [('M', 'no-merges', None, _('do not show merges')), |
2350 ('p', 'patch', None, _('show patch')), |
2369 ('p', 'patch', None, _('show patch')), |
2351 ('n', 'newest-first', None, _('show newest record first'))], |
2370 ('n', 'newest-first', None, _('show newest record first'))], |
2352 _('hg outgoing [-p] [-n] [-M] [DEST]')), |
2371 _('hg outgoing [-p] [-n] [-M] [DEST]')), |
2353 "^parents": (parents, [], _('hg parents [REV]')), |
2372 "^parents": (parents, [], _('hg parents [REV]')), |
2354 "paths": (paths, [], _('hg paths [NAME]')), |
2373 "paths": (paths, [], _('hg paths [NAME]')), |
2355 "^pull": |
2374 "^pull": |
2356 (pull, |
2375 (pull, |
2357 [('u', 'update', None, |
2376 [('u', 'update', None, |
2358 _('update the working directory to tip after pull')), |
2377 _('update the working directory to tip after pull')), |
2359 ('e', 'ssh', "", _('specify ssh command to use')), |
2378 ('e', 'ssh', '', _('specify ssh command to use')), |
2360 ('r', 'rev', [], _('a specific revision you would like to pull')), |
2379 ('r', 'rev', [], _('a specific revision you would like to pull')), |
2361 ('', 'remotecmd', "", |
2380 ('', 'remotecmd', '', |
2362 _('specify hg command to run on the remote side'))], |
2381 _('specify hg command to run on the remote side'))], |
2363 _('hg pull [-u] [-e FILE] [-r rev] [--remotecmd FILE] [SOURCE]')), |
2382 _('hg pull [-u] [-e FILE] [-r rev] [--remotecmd FILE] [SOURCE]')), |
2364 "^push": |
2383 "^push": |
2365 (push, |
2384 (push, |
2366 [('f', 'force', None, _('force push')), |
2385 [('f', 'force', None, _('force push')), |
2367 ('e', 'ssh', "", _('specify ssh command to use')), |
2386 ('e', 'ssh', '', _('specify ssh command to use')), |
2368 ('', 'remotecmd', "", |
2387 ('', 'remotecmd', '', |
2369 _('specify hg command to run on the remote side'))], |
2388 _('specify hg command to run on the remote side'))], |
2370 _('hg push [-f] [-e FILE] [--remotecmd FILE] [DEST]')), |
2389 _('hg push [-f] [-e FILE] [--remotecmd FILE] [DEST]')), |
2371 "rawcommit": |
2390 "rawcommit": |
2372 (rawcommit, |
2391 (rawcommit, |
2373 [('p', 'parent', [], _('parent')), |
2392 [('p', 'parent', [], _('parent')), |
2374 ('d', 'date', "", _('date code')), |
2393 ('d', 'date', '', _('date code')), |
2375 ('u', 'user', "", _('user')), |
2394 ('u', 'user', '', _('user')), |
2376 ('F', 'files', "", _('file list')), |
2395 ('F', 'files', '', _('file list')), |
2377 ('m', 'message', "", _('commit message')), |
2396 ('m', 'message', '', _('commit message')), |
2378 ('l', 'logfile', "", _('commit message file'))], |
2397 ('l', 'logfile', '', _('commit message file'))], |
2379 _('hg rawcommit [OPTION]... [FILE]...')), |
2398 _('hg rawcommit [OPTION]... [FILE]...')), |
2380 "recover": (recover, [], _("hg recover")), |
2399 "recover": (recover, [], _('hg recover')), |
2381 "^remove|rm": (remove, |
2400 "^remove|rm": |
2382 [('I', 'include', [], |
2401 (remove, |
2383 _('include names matching the given patterns')), |
2402 [('I', 'include', [], _('include names matching the given patterns')), |
2384 ('X', 'exclude', [], |
2403 ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
2385 _('exclude names matching the given patterns'))], |
2404 _('hg remove [OPTION]... FILE...')), |
2386 _("hg remove [OPTION]... FILE...")), |
2405 "rename|mv": |
2387 "rename|mv": (rename, |
2406 (rename, |
2388 [('I', 'include', [], |
2407 [('I', 'include', [], _('include names matching the given patterns')), |
2389 _('include names matching the given patterns')), |
2408 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2390 ('X', 'exclude', [], |
2409 ('A', 'after', None, _('record a rename that has already occurred')), |
2391 _('exclude names matching the given patterns')), |
2410 ('f', 'force', None, |
2392 ('A', 'after', None, |
2411 _('forcibly copy over an existing managed file'))], |
2393 _('record a rename that has already occurred')), |
2412 _('hg rename [OPTION]... [SOURCE]... DEST')), |
2394 ('f', 'force', None, |
|
2395 _('forcibly copy over an existing managed file'))], |
|
2396 _('hg rename [OPTION]... [SOURCE]... DEST')), |
|
2397 "^revert": |
2413 "^revert": |
2398 (revert, |
2414 (revert, |
2399 [('I', 'include', [], _('include names matching the given patterns')), |
2415 [('I', 'include', [], _('include names matching the given patterns')), |
2400 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2416 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2401 ("r", "rev", "", _("revision to revert to"))], |
2417 ('r', 'rev', '', _('revision to revert to'))], |
2402 _("hg revert [-n] [-r REV] [NAME]...")), |
2418 _('hg revert [-n] [-r REV] [NAME]...')), |
2403 "root": (root, [], _("hg root")), |
2419 "root": (root, [], _('hg root')), |
2404 "^serve": |
2420 "^serve": |
2405 (serve, |
2421 (serve, |
2406 [('A', 'accesslog', '', _('name of access log file to write to')), |
2422 [('A', 'accesslog', '', _('name of access log file to write to')), |
2407 ('E', 'errorlog', '', _('name of error log file to write to')), |
2423 ('E', 'errorlog', '', _('name of error log file to write to')), |
2408 ('p', 'port', 0, _('port to use (default: 8000)')), |
2424 ('p', 'port', 0, _('port to use (default: 8000)')), |
2409 ('a', 'address', '', _('address to use')), |
2425 ('a', 'address', '', _('address to use')), |
2410 ('n', 'name', "", |
2426 ('n', 'name', '', |
2411 _('name to show in web pages (default: working dir)')), |
2427 _('name to show in web pages (default: working dir)')), |
2412 ('', 'stdio', None, _('for remote clients')), |
2428 ('', 'stdio', None, _('for remote clients')), |
2413 ('t', 'templates', "", _('web templates to use')), |
2429 ('t', 'templates', '', _('web templates to use')), |
2414 ('', 'style', "", _('template style to use')), |
2430 ('', 'style', '', _('template style to use')), |
2415 ('6', 'ipv6', None, _('use IPv6 in addition to IPv4'))], |
2431 ('6', 'ipv6', None, _('use IPv6 in addition to IPv4'))], |
2416 _("hg serve [OPTION]...")), |
2432 _('hg serve [OPTION]...')), |
2417 "^status|st": |
2433 "^status|st": |
2418 (status, |
2434 (status, |
2419 [('m', 'modified', None, _('show only modified files')), |
2435 [('m', 'modified', None, _('show only modified files')), |
2420 ('a', 'added', None, _('show only added files')), |
2436 ('a', 'added', None, _('show only added files')), |
2421 ('r', 'removed', None, _('show only removed files')), |
2437 ('r', 'removed', None, _('show only removed files')), |
2423 ('n', 'no-status', None, _('hide status prefix')), |
2439 ('n', 'no-status', None, _('hide status prefix')), |
2424 ('0', 'print0', None, |
2440 ('0', 'print0', None, |
2425 _('end filenames with NUL, for use with xargs')), |
2441 _('end filenames with NUL, for use with xargs')), |
2426 ('I', 'include', [], _('include names matching the given patterns')), |
2442 ('I', 'include', [], _('include names matching the given patterns')), |
2427 ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
2443 ('X', 'exclude', [], _('exclude names matching the given patterns'))], |
2428 _("hg status [OPTION]... [FILE]...")), |
2444 _('hg status [OPTION]... [FILE]...')), |
2429 "tag": |
2445 "tag": |
2430 (tag, |
2446 (tag, |
2431 [('l', 'local', None, _('make the tag local')), |
2447 [('l', 'local', None, _('make the tag local')), |
2432 ('m', 'message', "", _('message for tag commit log entry')), |
2448 ('m', 'message', '', _('message for tag commit log entry')), |
2433 ('d', 'date', "", _('record datecode as commit date')), |
2449 ('d', 'date', '', _('record datecode as commit date')), |
2434 ('u', 'user', "", _('record user as commiter')), |
2450 ('u', 'user', '', _('record user as commiter')), |
2435 ('r', 'rev', "", _('revision to tag'))], |
2451 ('r', 'rev', '', _('revision to tag'))], |
2436 _('hg tag [OPTION]... NAME [REV]')), |
2452 _('hg tag [OPTION]... NAME [REV]')), |
2437 "tags": (tags, [], _('hg tags')), |
2453 "tags": (tags, [], _('hg tags')), |
2438 "tip": (tip, [], _('hg tip')), |
2454 "tip": (tip, [], _('hg tip')), |
2439 "unbundle": |
2455 "unbundle": |
2440 (unbundle, |
2456 (unbundle, |
2442 _('update the working directory to tip after unbundle'))], |
2458 _('update the working directory to tip after unbundle'))], |
2443 _('hg unbundle [-u] FILE')), |
2459 _('hg unbundle [-u] FILE')), |
2444 "undo": (undo, [], _('hg undo')), |
2460 "undo": (undo, [], _('hg undo')), |
2445 "^update|up|checkout|co": |
2461 "^update|up|checkout|co": |
2446 (update, |
2462 (update, |
2447 [('b', 'branch', "", _('checkout the head of a specific branch')), |
2463 [('b', 'branch', '', _('checkout the head of a specific branch')), |
2448 ('m', 'merge', None, _('allow merging of branches')), |
2464 ('m', 'merge', None, _('allow merging of branches')), |
2449 ('C', 'clean', None, _('overwrite locally modified files')), |
2465 ('C', 'clean', None, _('overwrite locally modified files')), |
2450 ('f', 'force', None, _('force a merge with outstanding changes'))], |
2466 ('f', 'force', None, _('force a merge with outstanding changes'))], |
2451 _('hg update [-b TAG] [-m] [-C] [-f] [REV]')), |
2467 _('hg update [-b TAG] [-m] [-C] [-f] [REV]')), |
2452 "verify": (verify, [], _('hg verify')), |
2468 "verify": (verify, [], _('hg verify')), |
2453 "version": (show_version, [], _('hg version')), |
2469 "version": (show_version, [], _('hg version')), |
2454 } |
2470 } |
2455 |
2471 |
2456 globalopts = [ |
2472 globalopts = [ |
2457 ('R', 'repository', "", _("repository root directory")), |
2473 ('R', 'repository', '', _('repository root directory')), |
2458 ('', 'cwd', '', _("change working directory")), |
2474 ('', 'cwd', '', _('change working directory')), |
2459 ('y', 'noninteractive', None, |
2475 ('y', 'noninteractive', None, |
2460 _("do not prompt, assume 'yes' for any required answers")), |
2476 _('do not prompt, assume \'yes\' for any required answers')), |
2461 ('q', 'quiet', None, _("suppress output")), |
2477 ('q', 'quiet', None, _('suppress output')), |
2462 ('v', 'verbose', None, _("enable additional output")), |
2478 ('v', 'verbose', None, _('enable additional output')), |
2463 ('', 'debug', None, _("enable debugging output")), |
2479 ('', 'debug', None, _('enable debugging output')), |
2464 ('', 'debugger', None, _("start debugger")), |
2480 ('', 'debugger', None, _('start debugger')), |
2465 ('', 'traceback', None, _("print traceback on exception")), |
2481 ('', 'traceback', None, _('print traceback on exception')), |
2466 ('', 'time', None, _("time how long the command takes")), |
2482 ('', 'time', None, _('time how long the command takes')), |
2467 ('', 'profile', None, _("print command execution profile")), |
2483 ('', 'profile', None, _('print command execution profile')), |
2468 ('', 'version', None, _("output version information and exit")), |
2484 ('', 'version', None, _('output version information and exit')), |
2469 ('h', 'help', None, _("display help and exit")), |
2485 ('h', 'help', None, _('display help and exit')), |
2470 ] |
2486 ] |
2471 |
2487 |
2472 norepo = ("clone init version help debugancestor debugconfig debugdata" |
2488 norepo = ("clone init version help debugancestor debugconfig debugdata" |
2473 " debugindex debugindexdot paths") |
2489 " debugindex debugindexdot paths") |
2474 |
2490 |