##// END OF EJS Templates
help: show value requirement and multiple occurrence of options...
FUJIWARA Katsunori -
r11321:40c06bbf default
parent child Browse files
Show More
@@ -25,7 +25,11 b' def get_desc(docstr):'
25 25 return (shortdesc, desc)
26 26
27 27 def get_opts(opts):
28 for shortopt, longopt, default, desc in opts:
28 for opt in opts:
29 if len(opt) == 5:
30 shortopt, longopt, default, desc, optlabel = opt
31 else:
32 shortopt, longopt, default, desc = opt
29 33 allopts = []
30 34 if shortopt:
31 35 allopts.append("-%s" % shortopt)
@@ -334,9 +334,9 b' cmdtable = {'
334 334 "bookmarks":
335 335 (bookmark,
336 336 [('f', 'force', False, _('force')),
337 ('r', 'rev', '', _('revision')),
337 ('r', 'rev', '', _('revision'), _('REV')),
338 338 ('d', 'delete', False, _('delete a given bookmark')),
339 ('m', 'rename', '', _('rename a given bookmark'))],
339 ('m', 'rename', '', _('rename a given bookmark'), _('NAME'))],
340 340 _('hg bookmarks [-f] [-d] [-m NAME] [-r REV] [NAME]')),
341 341 }
342 342
@@ -38,7 +38,8 b' def children(ui, repo, file_=None, **opt'
38 38 cmdtable = {
39 39 "children":
40 40 (children,
41 [('r', 'rev', '', _('show children of the specified revision')),
41 [('r', 'rev', '',
42 _('show children of the specified revision'), _('REV')),
42 43 ] + templateopts,
43 44 _('hg children [-r REV] [FILE]')),
44 45 }
@@ -172,16 +172,19 b' def churn(ui, repo, *pats, **opts):'
172 172 cmdtable = {
173 173 "churn":
174 174 (churn,
175 [('r', 'rev', [], _('count rate for the specified revision or range')),
176 ('d', 'date', '', _('count rate for revisions matching date spec')),
175 [('r', 'rev', [],
176 _('count rate for the specified revision or range'), _('REV')),
177 ('d', 'date', '',
178 _('count rate for revisions matching date spec'), _('DATE')),
177 179 ('t', 'template', '{author|email}',
178 _('template to group changesets')),
180 _('template to group changesets'), _('TEMPLATE')),
179 181 ('f', 'dateformat', '',
180 _('strftime-compatible format for grouping by date')),
182 _('strftime-compatible format for grouping by date'), _('FORMAT')),
181 183 ('c', 'changesets', False, _('count rate by number of changesets')),
182 184 ('s', 'sort', False, _('sort by key (default: sort by count)')),
183 185 ('', 'diffstat', False, _('display added/removed lines separately')),
184 ('', 'aliases', '', _('file with email aliases')),
186 ('', 'aliases', '',
187 _('file with email aliases'), _('FILE')),
185 188 ] + commands.walkopts,
186 189 _("hg churn [-d DATE] [-r REV] [--aliases FILE] [FILE]")),
187 190 }
@@ -218,7 +218,8 b' def uisetup(ui):'
218 218 extensions.wrapfunction(dispatch, '_runcommand', colorcmd)
219 219
220 220 commands.globalopts.append(('', 'color', 'auto',
221 _("when to colorize (always, auto, or never)")))
221 _("when to colorize (always, auto, or never)"),
222 _('TYPE')))
222 223
223 224 try:
224 225 import re, pywintypes
@@ -258,13 +258,20 b' commands.norepo += " convert debugsvnlog'
258 258 cmdtable = {
259 259 "convert":
260 260 (convert,
261 [('A', 'authors', '', _('username mapping filename')),
262 ('d', 'dest-type', '', _('destination repository type')),
263 ('', 'filemap', '', _('remap file names using contents of file')),
264 ('r', 'rev', '', _('import up to target revision REV')),
265 ('s', 'source-type', '', _('source repository type')),
266 ('', 'splicemap', '', _('splice synthesized history into place')),
267 ('', 'branchmap', '', _('change branch names while converting')),
261 [('A', 'authors', '',
262 _('username mapping filename'), _('FILE')),
263 ('d', 'dest-type', '',
264 _('destination repository type'), _('TYPE')),
265 ('', 'filemap', '',
266 _('remap file names using contents of file'), _('FILE')),
267 ('r', 'rev', '',
268 _('import up to target revision REV'), _('REV')),
269 ('s', 'source-type', '',
270 _('source repository type'), _('TYPE')),
271 ('', 'splicemap', '',
272 _('splice synthesized history into place'), _('FILE')),
273 ('', 'branchmap', '',
274 _('change branch names while converting'), _('FILE')),
268 275 ('', 'branchsort', None, _('try to sort changesets by branches')),
269 276 ('', 'datesort', None, _('try to sort changesets by date')),
270 277 ('', 'sourcesort', None, _('preserve source changesets order'))],
@@ -259,10 +259,14 b' def extdiff(ui, repo, *pats, **opts):'
259 259 cmdtable = {
260 260 "extdiff":
261 261 (extdiff,
262 [('p', 'program', '', _('comparison program to run')),
263 ('o', 'option', [], _('pass option to comparison program')),
264 ('r', 'rev', [], _('revision')),
265 ('c', 'change', '', _('change made by revision')),
262 [('p', 'program', '',
263 _('comparison program to run'), _('CMD')),
264 ('o', 'option', [],
265 _('pass option to comparison program'), _('OPT')),
266 ('r', 'rev', [],
267 _('revision'), _('REV')),
268 ('c', 'change', '',
269 _('change made by revision'), _('REV')),
266 270 ] + commands.walkopts,
267 271 _('hg extdiff [OPT]... [FILE]...')),
268 272 }
@@ -138,7 +138,8 b" def fetch(ui, repo, source='default', **"
138 138 cmdtable = {
139 139 'fetch':
140 140 (fetch,
141 [('r', 'rev', [], _('a specific revision you would like to pull')),
141 [('r', 'rev', [],
142 _('a specific revision you would like to pull'), _('REV')),
142 143 ('e', 'edit', None, _('edit commit message')),
143 144 ('', 'force-editor', None, _('edit commit message (DEPRECATED)')),
144 145 ('', 'switch-parent', None, _('switch parents when merging')),
@@ -276,8 +276,10 b' cmdtable = {'
276 276 [('l', 'local', None, _('make the signature local')),
277 277 ('f', 'force', None, _('sign even if the sigfile is modified')),
278 278 ('', 'no-commit', None, _('do not commit the sigfile after signing')),
279 ('k', 'key', '', _('the key id to sign with')),
280 ('m', 'message', '', _('commit message')),
279 ('k', 'key', '',
280 _('the key id to sign with'), _('ID')),
281 ('m', 'message', '',
282 _('commit message'), _('TEXT')),
281 283 ] + commands.commitopts2,
282 284 _('hg sign [OPTION]... [REVISION]...')),
283 285 "sigcheck": (check, [], _('hg sigcheck REVISION')),
@@ -370,9 +370,11 b' def _wrapcmd(ui, cmd, table, wrapfn):'
370 370 cmdtable = {
371 371 "glog":
372 372 (graphlog,
373 [('l', 'limit', '', _('limit number of changes displayed')),
373 [('l', 'limit', '',
374 _('limit number of changes displayed'), _('NUM')),
374 375 ('p', 'patch', False, _('show patch')),
375 ('r', 'rev', [], _('show the specified revision or range')),
376 ('r', 'rev', [],
377 _('show the specified revision or range'), _('REV')),
376 378 ] + templateopts,
377 379 _('hg glog [OPTION]... [FILE]')),
378 380 }
@@ -314,7 +314,8 b' def view(ui, repo, *etc, **opts):'
314 314 cmdtable = {
315 315 "^view":
316 316 (view,
317 [('l', 'limit', '', _('limit number of changes displayed'))],
317 [('l', 'limit', '',
318 _('limit number of changes displayed'), _('NUM'))],
318 319 _('hg view [-l LIMIT] [REVRANGE]')),
319 320 "debug-diff-tree":
320 321 (difftree,
@@ -79,8 +79,11 b' cmdtable = {'
79 79 '^inserve':
80 80 (serve,
81 81 [('d', 'daemon', None, _('run server in background')),
82 ('', 'daemon-pipefds', '', _('used internally by daemon mode')),
83 ('t', 'idle-timeout', '', _('minutes to sit idle before exiting')),
84 ('', 'pid-file', '', _('name of file to write process ID to'))],
82 ('', 'daemon-pipefds', '',
83 _('used internally by daemon mode'), _('NUM')),
84 ('t', 'idle-timeout', '',
85 _('minutes to sit idle before exiting'), _('NUM')),
86 ('', 'pid-file', '',
87 _('name of file to write process ID to'), _('FILE'))],
85 88 _('hg inserve [OPTION]...')),
86 89 }
@@ -559,7 +559,8 b' cmdtable = {'
559 559 'kwdemo':
560 560 (demo,
561 561 [('d', 'default', None, _('show default keyword template maps')),
562 ('f', 'rcfile', '', _('read maps from rcfile'))],
562 ('f', 'rcfile', '',
563 _('read maps from rcfile'), _('FILE'))],
563 564 _('hg kwdemo [-d] [-f RCFILE] [TEMPLATEMAP]...')),
564 565 'kwexpand': (expand, commands.walkopts,
565 566 _('hg kwexpand [OPTION]... [FILE]...')),
@@ -2835,7 +2835,8 b' cmdtable = {'
2835 2835 ('U', 'noupdate', None, _('do not update the new working directories')),
2836 2836 ('', 'uncompressed', None,
2837 2837 _('use uncompressed transfer (fast over LAN)')),
2838 ('p', 'patches', '', _('location of source patch repository')),
2838 ('p', 'patches', '',
2839 _('location of source patch repository'), _('REPO')),
2839 2840 ] + commands.remoteopts,
2840 2841 _('hg qclone [OPTION]... SOURCE [DEST]')),
2841 2842 "qcommit|qci":
@@ -2849,7 +2850,8 b' cmdtable = {'
2849 2850 "qdelete|qremove|qrm":
2850 2851 (delete,
2851 2852 [('k', 'keep', None, _('keep patch file')),
2852 ('r', 'rev', [], _('stop managing a revision (DEPRECATED)'))],
2853 ('r', 'rev', [],
2854 _('stop managing a revision (DEPRECATED)'), _('REV'))],
2853 2855 _('hg qdelete [-k] [-r REV]... [PATCH]...')),
2854 2856 'qfold':
2855 2857 (fold,
@@ -2870,9 +2872,11 b' cmdtable = {'
2870 2872 "qimport":
2871 2873 (qimport,
2872 2874 [('e', 'existing', None, _('import file in patch directory')),
2873 ('n', 'name', '', _('name of patch file')),
2875 ('n', 'name', '',
2876 _('name of patch file'), _('NAME')),
2874 2877 ('f', 'force', None, _('overwrite existing files')),
2875 ('r', 'rev', [], _('place existing revisions under mq control')),
2878 ('r', 'rev', [],
2879 _('place existing revisions under mq control'), _('REV')),
2876 2880 ('g', 'git', None, _('use git extended diff format')),
2877 2881 ('P', 'push', None, _('qpush after importing'))],
2878 2882 _('hg qimport [-e] [-n NAME] [-f] [-g] [-P] [-r REV]... FILE...')),
@@ -2886,9 +2890,11 b' cmdtable = {'
2886 2890 ('f', 'force', None, _('import uncommitted changes (DEPRECATED)')),
2887 2891 ('g', 'git', None, _('use git extended diff format')),
2888 2892 ('U', 'currentuser', None, _('add "From: <current user>" to patch')),
2889 ('u', 'user', '', _('add "From: <given user>" to patch')),
2893 ('u', 'user', '',
2894 _('add "From: <USER>" to patch'), _('USER')),
2890 2895 ('D', 'currentdate', None, _('add "Date: <current date>" to patch')),
2891 ('d', 'date', '', _('add "Date: <given date>" to patch'))
2896 ('d', 'date', '',
2897 _('add "Date: <DATE>" to patch'), _('DATE'))
2892 2898 ] + commands.walkopts + commands.commitopts,
2893 2899 _('hg qnew [-e] [-m TEXT] [-l FILE] PATCH [FILE]...')),
2894 2900 "qnext": (next, [] + seriesopts, _('hg qnext [-s]')),
@@ -2896,7 +2902,8 b' cmdtable = {'
2896 2902 "^qpop":
2897 2903 (pop,
2898 2904 [('a', 'all', None, _('pop all patches')),
2899 ('n', 'name', '', _('queue name to pop (DEPRECATED)')),
2905 ('n', 'name', '',
2906 _('queue name to pop (DEPRECATED)'), _('NAME')),
2900 2907 ('f', 'force', None, _('forget any local changes to patched files'))],
2901 2908 _('hg qpop [-a] [-n NAME] [-f] [PATCH | INDEX]')),
2902 2909 "^qpush":
@@ -2905,7 +2912,8 b' cmdtable = {'
2905 2912 ('l', 'list', None, _('list patch name in commit text')),
2906 2913 ('a', 'all', None, _('apply all patches')),
2907 2914 ('m', 'merge', None, _('merge from another queue (DEPRECATED)')),
2908 ('n', 'name', '', _('merge queue name (DEPRECATED)')),
2915 ('n', 'name', '',
2916 _('merge queue name (DEPRECATED)'), _('NAME')),
2909 2917 ('', 'move', None, _('reorder patch series and apply only the patch'))],
2910 2918 _('hg qpush [-f] [-l] [-a] [-m] [-n NAME] [--move] [PATCH | INDEX]')),
2911 2919 "^qrefresh":
@@ -2917,11 +2925,11 b' cmdtable = {'
2917 2925 ('U', 'currentuser', None,
2918 2926 _('add/update author field in patch with current user')),
2919 2927 ('u', 'user', '',
2920 _('add/update author field in patch with given user')),
2928 _('add/update author field in patch with given user'), _('USER')),
2921 2929 ('D', 'currentdate', None,
2922 2930 _('add/update date field in patch with current date')),
2923 2931 ('d', 'date', '',
2924 _('add/update date field in patch with given date'))
2932 _('add/update date field in patch with given date'), _('DATE'))
2925 2933 ] + commands.walkopts + commands.commitopts,
2926 2934 _('hg qrefresh [-I] [-X] [-e] [-m TEXT] [-l FILE] [-s] [FILE]...')),
2927 2935 'qrename|qmv':
@@ -2934,7 +2942,8 b' cmdtable = {'
2934 2942 "qsave":
2935 2943 (save,
2936 2944 [('c', 'copy', None, _('copy patch directory')),
2937 ('n', 'name', '', _('copy directory name')),
2945 ('n', 'name', '',
2946 _('copy directory name'), _('NAME')),
2938 2947 ('e', 'empty', None, _('clear queue status file')),
2939 2948 ('f', 'force', None, _('force copy'))] + commands.commitopts,
2940 2949 _('hg qsave [-m TEXT] [-l FILE] [-c] [-n NAME] [-e] [-f]')),
@@ -518,14 +518,16 b' cmdtable = {'
518 518 ('b', 'bundle', None,
519 519 _('send changes not in target as a binary bundle')),
520 520 ('', 'bundlename', 'bundle',
521 _('name of the bundle attachment file')),
522 ('r', 'rev', [], _('a revision to send')),
521 _('name of the bundle attachment file'), _('NAME')),
522 ('r', 'rev', [],
523 _('a revision to send'), _('REV')),
523 524 ('', 'force', None,
524 525 _('run even when remote repository is unrelated '
525 526 '(with -b/--bundle)')),
526 527 ('', 'base', [],
527 528 _('a base changeset to specify instead of a destination '
528 '(with -b/--bundle)')),
529 '(with -b/--bundle)'),
530 _('REV')),
529 531 ('', 'intro', None,
530 532 _('send an introduction email for a single patch')),
531 533 ] + emailopts + commands.remoteopts,
@@ -538,10 +538,14 b' cmdtable = {'
538 538 "rebase":
539 539 (rebase,
540 540 [
541 ('s', 'source', '', _('rebase from the specified changeset')),
542 ('b', 'base', '', _('rebase from the base of the specified changeset '
543 '(up to greatest common ancestor of base and dest)')),
544 ('d', 'dest', '', _('rebase onto the specified changeset')),
541 ('s', 'source', '',
542 _('rebase from the specified changeset'), _('REV')),
543 ('b', 'base', '',
544 _('rebase from the base of the specified changeset '
545 '(up to greatest common ancestor of base and dest)'),
546 _('REV')),
547 ('d', 'dest', '',
548 _('rebase onto the specified changeset'), _('REV')),
545 549 ('', 'collapse', False, _('collapse the rebased changesets')),
546 550 ('', 'keep', False, _('keep original changesets')),
547 551 ('', 'keepbranches', False, _('keep original branch names')),
@@ -592,15 +592,20 b' def transplant(ui, repo, *revs, **opts):'
592 592 cmdtable = {
593 593 "transplant":
594 594 (transplant,
595 [('s', 'source', '', _('pull patches from REPOSITORY')),
596 ('b', 'branch', [], _('pull patches from branch BRANCH')),
595 [('s', 'source', '',
596 _('pull patches from REPO'), _('REPO')),
597 ('b', 'branch', [],
598 _('pull patches from branch BRANCH'), _('BRANCH')),
597 599 ('a', 'all', None, _('pull all changesets up to BRANCH')),
598 ('p', 'prune', [], _('skip over REV')),
599 ('m', 'merge', [], _('merge at REV')),
600 ('p', 'prune', [],
601 _('skip over REV'), _('REV')),
602 ('m', 'merge', [],
603 _('merge at REV'), _('REV')),
600 604 ('', 'log', None, _('append transplant info to log message')),
601 605 ('c', 'continue', None, _('continue last transplant session '
602 606 'after repair')),
603 ('', 'filter', '', _('filter changesets through FILTER'))],
604 _('hg transplant [-s REPOSITORY] [-b BRANCH [-a]] [-p REV] '
607 ('', 'filter', '',
608 _('filter changesets through command'), _('CMD'))],
609 _('hg transplant [-s REPO] [-b BRANCH [-a]] [-p REV] '
605 610 '[-m REV] [REV]...'))
606 611 }
@@ -1829,17 +1829,39 b' def help_(ui, name=None, with_version=Fa'
1829 1829
1830 1830 # list all option lists
1831 1831 opt_output = []
1832 multioccur = False
1832 1833 for title, options in option_lists:
1833 1834 opt_output.append(("\n%s" % title, None))
1834 for shortopt, longopt, default, desc in options:
1835 for option in options:
1836 if len(option) == 5:
1837 shortopt, longopt, default, desc, optlabel = option
1838 else:
1839 shortopt, longopt, default, desc = option
1840 optlabel = _("VALUE") # default label
1841
1835 1842 if _("DEPRECATED") in desc and not ui.verbose:
1836 1843 continue
1837 opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt,
1838 longopt and " --%s" % longopt),
1844 if isinstance(default, list):
1845 numqualifier = " %s [+]" % optlabel
1846 multioccur = True
1847 elif (default is not None) and not isinstance(default, bool):
1848 numqualifier = " %s" % optlabel
1849 else:
1850 numqualifier = ""
1851 opt_output.append(("%2s%s" %
1852 (shortopt and "-%s" % shortopt,
1853 longopt and " --%s%s" %
1854 (longopt, numqualifier)),
1839 1855 "%s%s" % (desc,
1840 1856 default
1841 1857 and _(" (default: %s)") % default
1842 1858 or "")))
1859 if multioccur:
1860 msg = _("\n[+] marked option can be specified multiple times")
1861 if ui.verbose and name != 'shortlist':
1862 opt_output.append((msg, ()))
1863 else:
1864 opt_output.insert(-1, (msg, ()))
1843 1865
1844 1866 if not name:
1845 1867 ui.write(_("\nadditional help topics:\n\n"))
@@ -3612,19 +3634,23 b' def version_(ui):'
3612 3634
3613 3635 globalopts = [
3614 3636 ('R', 'repository', '',
3615 _('repository root directory or name of overlay bundle file')),
3616 ('', 'cwd', '', _('change working directory')),
3637 _('repository root directory or name of overlay bundle file'),
3638 _('REPO')),
3639 ('', 'cwd', '',
3640 _('change working directory'), _('DIR')),
3617 3641 ('y', 'noninteractive', None,
3618 3642 _('do not prompt, assume \'yes\' for any required answers')),
3619 3643 ('q', 'quiet', None, _('suppress output')),
3620 3644 ('v', 'verbose', None, _('enable additional output')),
3621 3645 ('', 'config', [],
3622 _('set/override config option (use \'section.name=value\')')),
3646 _('set/override config option (use \'section.name=value\')'),
3647 _('CONFIG')),
3623 3648 ('', 'debug', None, _('enable debugging output')),
3624 3649 ('', 'debugger', None, _('start debugger')),
3625 ('', 'encoding', encoding.encoding, _('set the charset encoding')),
3650 ('', 'encoding', encoding.encoding, _('set the charset encoding'),
3651 _('ENCODE')),
3626 3652 ('', 'encodingmode', encoding.encodingmode,
3627 _('set the charset encoding mode')),
3653 _('set the charset encoding mode'), _('MODE')),
3628 3654 ('', 'traceback', None, _('always print a traceback on exception')),
3629 3655 ('', 'time', None, _('time how long the command takes')),
3630 3656 ('', 'profile', None, _('print command execution profile')),
@@ -3636,34 +3662,45 b" dryrunopts = [('n', 'dry-run', None,"
3636 3662 _('do not perform actions, just print output'))]
3637 3663
3638 3664 remoteopts = [
3639 ('e', 'ssh', '', _('specify ssh command to use')),
3640 ('', 'remotecmd', '', _('specify hg command to run on the remote side')),
3665 ('e', 'ssh', '',
3666 _('specify ssh command to use'), _('CMD')),
3667 ('', 'remotecmd', '',
3668 _('specify hg command to run on the remote side'), _('CMD')),
3641 3669 ]
3642 3670
3643 3671 walkopts = [
3644 ('I', 'include', [], _('include names matching the given patterns')),
3645 ('X', 'exclude', [], _('exclude names matching the given patterns')),
3672 ('I', 'include', [],
3673 _('include names matching the given patterns'), _('PATTERN')),
3674 ('X', 'exclude', [],
3675 _('exclude names matching the given patterns'), _('PATTERN')),
3646 3676 ]
3647 3677
3648 3678 commitopts = [
3649 ('m', 'message', '', _('use <text> as commit message')),
3650 ('l', 'logfile', '', _('read commit message from <file>')),
3679 ('m', 'message', '',
3680 _('use text as commit message'), _('TEXT')),
3681 ('l', 'logfile', '',
3682 _('read commit message from file'), _('FILE')),
3651 3683 ]
3652 3684
3653 3685 commitopts2 = [
3654 ('d', 'date', '', _('record datecode as commit date')),
3655 ('u', 'user', '', _('record the specified user as committer')),
3686 ('d', 'date', '',
3687 _('record datecode as commit date'), _('DATE')),
3688 ('u', 'user', '',
3689 _('record the specified user as committer'), _('USER')),
3656 3690 ]
3657 3691
3658 3692 templateopts = [
3659 ('', 'style', '', _('display using template map file')),
3660 ('', 'template', '', _('display with template')),
3693 ('', 'style', '',
3694 _('display using template map file'), _('STYLE')),
3695 ('', 'template', '',
3696 _('display with template'), _('TEMPLATE')),
3661 3697 ]
3662 3698
3663 3699 logopts = [
3664 3700 ('p', 'patch', None, _('show patch')),
3665 3701 ('g', 'git', None, _('use git extended diff format')),
3666 ('l', 'limit', '', _('limit number of changes displayed')),
3702 ('l', 'limit', '',
3703 _('limit number of changes displayed'), _('NUM')),
3667 3704 ('M', 'no-merges', None, _('do not show merges')),
3668 3705 ('', 'stat', None, _('output diffstat-style summary of changes')),
3669 3706 ] + templateopts
@@ -3683,13 +3720,14 b' diffopts2 = ['
3683 3720 _('ignore changes in the amount of white space')),
3684 3721 ('B', 'ignore-blank-lines', None,
3685 3722 _('ignore changes whose lines are all blank')),
3686 ('U', 'unified', '', _('number of lines of context to show')),
3723 ('U', 'unified', '',
3724 _('number of lines of context to show'), _('NUM')),
3687 3725 ('', 'stat', None, _('output diffstat-style summary of changes')),
3688 3726 ]
3689 3727
3690 3728 similarityopts = [
3691 3729 ('s', 'similarity', '',
3692 _('guess renamed files by similarity (0<=s<=100)'))
3730 _('guess renamed files by similarity (0<=s<=100)'), _('SIMILARITY'))
3693 3731 ]
3694 3732
3695 3733 table = {
@@ -3699,7 +3737,8 b' table = {'
3699 3737 _('[OPTION]... [FILE]...')),
3700 3738 "^annotate|blame":
3701 3739 (annotate,
3702 [('r', 'rev', '', _('annotate the specified revision')),
3740 [('r', 'rev', '',
3741 _('annotate the specified revision'), _('REV')),
3703 3742 ('', 'follow', None,
3704 3743 _('follow copies/renames and list the filename (DEPRECATED)')),
3705 3744 ('', 'no-follow', None, _("don't follow copies and renames")),
@@ -3716,17 +3755,22 b' table = {'
3716 3755 "archive":
3717 3756 (archive,
3718 3757 [('', 'no-decode', None, _('do not pass files through decoders')),
3719 ('p', 'prefix', '', _('directory prefix for files in archive')),
3720 ('r', 'rev', '', _('revision to distribute')),
3721 ('t', 'type', '', _('type of distribution to create')),
3758 ('p', 'prefix', '',
3759 _('directory prefix for files in archive'), _('PREFIX')),
3760 ('r', 'rev', '',
3761 _('revision to distribute'), _('REV')),
3762 ('t', 'type', '',
3763 _('type of distribution to create'), _('TYPE')),
3722 3764 ] + walkopts,
3723 3765 _('[OPTION]... DEST')),
3724 3766 "backout":
3725 3767 (backout,
3726 3768 [('', 'merge', None,
3727 3769 _('merge with old dirstate parent after backout')),
3728 ('', 'parent', '', _('parent to choose when backing out merge')),
3729 ('r', 'rev', '', _('revision to backout')),
3770 ('', 'parent', '',
3771 _('parent to choose when backing out merge'), _('REV')),
3772 ('r', 'rev', '',
3773 _('revision to backout'), _('REV')),
3730 3774 ] + walkopts + commitopts + commitopts2,
3731 3775 _('[OPTION]... [-r] REV')),
3732 3776 "bisect":
@@ -3735,7 +3779,8 b' table = {'
3735 3779 ('g', 'good', False, _('mark changeset good')),
3736 3780 ('b', 'bad', False, _('mark changeset bad')),
3737 3781 ('s', 'skip', False, _('skip testing changeset')),
3738 ('c', 'command', '', _('use command to check changeset state')),
3782 ('c', 'command', '',
3783 _('use command to check changeset state'), _('CMD')),
3739 3784 ('U', 'noupdate', False, _('do not update to target'))],
3740 3785 _("[-gbsr] [-U] [-c CMD] [REV]")),
3741 3786 "branch":
@@ -3756,19 +3801,25 b' table = {'
3756 3801 [('f', 'force', None,
3757 3802 _('run even when the destination is unrelated')),
3758 3803 ('r', 'rev', [],
3759 _('a changeset intended to be added to the destination')),
3804 _('a changeset intended to be added to the destination'),
3805 _('REV')),
3760 3806 ('b', 'branch', [],
3761 _('a specific branch you would like to bundle')),
3807 _('a specific branch you would like to bundle'),
3808 _('BRANCH')),
3762 3809 ('', 'base', [],
3763 _('a base changeset assumed to be available at the destination')),
3810 _('a base changeset assumed to be available at the destination'),
3811 _('REV')),
3764 3812 ('a', 'all', None, _('bundle all changesets in the repository')),
3765 ('t', 'type', 'bzip2', _('bundle compression type to use')),
3813 ('t', 'type', 'bzip2',
3814 _('bundle compression type to use'), _('TYPE')),
3766 3815 ] + remoteopts,
3767 3816 _('[-f] [-t TYPE] [-a] [-r REV]... [--base REV]... FILE [DEST]')),
3768 3817 "cat":
3769 3818 (cat,
3770 [('o', 'output', '', _('print output to file with formatted name')),
3771 ('r', 'rev', '', _('print the given revision')),
3819 [('o', 'output', '',
3820 _('print output to file with formatted name'), _('FORMAT')),
3821 ('r', 'rev', '',
3822 _('print the given revision'), _('REV')),
3772 3823 ('', 'decode', None, _('apply any matching decode filter')),
3773 3824 ] + walkopts,
3774 3825 _('[OPTION]... FILE...')),
@@ -3777,11 +3828,11 b' table = {'
3777 3828 [('U', 'noupdate', None,
3778 3829 _('the clone will include an empty working copy (only a repository)')),
3779 3830 ('u', 'updaterev', '',
3780 _('revision, tag or branch to check out')),
3831 _('revision, tag or branch to check out'), _('REV')),
3781 3832 ('r', 'rev', [],
3782 _('include the specified changeset')),
3833 _('include the specified changeset'), _('REV')),
3783 3834 ('b', 'branch', [],
3784 _('clone only the specified branch')),
3835 _('clone only the specified branch'), _('BRANCH')),
3785 3836 ('', 'pull', None, _('use pull protocol to copy metadata')),
3786 3837 ('', 'uncompressed', None,
3787 3838 _('use uncompressed transfer (fast over LAN)')),
@@ -3820,11 +3871,13 b' table = {'
3820 3871 "debuginstall": (debuginstall, [], ''),
3821 3872 "debugrebuildstate":
3822 3873 (debugrebuildstate,
3823 [('r', 'rev', '', _('revision to rebuild to'))],
3874 [('r', 'rev', '',
3875 _('revision to rebuild to'), _('REV'))],
3824 3876 _('[-r REV] [REV]')),
3825 3877 "debugrename":
3826 3878 (debugrename,
3827 [('r', 'rev', '', _('revision to debug'))],
3879 [('r', 'rev', '',
3880 _('revision to debug'), _('REV'))],
3828 3881 _('[-r REV] FILE')),
3829 3882 "debugrevspec":
3830 3883 (debugrevspec, [], ('REVSPEC')),
@@ -3836,20 +3889,25 b' table = {'
3836 3889 _('[OPTION]...')),
3837 3890 "debugsub":
3838 3891 (debugsub,
3839 [('r', 'rev', '', _('revision to check'))],
3892 [('r', 'rev', '',
3893 _('revision to check'), _('REV'))],
3840 3894 _('[-r REV] [REV]')),
3841 3895 "debugwalk": (debugwalk, walkopts, _('[OPTION]... [FILE]...')),
3842 3896 "^diff":
3843 3897 (diff,
3844 [('r', 'rev', [], _('revision')),
3845 ('c', 'change', '', _('change made by revision'))
3898 [('r', 'rev', [],
3899 _('revision'), _('REV')),
3900 ('c', 'change', '',
3901 _('change made by revision'), _('REV'))
3846 3902 ] + diffopts + diffopts2 + walkopts,
3847 3903 _('[OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...')),
3848 3904 "^export":
3849 3905 (export,
3850 [('o', 'output', '', _('print output to file with formatted name')),
3906 [('o', 'output', '',
3907 _('print output to file with formatted name'), _('FORMAT')),
3851 3908 ('', 'switch-parent', None, _('diff against the second parent')),
3852 ('r', 'rev', [], _('revisions to export')),
3909 ('r', 'rev', [],
3910 _('revisions to export'), _('REV')),
3853 3911 ] + diffopts,
3854 3912 _('[OPTION]... [-o OUTFILESPEC] REV...')),
3855 3913 "^forget":
@@ -3867,14 +3925,16 b' table = {'
3867 3925 ('l', 'files-with-matches', None,
3868 3926 _('print only filenames and revisions that match')),
3869 3927 ('n', 'line-number', None, _('print matching line numbers')),
3870 ('r', 'rev', [], _('only search files changed within revision range')),
3928 ('r', 'rev', [],
3929 _('only search files changed within revision range'), _('REV')),
3871 3930 ('u', 'user', None, _('list the author (long with -v)')),
3872 3931 ('d', 'date', None, _('list the date (short with -q)')),
3873 3932 ] + walkopts,
3874 3933 _('[OPTION]... PATTERN [FILE]...')),
3875 3934 "heads":
3876 3935 (heads,
3877 [('r', 'rev', '', _('show only heads which are descendants of REV')),
3936 [('r', 'rev', '',
3937 _('show only heads which are descendants of REV'), _('REV')),
3878 3938 ('t', 'topo', False, _('show topological heads only')),
3879 3939 ('a', 'active', False,
3880 3940 _('show active branchheads only [DEPRECATED]')),
@@ -3885,7 +3945,8 b' table = {'
3885 3945 "help": (help_, [], _('[TOPIC]')),
3886 3946 "identify|id":
3887 3947 (identify,
3888 [('r', 'rev', '', _('identify the specified revision')),
3948 [('r', 'rev', '',
3949 _('identify the specified revision'), _('REV')),
3889 3950 ('n', 'num', None, _('show local revision number')),
3890 3951 ('i', 'id', None, _('show global revision id')),
3891 3952 ('b', 'branch', None, _('show branch')),
@@ -3895,8 +3956,10 b' table = {'
3895 3956 (import_,
3896 3957 [('p', 'strip', 1,
3897 3958 _('directory strip option for patch. This has the same '
3898 'meaning as the corresponding patch option')),
3899 ('b', 'base', '', _('base path')),
3959 'meaning as the corresponding patch option'),
3960 _('NUM')),
3961 ('b', 'base', '',
3962 _('base path'), _('PATH')),
3900 3963 ('f', 'force', None,
3901 3964 _('skip check for outstanding uncommitted changes')),
3902 3965 ('', 'no-commit', None,
@@ -3912,11 +3975,12 b' table = {'
3912 3975 [('f', 'force', None,
3913 3976 _('run even if remote repository is unrelated')),
3914 3977 ('n', 'newest-first', None, _('show newest record first')),
3915 ('', 'bundle', '', _('file to store the bundles into')),
3978 ('', 'bundle', '',
3979 _('file to store the bundles into'), _('FILE')),
3916 3980 ('r', 'rev', [],
3917 _('a remote changeset intended to be added')),
3981 _('a remote changeset intended to be added'), _('REV')),
3918 3982 ('b', 'branch', [],
3919 _('a specific branch you would like to pull')),
3983 _('a specific branch you would like to pull'), _('BRANCH')),
3920 3984 ] + logopts + remoteopts,
3921 3985 _('[-p] [-n] [-M] [-f] [-r REV]...'
3922 3986 ' [--bundle FILENAME] [SOURCE]')),
@@ -3926,7 +3990,8 b' table = {'
3926 3990 _('[-e CMD] [--remotecmd CMD] [DEST]')),
3927 3991 "locate":
3928 3992 (locate,
3929 [('r', 'rev', '', _('search the repository as it is in REV')),
3993 [('r', 'rev', '',
3994 _('search the repository as it is in REV'), _('REV')),
3930 3995 ('0', 'print0', None,
3931 3996 _('end filenames with NUL, for use with xargs')),
3932 3997 ('f', 'fullpath', None,
@@ -3940,29 +4005,36 b' table = {'
3940 4005 ' or file history across copies and renames')),
3941 4006 ('', 'follow-first', None,
3942 4007 _('only follow the first parent of merge changesets')),
3943 ('d', 'date', '', _('show revisions matching date spec')),
4008 ('d', 'date', '',
4009 _('show revisions matching date spec'), _('DATE')),
3944 4010 ('C', 'copies', None, _('show copied files')),
3945 ('k', 'keyword', [], _('do case-insensitive search for a keyword')),
3946 ('r', 'rev', [], _('show the specified revision or range')),
4011 ('k', 'keyword', [],
4012 _('do case-insensitive search for a given text'), _('TEXT')),
4013 ('r', 'rev', [],
4014 _('show the specified revision or range'), _('REV')),
3947 4015 ('', 'removed', None, _('include revisions where files were removed')),
3948 4016 ('m', 'only-merges', None, _('show only merges')),
3949 ('u', 'user', [], _('revisions committed by user')),
4017 ('u', 'user', [],
4018 _('revisions committed by user'), _('USER')),
3950 4019 ('', 'only-branch', [],
3951 _('show only changesets within the given named branch (DEPRECATED)')),
4020 _('show only changesets within the given named branch (DEPRECATED)'),
4021 _('BRANCH')),
3952 4022 ('b', 'branch', [],
3953 _('show changesets within the given named branch')),
4023 _('show changesets within the given named branch'), _('BRANCH')),
3954 4024 ('P', 'prune', [],
3955 _('do not display revision or any of its ancestors')),
4025 _('do not display revision or any of its ancestors'), _('REV')),
3956 4026 ] + logopts + walkopts,
3957 4027 _('[OPTION]... [FILE]')),
3958 4028 "manifest":
3959 4029 (manifest,
3960 [('r', 'rev', '', _('revision to display'))],
4030 [('r', 'rev', '',
4031 _('revision to display'), _('REV'))],
3961 4032 _('[-r REV]')),
3962 4033 "^merge":
3963 4034 (merge,
3964 4035 [('f', 'force', None, _('force a merge with outstanding changes')),
3965 ('r', 'rev', '', _('revision to merge')),
4036 ('r', 'rev', '',
4037 _('revision to merge'), _('REV')),
3966 4038 ('P', 'preview', None,
3967 4039 _('review revisions to merge (no merge is performed)'))],
3968 4040 _('[-P] [-f] [[-r] REV]')),
@@ -3971,15 +4043,17 b' table = {'
3971 4043 [('f', 'force', None,
3972 4044 _('run even when the destination is unrelated')),
3973 4045 ('r', 'rev', [],
3974 _('a changeset intended to be included in the destination')),
4046 _('a changeset intended to be included in the destination'),
4047 _('REV')),
3975 4048 ('n', 'newest-first', None, _('show newest record first')),
3976 4049 ('b', 'branch', [],
3977 _('a specific branch you would like to push')),
4050 _('a specific branch you would like to push'), _('BRANCH')),
3978 4051 ] + logopts + remoteopts,
3979 4052 _('[-M] [-p] [-n] [-f] [-r REV]... [DEST]')),
3980 4053 "parents":
3981 4054 (parents,
3982 [('r', 'rev', '', _('show parents of the specified revision')),
4055 [('r', 'rev', '',
4056 _('show parents of the specified revision'), _('REV')),
3983 4057 ] + templateopts,
3984 4058 _('[-r REV] [FILE]')),
3985 4059 "paths": (paths, [], _('[NAME]')),
@@ -3990,18 +4064,19 b' table = {'
3990 4064 ('f', 'force', None,
3991 4065 _('run even when remote repository is unrelated')),
3992 4066 ('r', 'rev', [],
3993 _('a remote changeset intended to be added')),
4067 _('a remote changeset intended to be added'), _('REV')),
3994 4068 ('b', 'branch', [],
3995 _('a specific branch you would like to pull')),
4069 _('a specific branch you would like to pull'), _('BRANCH')),
3996 4070 ] + remoteopts,
3997 4071 _('[-u] [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [SOURCE]')),
3998 4072 "^push":
3999 4073 (push,
4000 4074 [('f', 'force', None, _('force push')),
4001 4075 ('r', 'rev', [],
4002 _('a changeset intended to be included in the destination')),
4076 _('a changeset intended to be included in the destination'),
4077 _('REV')),
4003 4078 ('b', 'branch', [],
4004 _('a specific branch you would like to push')),
4079 _('a specific branch you would like to push'), _('BRANCH')),
4005 4080 ('', 'new-branch', False, _('allow pushing a new branch')),
4006 4081 ] + remoteopts,
4007 4082 _('[-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]')),
@@ -4032,8 +4107,10 b' table = {'
4032 4107 "revert":
4033 4108 (revert,
4034 4109 [('a', 'all', None, _('revert all changes when no arguments given')),
4035 ('d', 'date', '', _('tipmost revision matching date')),
4036 ('r', 'rev', '', _('revert to the specified revision')),
4110 ('d', 'date', '',
4111 _('tipmost revision matching date'), _('DATE')),
4112 ('r', 'rev', '',
4113 _('revert to the specified revision'), _('REV')),
4037 4114 ('', 'no-backup', None, _('do not save backup copies of files')),
4038 4115 ] + walkopts + dryrunopts,
4039 4116 _('[OPTION]... [-r REV] [NAME]...')),
@@ -4041,28 +4118,38 b' table = {'
4041 4118 "root": (root, []),
4042 4119 "^serve":
4043 4120 (serve,
4044 [('A', 'accesslog', '', _('name of access log file to write to')),
4121 [('A', 'accesslog', '',
4122 _('name of access log file to write to'), _('FILE')),
4045 4123 ('d', 'daemon', None, _('run server in background')),
4046 ('', 'daemon-pipefds', '', _('used internally by daemon mode')),
4047 ('E', 'errorlog', '', _('name of error log file to write to')),
4124 ('', 'daemon-pipefds', '',
4125 _('used internally by daemon mode'), _('NUM')),
4126 ('E', 'errorlog', '',
4127 _('name of error log file to write to'), _('FILE')),
4048 4128 # use string type, then we can check if something was passed
4049 ('p', 'port', '', _('port to listen on (default: 8000)')),
4129 ('p', 'port', '',
4130 _('port to listen on (default: 8000)'), _('PORT')),
4050 4131 ('a', 'address', '',
4051 _('address to listen on (default: all interfaces)')),
4132 _('address to listen on (default: all interfaces)'), _('ADDR')),
4052 4133 ('', 'prefix', '',
4053 _('prefix path to serve from (default: server root)')),
4134 _('prefix path to serve from (default: server root)'), _('PREFIX')),
4054 4135 ('n', 'name', '',
4055 _('name to show in web pages (default: working directory)')),
4056 ('', 'web-conf', '', _('name of the hgweb config file'
4057 ' (serve more than one repository)')),
4058 ('', 'webdir-conf', '', _('name of the hgweb config file'
4059 ' (DEPRECATED)')),
4060 ('', 'pid-file', '', _('name of file to write process ID to')),
4136 _('name to show in web pages (default: working directory)'),
4137 _('NAME')),
4138 ('', 'web-conf', '',
4139 _('name of the hgweb config file (serve more than one repository)'),
4140 _('FILE')),
4141 ('', 'webdir-conf', '',
4142 _('name of the hgweb config file (DEPRECATED)'), _('FILE')),
4143 ('', 'pid-file', '',
4144 _('name of file to write process ID to'), _('FILE')),
4061 4145 ('', 'stdio', None, _('for remote clients')),
4062 ('t', 'templates', '', _('web templates to use')),
4063 ('', 'style', '', _('template style to use')),
4146 ('t', 'templates', '',
4147 _('web templates to use'), _('TEMPLATE')),
4148 ('', 'style', '',
4149 _('template style to use'), _('STYLE')),
4064 4150 ('6', 'ipv6', None, _('use IPv6 in addition to IPv4')),
4065 ('', 'certificate', '', _('SSL certificate file'))],
4151 ('', 'certificate', '',
4152 _('SSL certificate file'), _('FILE'))],
4066 4153 _('[OPTION]...')),
4067 4154 "showconfig|debugconfig":
4068 4155 (showconfig,
@@ -4085,19 +4172,23 b' table = {'
4085 4172 ('C', 'copies', None, _('show source of copied files')),
4086 4173 ('0', 'print0', None,
4087 4174 _('end filenames with NUL, for use with xargs')),
4088 ('', 'rev', [], _('show difference from revision')),
4089 ('', 'change', '', _('list the changed files of a revision')),
4175 ('', 'rev', [],
4176 _('show difference from revision'), _('REV')),
4177 ('', 'change', '',
4178 _('list the changed files of a revision'), _('REV')),
4090 4179 ] + walkopts,
4091 4180 _('[OPTION]... [FILE]...')),
4092 4181 "tag":
4093 4182 (tag,
4094 4183 [('f', 'force', None, _('replace existing tag')),
4095 4184 ('l', 'local', None, _('make the tag local')),
4096 ('r', 'rev', '', _('revision to tag')),
4185 ('r', 'rev', '',
4186 _('revision to tag'), _('REV')),
4097 4187 ('', 'remove', None, _('remove a tag')),
4098 4188 # -l/--local is already there, commitopts cannot be used
4099 4189 ('e', 'edit', None, _('edit commit message')),
4100 ('m', 'message', '', _('use <text> as commit message')),
4190 ('m', 'message', '',
4191 _('use <text> as commit message'), _('TEXT')),
4101 4192 ] + commitopts2,
4102 4193 _('[-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...')),
4103 4194 "tags": (tags, [], ''),
@@ -4116,8 +4207,10 b' table = {'
4116 4207 (update,
4117 4208 [('C', 'clean', None, _('discard uncommitted changes (no backup)')),
4118 4209 ('c', 'check', None, _('check for uncommitted changes')),
4119 ('d', 'date', '', _('tipmost revision matching date')),
4120 ('r', 'rev', '', _('revision'))],
4210 ('d', 'date', '',
4211 _('tipmost revision matching date'), _('DATE')),
4212 ('r', 'rev', '',
4213 _('revision'), _('REV'))],
4121 4214 _('[-c] [-C] [-d DATE] [[-r] REV]')),
4122 4215 "verify": (verify, []),
4123 4216 "version": (version_, []),
@@ -43,6 +43,7 b' def fancyopts(args, options, state, gnu='
43 43 long option
44 44 default value
45 45 description
46 option value label(optional)
46 47
47 48 option types include:
48 49
@@ -59,7 +60,11 b' def fancyopts(args, options, state, gnu='
59 60 argmap = {}
60 61 defmap = {}
61 62
62 for short, name, default, comment in options:
63 for option in options:
64 if len(option) == 5:
65 short, name, default, comment, dummy = option
66 else:
67 short, name, default, comment = option
63 68 # convert opts to getopt format
64 69 oname = name
65 70 name = name.replace('-', '_')
@@ -220,16 +220,16 b' convert a foreign SCM repository to a Me'
220 220
221 221 options:
222 222
223 -A --authors username mapping filename
224 -d --dest-type destination repository type
225 --filemap remap file names using contents of file
226 -r --rev import up to target revision REV
227 -s --source-type source repository type
228 --splicemap splice synthesized history into place
229 --branchmap change branch names while converting
230 --branchsort try to sort changesets by branches
231 --datesort try to sort changesets by date
232 --sourcesort preserve source changesets order
223 -A --authors FILE username mapping filename
224 -d --dest-type TYPE destination repository type
225 --filemap FILE remap file names using contents of file
226 -r --rev REV import up to target revision REV
227 -s --source-type TYPE source repository type
228 --splicemap FILE splice synthesized history into place
229 --branchmap FILE change branch names while converting
230 --branchsort try to sort changesets by branches
231 --datesort try to sort changesets by date
232 --sourcesort preserve source changesets order
233 233
234 234 use "hg -v help convert" to show global options
235 235 adding a
@@ -21,11 +21,13 b' output the current or given revision of '
21 21
22 22 options:
23 23
24 -o --output print output to file with formatted name
25 -r --rev print the given revision
26 --decode apply any matching decode filter
27 -I --include include names matching the given patterns
28 -X --exclude exclude names matching the given patterns
24 -o --output FORMAT print output to file with formatted name
25 -r --rev REV print the given revision
26 --decode apply any matching decode filter
27 -I --include PATTERN [+] include names matching the given patterns
28 -X --exclude PATTERN [+] exclude names matching the given patterns
29
30 [+] marked option can be specified multiple times
29 31
30 32 use "hg -v help cat" to show global options
31 33 % [defaults]
@@ -17,11 +17,13 b" use 'echo' to diff repository (or select"
17 17
18 18 options:
19 19
20 -o --option pass option to comparison program
21 -r --rev revision
22 -c --change change made by revision
23 -I --include include names matching the given patterns
24 -X --exclude exclude names matching the given patterns
20 -o --option OPT [+] pass option to comparison program
21 -r --rev REV [+] revision
22 -c --change REV change made by revision
23 -I --include PATTERN [+] include names matching the given patterns
24 -X --exclude PATTERN [+] exclude names matching the given patterns
25
26 [+] marked option can be specified multiple times
25 27
26 28 use "hg -v help falabala" to show global options
27 29 diffing a.8a5febb7f867/a a.34eed99112ab/a
@@ -51,21 +51,24 b' list of commands:'
51 51 yet another foo command
52 52
53 53 global options:
54 -R --repository repository root directory or name of overlay bundle file
55 --cwd change working directory
56 -y --noninteractive do not prompt, assume 'yes' for any required answers
57 -q --quiet suppress output
58 -v --verbose enable additional output
59 --config set/override config option (use 'section.name=value')
60 --debug enable debugging output
61 --debugger start debugger
62 --encoding set the charset encoding (default: ascii)
63 --encodingmode set the charset encoding mode (default: strict)
64 --traceback always print a traceback on exception
65 --time time how long the command takes
66 --profile print command execution profile
67 --version output version information and exit
68 -h --help display help and exit
54 -R --repository REPO repository root directory or name of overlay bundle
55 file
56 --cwd DIR change working directory
57 -y --noninteractive do not prompt, assume 'yes' for any required answers
58 -q --quiet suppress output
59 -v --verbose enable additional output
60 --config CONFIG [+] set/override config option (use 'section.name=value')
61 --debug enable debugging output
62 --debugger start debugger
63 --encoding ENCODE set the charset encoding (default: ascii)
64 --encodingmode MODE set the charset encoding mode (default: strict)
65 --traceback always print a traceback on exception
66 --time time how long the command takes
67 --profile print command execution profile
68 --version output version information and exit
69 -h --help display help and exit
70
71 [+] marked option can be specified multiple times
69 72 % hg help --debug
70 73 debugextension extension - only debugcommands
71 74
@@ -77,21 +80,24 b' list of commands:'
77 80 yet another foo command
78 81
79 82 global options:
80 -R --repository repository root directory or name of overlay bundle file
81 --cwd change working directory
82 -y --noninteractive do not prompt, assume 'yes' for any required answers
83 -q --quiet suppress output
84 -v --verbose enable additional output
85 --config set/override config option (use 'section.name=value')
86 --debug enable debugging output
87 --debugger start debugger
88 --encoding set the charset encoding (default: ascii)
89 --encodingmode set the charset encoding mode (default: strict)
90 --traceback always print a traceback on exception
91 --time time how long the command takes
92 --profile print command execution profile
93 --version output version information and exit
94 -h --help display help and exit
83 -R --repository REPO repository root directory or name of overlay bundle
84 file
85 --cwd DIR change working directory
86 -y --noninteractive do not prompt, assume 'yes' for any required answers
87 -q --quiet suppress output
88 -v --verbose enable additional output
89 --config CONFIG [+] set/override config option (use 'section.name=value')
90 --debug enable debugging output
91 --debugger start debugger
92 --encoding ENCODE set the charset encoding (default: ascii)
93 --encodingmode MODE set the charset encoding mode (default: strict)
94 --traceback always print a traceback on exception
95 --time time how long the command takes
96 --profile print command execution profile
97 --version output version information and exit
98 -h --help display help and exit
99
100 [+] marked option can be specified multiple times
95 101 % issue811
96 102 % show extensions
97 103 debugissue811
@@ -217,21 +217,24 b' basic commands:'
217 217 update working directory (or switch revisions)
218 218
219 219 global options:
220 -R --repository repository root directory or name of overlay bundle file
221 --cwd change working directory
222 -y --noninteractive do not prompt, assume 'yes' for any required answers
223 -q --quiet suppress output
224 -v --verbose enable additional output
225 --config set/override config option (use 'section.name=value')
226 --debug enable debugging output
227 --debugger start debugger
228 --encoding set the charset encoding (default: ascii)
229 --encodingmode set the charset encoding mode (default: strict)
230 --traceback always print a traceback on exception
231 --time time how long the command takes
232 --profile print command execution profile
233 --version output version information and exit
234 -h --help display help and exit
220 -R --repository REPO repository root directory or name of overlay bundle
221 file
222 --cwd DIR change working directory
223 -y --noninteractive do not prompt, assume 'yes' for any required answers
224 -q --quiet suppress output
225 -v --verbose enable additional output
226 --config CONFIG [+] set/override config option (use 'section.name=value')
227 --debug enable debugging output
228 --debugger start debugger
229 --encoding ENCODE set the charset encoding (default: ascii)
230 --encodingmode MODE set the charset encoding mode (default: strict)
231 --traceback always print a traceback on exception
232 --time time how long the command takes
233 --profile print command execution profile
234 --version output version information and exit
235 -h --help display help and exit
236
237 [+] marked option can be specified multiple times
235 238
236 239 use "hg help" for the full list of commands
237 240 hg add [OPTION]... [FILE]...
@@ -249,9 +252,11 b' use "hg -v help add" to show verbose hel'
249 252
250 253 options:
251 254
252 -I --include include names matching the given patterns
253 -X --exclude exclude names matching the given patterns
254 -n --dry-run do not perform actions, just print output
255 -I --include PATTERN [+] include names matching the given patterns
256 -X --exclude PATTERN [+] exclude names matching the given patterns
257 -n --dry-run do not perform actions, just print output
258
259 [+] marked option can be specified multiple times
255 260
256 261 use "hg -v help add" to show global options
257 262 %% verbose help for add
@@ -280,26 +285,31 b' add the specified files on the next comm'
280 285
281 286 options:
282 287
283 -I --include include names matching the given patterns
284 -X --exclude exclude names matching the given patterns
285 -n --dry-run do not perform actions, just print output
288 -I --include PATTERN [+] include names matching the given patterns
289 -X --exclude PATTERN [+] exclude names matching the given patterns
290 -n --dry-run do not perform actions, just print output
286 291
287 292 global options:
288 -R --repository repository root directory or name of overlay bundle file
289 --cwd change working directory
290 -y --noninteractive do not prompt, assume 'yes' for any required answers
291 -q --quiet suppress output
292 -v --verbose enable additional output
293 --config set/override config option (use 'section.name=value')
294 --debug enable debugging output
295 --debugger start debugger
296 --encoding set the charset encoding (default: ascii)
297 --encodingmode set the charset encoding mode (default: strict)
298 --traceback always print a traceback on exception
299 --time time how long the command takes
300 --profile print command execution profile
301 --version output version information and exit
302 -h --help display help and exit
293 -R --repository REPO repository root directory or name of overlay bundle
294 file
295 --cwd DIR change working directory
296 -y --noninteractive do not prompt, assume 'yes' for any required
297 answers
298 -q --quiet suppress output
299 -v --verbose enable additional output
300 --config CONFIG [+] set/override config option (use
301 'section.name=value')
302 --debug enable debugging output
303 --debugger start debugger
304 --encoding ENCODE set the charset encoding (default: ascii)
305 --encodingmode MODE set the charset encoding mode (default: strict)
306 --traceback always print a traceback on exception
307 --time time how long the command takes
308 --profile print command execution profile
309 --version output version information and exit
310 -h --help display help and exit
311
312 [+] marked option can be specified multiple times
303 313 %% test help option with version option
304 314 Mercurial Distributed SCM (version xxx)
305 315
@@ -322,9 +332,11 b' use "hg -v help add" to show verbose hel'
322 332
323 333 options:
324 334
325 -I --include include names matching the given patterns
326 -X --exclude exclude names matching the given patterns
327 -n --dry-run do not perform actions, just print output
335 -I --include PATTERN [+] include names matching the given patterns
336 -X --exclude PATTERN [+] exclude names matching the given patterns
337 -n --dry-run do not perform actions, just print output
338
339 [+] marked option can be specified multiple times
328 340
329 341 use "hg -v help add" to show global options
330 342 hg add: option --skjdfks not recognized
@@ -343,9 +355,11 b' use "hg -v help add" to show verbose hel'
343 355
344 356 options:
345 357
346 -I --include include names matching the given patterns
347 -X --exclude exclude names matching the given patterns
348 -n --dry-run do not perform actions, just print output
358 -I --include PATTERN [+] include names matching the given patterns
359 -X --exclude PATTERN [+] exclude names matching the given patterns
360 -n --dry-run do not perform actions, just print output
361
362 [+] marked option can be specified multiple times
349 363
350 364 use "hg -v help add" to show global options
351 365 %% test ambiguous command help
@@ -401,8 +415,8 b' diff repository (or selected files)'
401 415
402 416 options:
403 417
404 -r --rev revision
405 -c --change change made by revision
418 -r --rev REV [+] revision
419 -c --change REV change made by revision
406 420 -a --text treat all files as text
407 421 -g --git use git extended diff format
408 422 --nodates omit dates from diff headers
@@ -411,10 +425,12 b' options:'
411 425 -w --ignore-all-space ignore white space when comparing lines
412 426 -b --ignore-space-change ignore changes in the amount of white space
413 427 -B --ignore-blank-lines ignore changes whose lines are all blank
414 -U --unified number of lines of context to show
428 -U --unified NUM number of lines of context to show
415 429 --stat output diffstat-style summary of changes
416 -I --include include names matching the given patterns
417 -X --exclude exclude names matching the given patterns
430 -I --include PATTERN [+] include names matching the given patterns
431 -X --exclude PATTERN [+] exclude names matching the given patterns
432
433 [+] marked option can be specified multiple times
418 434
419 435 use "hg -v help diff" to show global options
420 436 hg status [OPTION]... [FILE]...
@@ -457,21 +473,23 b' show changed files in the working direct'
457 473
458 474 options:
459 475
460 -A --all show status of all files
461 -m --modified show only modified files
462 -a --added show only added files
463 -r --removed show only removed files
464 -d --deleted show only deleted (but tracked) files
465 -c --clean show only files without changes
466 -u --unknown show only unknown (not tracked) files
467 -i --ignored show only ignored files
468 -n --no-status hide status prefix
469 -C --copies show source of copied files
470 -0 --print0 end filenames with NUL, for use with xargs
471 --rev show difference from revision
472 --change list the changed files of a revision
473 -I --include include names matching the given patterns
474 -X --exclude exclude names matching the given patterns
476 -A --all show status of all files
477 -m --modified show only modified files
478 -a --added show only added files
479 -r --removed show only removed files
480 -d --deleted show only deleted (but tracked) files
481 -c --clean show only files without changes
482 -u --unknown show only unknown (not tracked) files
483 -i --ignored show only ignored files
484 -n --no-status hide status prefix
485 -C --copies show source of copied files
486 -0 --print0 end filenames with NUL, for use with xargs
487 --rev REV [+] show difference from revision
488 --change REV list the changed files of a revision
489 -I --include PATTERN [+] include names matching the given patterns
490 -X --exclude PATTERN [+] exclude names matching the given patterns
491
492 [+] marked option can be specified multiple times
475 493
476 494 use "hg -v help status" to show global options
477 495 hg status [OPTION]... [FILE]...
@@ -32,16 +32,18 b' interactively record a new patch'
32 32
33 33 options:
34 34
35 -e --edit edit commit message
36 -g --git use git extended diff format
37 -U --currentuser add "From: <current user>" to patch
38 -u --user add "From: <given user>" to patch
39 -D --currentdate add "Date: <current date>" to patch
40 -d --date add "Date: <given date>" to patch
41 -I --include include names matching the given patterns
42 -X --exclude exclude names matching the given patterns
43 -m --message use <text> as commit message
44 -l --logfile read commit message from <file>
35 -e --edit edit commit message
36 -g --git use git extended diff format
37 -U --currentuser add "From: <current user>" to patch
38 -u --user USER add "From: <USER>" to patch
39 -D --currentdate add "Date: <current date>" to patch
40 -d --date DATE add "Date: <DATE>" to patch
41 -I --include PATTERN [+] include names matching the given patterns
42 -X --exclude PATTERN [+] exclude names matching the given patterns
43 -m --message TEXT use text as commit message
44 -l --logfile FILE read commit message from file
45
46 [+] marked option can be specified multiple times
45 47
46 48 use "hg -v help qrecord" to show global options
47 49 % base commit
@@ -28,14 +28,18 b' interactively select changes to commit'
28 28
29 29 options:
30 30
31 -A --addremove mark new/missing files as added/removed before committing
32 --close-branch mark a branch as closed, hiding it from the branch list
33 -I --include include names matching the given patterns
34 -X --exclude exclude names matching the given patterns
35 -m --message use <text> as commit message
36 -l --logfile read commit message from <file>
37 -d --date record datecode as commit date
38 -u --user record the specified user as committer
31 -A --addremove mark new/missing files as added/removed before
32 committing
33 --close-branch mark a branch as closed, hiding it from the branch
34 list
35 -I --include PATTERN [+] include names matching the given patterns
36 -X --exclude PATTERN [+] exclude names matching the given patterns
37 -m --message TEXT use text as commit message
38 -l --logfile FILE read commit message from file
39 -d --date DATE record datecode as commit date
40 -u --user USER record the specified user as committer
41
42 [+] marked option can be specified multiple times
39 43
40 44 use "hg -v help record" to show global options
41 45 % select no files
General Comments 0
You need to be logged in to leave comments. Login now