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' |
|
|
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 |
|
|
|
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', '', |
|
|
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', '', |
|
|
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', '', |
|
|
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', '', |
|
|
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', '', |
|
|
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', '', |
|
|
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', '', |
|
|
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', '', |
|
|
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', [], |
|
|
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' |
|
|
543 | '(up to greatest common ancestor of base and dest)')), | |
|
544 |
|
|
|
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', '', |
|
|
596 |
(' |
|
|
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', [], |
|
|
599 |
(' |
|
|
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 |
|
|
1831 | 1831 |
|
|
1832 | multioccur = False | |
|
1832 | 1833 |
|
|
1833 | 1834 |
|
|
1834 |
|
|
|
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 |
|
|
1836 | 1843 |
|
|
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 |
|
|
1840 | 1856 |
|
|
1841 | 1857 |
|
|
1842 | 1858 |
|
|
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 |
|
|
1845 | 1867 |
|
@@ -3612,19 +3634,23 b' def version_(ui):' | |||
|
3612 | 3634 | |
|
3613 | 3635 |
|
|
3614 | 3636 |
|
|
3615 |
|
|
|
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 |
|
|
3618 | 3642 |
|
|
3619 | 3643 |
|
|
3620 | 3644 |
|
|
3621 | 3645 |
|
|
3622 |
|
|
|
3646 | _('set/override config option (use \'section.name=value\')'), | |
|
3647 | _('CONFIG')), | |
|
3623 | 3648 |
|
|
3624 | 3649 |
|
|
3625 |
|
|
|
3650 | ('', 'encoding', encoding.encoding, _('set the charset encoding'), | |
|
3651 | _('ENCODE')), | |
|
3626 | 3652 |
|
|
3627 |
|
|
|
3653 | _('set the charset encoding mode'), _('MODE')), | |
|
3628 | 3654 |
|
|
3629 | 3655 |
|
|
3630 | 3656 |
|
@@ -3636,34 +3662,45 b" dryrunopts = [('n', 'dry-run', None," | |||
|
3636 | 3662 |
|
|
3637 | 3663 | |
|
3638 | 3664 |
|
|
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 |
|
|
3644 | ('I', 'include', [], _('include names matching the given patterns')), | |
|
3645 |
(' |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
3664 | 3700 |
|
|
3665 | 3701 |
|
|
3666 | ('l', 'limit', '', _('limit number of changes displayed')), | |
|
3702 | ('l', 'limit', '', | |
|
3703 | _('limit number of changes displayed'), _('NUM')), | |
|
3667 | 3704 |
|
|
3668 | 3705 |
|
|
3669 | 3706 |
|
@@ -3683,13 +3720,14 b' diffopts2 = [' | |||
|
3683 | 3720 |
|
|
3684 | 3721 |
|
|
3685 | 3722 |
|
|
3686 | ('U', 'unified', '', _('number of lines of context to show')), | |
|
3723 | ('U', 'unified', '', | |
|
3724 | _('number of lines of context to show'), _('NUM')), | |
|
3687 | 3725 |
|
|
3688 | 3726 |
|
|
3689 | 3727 | |
|
3690 | 3728 |
|
|
3691 | 3729 |
|
|
3692 |
|
|
|
3730 | _('guess renamed files by similarity (0<=s<=100)'), _('SIMILARITY')) | |
|
3693 | 3731 |
|
|
3694 | 3732 | |
|
3695 | 3733 |
|
@@ -3699,7 +3737,8 b' table = {' | |||
|
3699 | 3737 |
|
|
3700 | 3738 |
|
|
3701 | 3739 |
|
|
3702 | [('r', 'rev', '', _('annotate the specified revision')), | |
|
3740 | [('r', 'rev', '', | |
|
3741 | _('annotate the specified revision'), _('REV')), | |
|
3703 | 3742 |
|
|
3704 | 3743 |
|
|
3705 | 3744 |
|
@@ -3716,17 +3755,22 b' table = {' | |||
|
3716 | 3755 |
|
|
3717 | 3756 |
|
|
3718 | 3757 |
|
|
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 |
|
|
3723 | 3765 |
|
|
3724 | 3766 |
|
|
3725 | 3767 |
|
|
3726 | 3768 |
|
|
3727 | 3769 |
|
|
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 |
|
|
3731 | 3775 |
|
|
3732 | 3776 |
|
@@ -3735,7 +3779,8 b' table = {' | |||
|
3735 | 3779 |
|
|
3736 | 3780 |
|
|
3737 | 3781 |
|
|
3738 | ('c', 'command', '', _('use command to check changeset state')), | |
|
3782 | ('c', 'command', '', | |
|
3783 | _('use command to check changeset state'), _('CMD')), | |
|
3739 | 3784 |
|
|
3740 | 3785 |
|
|
3741 | 3786 |
|
@@ -3756,19 +3801,25 b' table = {' | |||
|
3756 | 3801 |
|
|
3757 | 3802 |
|
|
3758 | 3803 |
|
|
3759 |
|
|
|
3804 | _('a changeset intended to be added to the destination'), | |
|
3805 | _('REV')), | |
|
3760 | 3806 |
|
|
3761 |
|
|
|
3807 | _('a specific branch you would like to bundle'), | |
|
3808 | _('BRANCH')), | |
|
3762 | 3809 |
|
|
3763 |
|
|
|
3810 | _('a base changeset assumed to be available at the destination'), | |
|
3811 | _('REV')), | |
|
3764 | 3812 |
|
|
3765 |
|
|
|
3813 | ('t', 'type', 'bzip2', | |
|
3814 | _('bundle compression type to use'), _('TYPE')), | |
|
3766 | 3815 |
|
|
3767 | 3816 |
|
|
3768 | 3817 |
|
|
3769 | 3818 |
|
|
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 |
|
|
3773 | 3824 |
|
|
3774 | 3825 |
|
@@ -3777,11 +3828,11 b' table = {' | |||
|
3777 | 3828 |
|
|
3778 | 3829 |
|
|
3779 | 3830 |
|
|
3780 |
|
|
|
3831 | _('revision, tag or branch to check out'), _('REV')), | |
|
3781 | 3832 |
|
|
3782 |
|
|
|
3833 | _('include the specified changeset'), _('REV')), | |
|
3783 | 3834 |
|
|
3784 |
|
|
|
3835 | _('clone only the specified branch'), _('BRANCH')), | |
|
3785 | 3836 |
|
|
3786 | 3837 |
|
|
3787 | 3838 |
|
@@ -3820,11 +3871,13 b' table = {' | |||
|
3820 | 3871 |
|
|
3821 | 3872 |
|
|
3822 | 3873 |
|
|
3823 |
|
|
|
3874 | [('r', 'rev', '', | |
|
3875 | _('revision to rebuild to'), _('REV'))], | |
|
3824 | 3876 |
|
|
3825 | 3877 |
|
|
3826 | 3878 |
|
|
3827 |
|
|
|
3879 | [('r', 'rev', '', | |
|
3880 | _('revision to debug'), _('REV'))], | |
|
3828 | 3881 |
|
|
3829 | 3882 |
|
|
3830 | 3883 |
|
@@ -3836,20 +3889,25 b' table = {' | |||
|
3836 | 3889 |
|
|
3837 | 3890 |
|
|
3838 | 3891 |
|
|
3839 |
|
|
|
3892 | [('r', 'rev', '', | |
|
3893 | _('revision to check'), _('REV'))], | |
|
3840 | 3894 |
|
|
3841 | 3895 |
|
|
3842 | 3896 |
|
|
3843 | 3897 |
|
|
3844 |
|
|
|
3845 | ('c', 'change', '', _('change made by revision')) | |
|
3898 | [('r', 'rev', [], | |
|
3899 | _('revision'), _('REV')), | |
|
3900 | ('c', 'change', '', | |
|
3901 | _('change made by revision'), _('REV')) | |
|
3846 | 3902 |
|
|
3847 | 3903 |
|
|
3848 | 3904 |
|
|
3849 | 3905 |
|
|
3850 | [('o', 'output', '', _('print output to file with formatted name')), | |
|
3906 | [('o', 'output', '', | |
|
3907 | _('print output to file with formatted name'), _('FORMAT')), | |
|
3851 | 3908 |
|
|
3852 |
|
|
|
3909 | ('r', 'rev', [], | |
|
3910 | _('revisions to export'), _('REV')), | |
|
3853 | 3911 |
|
|
3854 | 3912 |
|
|
3855 | 3913 |
|
@@ -3867,14 +3925,16 b' table = {' | |||
|
3867 | 3925 |
|
|
3868 | 3926 |
|
|
3869 | 3927 |
|
|
3870 | ('r', 'rev', [], _('only search files changed within revision range')), | |
|
3928 | ('r', 'rev', [], | |
|
3929 | _('only search files changed within revision range'), _('REV')), | |
|
3871 | 3930 |
|
|
3872 | 3931 |
|
|
3873 | 3932 |
|
|
3874 | 3933 |
|
|
3875 | 3934 |
|
|
3876 | 3935 |
|
|
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 |
|
|
3879 | 3939 |
|
|
3880 | 3940 |
|
@@ -3885,7 +3945,8 b' table = {' | |||
|
3885 | 3945 |
|
|
3886 | 3946 |
|
|
3887 | 3947 |
|
|
3888 | [('r', 'rev', '', _('identify the specified revision')), | |
|
3948 | [('r', 'rev', '', | |
|
3949 | _('identify the specified revision'), _('REV')), | |
|
3889 | 3950 |
|
|
3890 | 3951 |
|
|
3891 | 3952 |
|
@@ -3895,8 +3956,10 b' table = {' | |||
|
3895 | 3956 |
|
|
3896 | 3957 |
|
|
3897 | 3958 |
|
|
3898 |
|
|
|
3899 | ('b', 'base', '', _('base path')), | |
|
3959 | 'meaning as the corresponding patch option'), | |
|
3960 | _('NUM')), | |
|
3961 | ('b', 'base', '', | |
|
3962 | _('base path'), _('PATH')), | |
|
3900 | 3963 |
|
|
3901 | 3964 |
|
|
3902 | 3965 |
|
@@ -3912,11 +3975,12 b' table = {' | |||
|
3912 | 3975 |
|
|
3913 | 3976 |
|
|
3914 | 3977 |
|
|
3915 | ('', 'bundle', '', _('file to store the bundles into')), | |
|
3978 | ('', 'bundle', '', | |
|
3979 | _('file to store the bundles into'), _('FILE')), | |
|
3916 | 3980 |
|
|
3917 |
|
|
|
3981 | _('a remote changeset intended to be added'), _('REV')), | |
|
3918 | 3982 |
|
|
3919 |
|
|
|
3983 | _('a specific branch you would like to pull'), _('BRANCH')), | |
|
3920 | 3984 |
|
|
3921 | 3985 |
|
|
3922 | 3986 |
|
@@ -3926,7 +3990,8 b' table = {' | |||
|
3926 | 3990 |
|
|
3927 | 3991 |
|
|
3928 | 3992 |
|
|
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 |
|
|
3931 | 3996 |
|
|
3932 | 3997 |
|
@@ -3940,29 +4005,36 b' table = {' | |||
|
3940 | 4005 |
|
|
3941 | 4006 |
|
|
3942 | 4007 |
|
|
3943 | ('d', 'date', '', _('show revisions matching date spec')), | |
|
4008 | ('d', 'date', '', | |
|
4009 | _('show revisions matching date spec'), _('DATE')), | |
|
3944 | 4010 |
|
|
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 |
|
|
3948 | 4016 |
|
|
3949 |
|
|
|
4017 | ('u', 'user', [], | |
|
4018 | _('revisions committed by user'), _('USER')), | |
|
3950 | 4019 |
|
|
3951 |
|
|
|
4020 | _('show only changesets within the given named branch (DEPRECATED)'), | |
|
4021 | _('BRANCH')), | |
|
3952 | 4022 |
|
|
3953 |
|
|
|
4023 | _('show changesets within the given named branch'), _('BRANCH')), | |
|
3954 | 4024 |
|
|
3955 |
|
|
|
4025 | _('do not display revision or any of its ancestors'), _('REV')), | |
|
3956 | 4026 |
|
|
3957 | 4027 |
|
|
3958 | 4028 |
|
|
3959 | 4029 |
|
|
3960 |
|
|
|
4030 | [('r', 'rev', '', | |
|
4031 | _('revision to display'), _('REV'))], | |
|
3961 | 4032 |
|
|
3962 | 4033 |
|
|
3963 | 4034 |
|
|
3964 | 4035 |
|
|
3965 |
|
|
|
4036 | ('r', 'rev', '', | |
|
4037 | _('revision to merge'), _('REV')), | |
|
3966 | 4038 |
|
|
3967 | 4039 |
|
|
3968 | 4040 |
|
@@ -3971,15 +4043,17 b' table = {' | |||
|
3971 | 4043 |
|
|
3972 | 4044 |
|
|
3973 | 4045 |
|
|
3974 |
|
|
|
4046 | _('a changeset intended to be included in the destination'), | |
|
4047 | _('REV')), | |
|
3975 | 4048 |
|
|
3976 | 4049 |
|
|
3977 |
|
|
|
4050 | _('a specific branch you would like to push'), _('BRANCH')), | |
|
3978 | 4051 |
|
|
3979 | 4052 |
|
|
3980 | 4053 |
|
|
3981 | 4054 |
|
|
3982 | [('r', 'rev', '', _('show parents of the specified revision')), | |
|
4055 | [('r', 'rev', '', | |
|
4056 | _('show parents of the specified revision'), _('REV')), | |
|
3983 | 4057 |
|
|
3984 | 4058 |
|
|
3985 | 4059 |
|
@@ -3990,18 +4064,19 b' table = {' | |||
|
3990 | 4064 |
|
|
3991 | 4065 |
|
|
3992 | 4066 |
|
|
3993 |
|
|
|
4067 | _('a remote changeset intended to be added'), _('REV')), | |
|
3994 | 4068 |
|
|
3995 |
|
|
|
4069 | _('a specific branch you would like to pull'), _('BRANCH')), | |
|
3996 | 4070 |
|
|
3997 | 4071 |
|
|
3998 | 4072 |
|
|
3999 | 4073 |
|
|
4000 | 4074 |
|
|
4001 | 4075 |
|
|
4002 |
|
|
|
4076 | _('a changeset intended to be included in the destination'), | |
|
4077 | _('REV')), | |
|
4003 | 4078 |
|
|
4004 |
|
|
|
4079 | _('a specific branch you would like to push'), _('BRANCH')), | |
|
4005 | 4080 |
|
|
4006 | 4081 |
|
|
4007 | 4082 |
|
@@ -4032,8 +4107,10 b' table = {' | |||
|
4032 | 4107 |
|
|
4033 | 4108 |
|
|
4034 | 4109 |
|
|
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 |
|
|
4038 | 4115 |
|
|
4039 | 4116 |
|
@@ -4041,28 +4118,38 b' table = {' | |||
|
4041 | 4118 |
|
|
4042 | 4119 |
|
|
4043 | 4120 |
|
|
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 |
|
|
4046 |
|
|
|
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 |
|
|
4049 | ('p', 'port', '', _('port to listen on (default: 8000)')), | |
|
4129 | ('p', 'port', '', | |
|
4130 | _('port to listen on (default: 8000)'), _('PORT')), | |
|
4050 | 4131 |
|
|
4051 |
|
|
|
4132 | _('address to listen on (default: all interfaces)'), _('ADDR')), | |
|
4052 | 4133 |
|
|
4053 |
|
|
|
4134 | _('prefix path to serve from (default: server root)'), _('PREFIX')), | |
|
4054 | 4135 |
|
|
4055 |
|
|
|
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 |
|
|
4062 |
|
|
|
4063 |
('' |
|
|
4146 | ('t', 'templates', '', | |
|
4147 | _('web templates to use'), _('TEMPLATE')), | |
|
4148 | ('', 'style', '', | |
|
4149 | _('template style to use'), _('STYLE')), | |
|
4064 | 4150 |
|
|
4065 |
|
|
|
4151 | ('', 'certificate', '', | |
|
4152 | _('SSL certificate file'), _('FILE'))], | |
|
4066 | 4153 |
|
|
4067 | 4154 |
|
|
4068 | 4155 |
|
@@ -4085,19 +4172,23 b' table = {' | |||
|
4085 | 4172 |
|
|
4086 | 4173 |
|
|
4087 | 4174 |
|
|
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 |
|
|
4091 | 4180 |
|
|
4092 | 4181 |
|
|
4093 | 4182 |
|
|
4094 | 4183 |
|
|
4095 | 4184 |
|
|
4096 |
|
|
|
4185 | ('r', 'rev', '', | |
|
4186 | _('revision to tag'), _('REV')), | |
|
4097 | 4187 |
|
|
4098 | 4188 |
|
|
4099 | 4189 |
|
|
4100 |
|
|
|
4190 | ('m', 'message', '', | |
|
4191 | _('use <text> as commit message'), _('TEXT')), | |
|
4101 | 4192 |
|
|
4102 | 4193 |
|
|
4103 | 4194 |
|
@@ -4116,8 +4207,10 b' table = {' | |||
|
4116 | 4207 |
|
|
4117 | 4208 |
|
|
4118 | 4209 |
|
|
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 |
|
|
4122 | 4215 |
|
|
4123 | 4216 |
|
@@ -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 |
|
|
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,13 +220,13 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 | |
|
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 | 230 | --branchsort try to sort changesets by branches |
|
231 | 231 | --datesort try to sort changesets by date |
|
232 | 232 | --sourcesort preserve source changesets order |
@@ -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 | |
|
24 | -o --output FORMAT print output to file with formatted name | |
|
25 | -r --rev REV print the given revision | |
|
26 | 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 | |
|
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 |
|
|
55 | --cwd change working directory | |
|
54 | -R --repository REPO repository root directory or name of overlay bundle | |
|
55 | file | |
|
56 | --cwd DIR change working directory | |
|
56 | 57 | -y --noninteractive do not prompt, assume 'yes' for any required answers |
|
57 | 58 | -q --quiet suppress output |
|
58 | 59 | -v --verbose enable additional output |
|
59 |
--config |
|
|
60 | --config CONFIG [+] set/override config option (use 'section.name=value') | |
|
60 | 61 | --debug enable debugging output |
|
61 | 62 | --debugger start debugger |
|
62 |
--encoding |
|
|
63 |
--encodingmode |
|
|
63 | --encoding ENCODE set the charset encoding (default: ascii) | |
|
64 | --encodingmode MODE set the charset encoding mode (default: strict) | |
|
64 | 65 | --traceback always print a traceback on exception |
|
65 | 66 | --time time how long the command takes |
|
66 | 67 | --profile print command execution profile |
|
67 | 68 | --version output version information and exit |
|
68 | 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 |
|
|
81 | --cwd change working directory | |
|
83 | -R --repository REPO repository root directory or name of overlay bundle | |
|
84 | file | |
|
85 | --cwd DIR change working directory | |
|
82 | 86 | -y --noninteractive do not prompt, assume 'yes' for any required answers |
|
83 | 87 | -q --quiet suppress output |
|
84 | 88 | -v --verbose enable additional output |
|
85 |
--config |
|
|
89 | --config CONFIG [+] set/override config option (use 'section.name=value') | |
|
86 | 90 | --debug enable debugging output |
|
87 | 91 | --debugger start debugger |
|
88 |
--encoding |
|
|
89 |
--encodingmode |
|
|
92 | --encoding ENCODE set the charset encoding (default: ascii) | |
|
93 | --encodingmode MODE set the charset encoding mode (default: strict) | |
|
90 | 94 | --traceback always print a traceback on exception |
|
91 | 95 | --time time how long the command takes |
|
92 | 96 | --profile print command execution profile |
|
93 | 97 | --version output version information and exit |
|
94 | 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,22 +217,25 b' basic commands:' | |||
|
217 | 217 | update working directory (or switch revisions) |
|
218 | 218 | |
|
219 | 219 | global options: |
|
220 |
-R --repository |
|
|
221 | --cwd change working directory | |
|
220 | -R --repository REPO repository root directory or name of overlay bundle | |
|
221 | file | |
|
222 | --cwd DIR change working directory | |
|
222 | 223 | -y --noninteractive do not prompt, assume 'yes' for any required answers |
|
223 | 224 | -q --quiet suppress output |
|
224 | 225 | -v --verbose enable additional output |
|
225 |
--config |
|
|
226 | --config CONFIG [+] set/override config option (use 'section.name=value') | |
|
226 | 227 | --debug enable debugging output |
|
227 | 228 | --debugger start debugger |
|
228 |
--encoding |
|
|
229 |
--encodingmode |
|
|
229 | --encoding ENCODE set the charset encoding (default: ascii) | |
|
230 | --encodingmode MODE set the charset encoding mode (default: strict) | |
|
230 | 231 | --traceback always print a traceback on exception |
|
231 | 232 | --time time how long the command takes |
|
232 | 233 | --profile print command execution profile |
|
233 | 234 | --version output version information and exit |
|
234 | 235 | -h --help display help and exit |
|
235 | 236 | |
|
237 | [+] marked option can be specified multiple times | |
|
238 | ||
|
236 | 239 | use "hg help" for the full list of commands |
|
237 | 240 | hg add [OPTION]... [FILE]... |
|
238 | 241 | |
@@ -249,10 +252,12 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 | |
|
255 | -I --include PATTERN [+] include names matching the given patterns | |
|
256 | -X --exclude PATTERN [+] exclude names matching the given patterns | |
|
254 | 257 | -n --dry-run do not perform actions, just print output |
|
255 | 258 | |
|
259 | [+] marked option can be specified multiple times | |
|
260 | ||
|
256 | 261 | use "hg -v help add" to show global options |
|
257 | 262 | %% verbose help for add |
|
258 | 263 | hg add [OPTION]... [FILE]... |
@@ -280,26 +285,31 b' add the specified files on the next comm' | |||
|
280 | 285 | |
|
281 | 286 | options: |
|
282 | 287 | |
|
283 |
-I --include |
|
|
284 |
-X --exclude |
|
|
288 | -I --include PATTERN [+] include names matching the given patterns | |
|
289 | -X --exclude PATTERN [+] exclude names matching the given patterns | |
|
285 | 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 |
|
|
289 | --cwd change working directory | |
|
290 | -y --noninteractive do not prompt, assume 'yes' for any required answers | |
|
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 | |
|
291 | 298 | -q --quiet suppress output |
|
292 | 299 | -v --verbose enable additional output |
|
293 |
--config |
|
|
300 | --config CONFIG [+] set/override config option (use | |
|
301 | 'section.name=value') | |
|
294 | 302 | --debug enable debugging output |
|
295 | 303 | --debugger start debugger |
|
296 |
--encoding |
|
|
297 | --encodingmode set the charset encoding mode (default: strict) | |
|
304 | --encoding ENCODE set the charset encoding (default: ascii) | |
|
305 | --encodingmode MODE set the charset encoding mode (default: strict) | |
|
298 | 306 | --traceback always print a traceback on exception |
|
299 | 307 | --time time how long the command takes |
|
300 | 308 | --profile print command execution profile |
|
301 | 309 | --version output version information and exit |
|
302 | 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,10 +332,12 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 | |
|
335 | -I --include PATTERN [+] include names matching the given patterns | |
|
336 | -X --exclude PATTERN [+] exclude names matching the given patterns | |
|
327 | 337 | -n --dry-run do not perform actions, just print output |
|
328 | 338 | |
|
339 | [+] marked option can be specified multiple times | |
|
340 | ||
|
329 | 341 | use "hg -v help add" to show global options |
|
330 | 342 | hg add: option --skjdfks not recognized |
|
331 | 343 | hg add [OPTION]... [FILE]... |
@@ -343,10 +355,12 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 | |
|
358 | -I --include PATTERN [+] include names matching the given patterns | |
|
359 | -X --exclude PATTERN [+] exclude names matching the given patterns | |
|
348 | 360 | -n --dry-run do not perform actions, just print output |
|
349 | 361 | |
|
362 | [+] marked option can be specified multiple times | |
|
363 | ||
|
350 | 364 | use "hg -v help add" to show global options |
|
351 | 365 | %% test ambiguous command help |
|
352 | 366 | list of commands: |
@@ -401,8 +415,8 b' diff repository (or selected files)' | |||
|
401 | 415 | |
|
402 | 416 | options: |
|
403 | 417 | |
|
404 |
-r --rev |
|
|
405 |
-c --change |
|
|
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 |
|
|
428 | -U --unified NUM number of lines of context to show | |
|
415 | 429 | --stat output diffstat-style summary of changes |
|
416 |
-I --include |
|
|
417 |
-X --exclude |
|
|
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]... |
@@ -468,10 +484,12 b' options:' | |||
|
468 | 484 | -n --no-status hide status prefix |
|
469 | 485 | -C --copies show source of copied files |
|
470 | 486 | -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 | |
|
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]... |
@@ -35,13 +35,15 b' options:' | |||
|
35 | 35 | -e --edit edit commit message |
|
36 | 36 | -g --git use git extended diff format |
|
37 | 37 | -U --currentuser add "From: <current user>" to patch |
|
38 |
-u --user add "From: < |
|
|
38 | -u --user USER add "From: <USER>" to patch | |
|
39 | 39 | -D --currentdate add "Date: <current date>" to patch |
|
40 |
-d --date add "Date: < |
|
|
41 |
-I --include |
|
|
42 |
-X --exclude |
|
|
43 |
-m --message use |
|
|
44 |
-l --logfile read commit message from |
|
|
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 |
|
|
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 |
- |
|
|
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