##// END OF EJS Templates
help: assigning categories to existing commands...
rdamazio@google.com -
r40329:c303d65d default
parent child Browse files
Show More
@@ -993,7 +993,8 b' def absorb(ui, repo, stack=None, targetc'
993 _('edit what lines belong to which changesets before commit '
993 _('edit what lines belong to which changesets before commit '
994 '(EXPERIMENTAL)')),
994 '(EXPERIMENTAL)')),
995 ] + commands.dryrunopts + commands.templateopts + commands.walkopts,
995 ] + commands.dryrunopts + commands.templateopts + commands.walkopts,
996 _('hg absorb [OPTION] [FILE]...'))
996 _('hg absorb [OPTION] [FILE]...'),
997 helpcategory=command.CATEGORY_COMMITTING)
997 def absorbcmd(ui, repo, *pats, **opts):
998 def absorbcmd(ui, repo, *pats, **opts):
998 """incorporate corrections into the stack of draft changesets
999 """incorporate corrections into the stack of draft changesets
999
1000
@@ -38,6 +38,7 b' command = registrar.command(cmdtable)'
38 ('n', 'note', '', _('store a note on the amend')),
38 ('n', 'note', '', _('store a note on the amend')),
39 ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2,
39 ] + cmdutil.walkopts + cmdutil.commitopts + cmdutil.commitopts2,
40 _('[OPTION]... [FILE]...'),
40 _('[OPTION]... [FILE]...'),
41 helpcategory=command.CATEGORY_COMMITTING,
41 inferrepo=True)
42 inferrepo=True)
42 def amend(ui, repo, *pats, **opts):
43 def amend(ui, repo, *pats, **opts):
43 """amend the working copy parent with all or specified outstanding changes
44 """amend the working copy parent with all or specified outstanding changes
@@ -229,7 +229,8 b' def reposetup(ui, repo):'
229 @command('^blackbox',
229 @command('^blackbox',
230 [('l', 'limit', 10, _('the number of events to show')),
230 [('l', 'limit', 10, _('the number of events to show')),
231 ],
231 ],
232 _('hg blackbox [OPTION]...'))
232 _('hg blackbox [OPTION]...'),
233 helpcategory=command.CATEGORY_MAINTENANCE)
233 def blackbox(ui, repo, *revs, **opts):
234 def blackbox(ui, repo, *revs, **opts):
234 '''view the recent repository events
235 '''view the recent repository events
235 '''
236 '''
@@ -47,7 +47,8 b" testedwith = 'ships-with-hg-core'"
47 @command('censor',
47 @command('censor',
48 [('r', 'rev', '', _('censor file from specified revision'), _('REV')),
48 [('r', 'rev', '', _('censor file from specified revision'), _('REV')),
49 ('t', 'tombstone', '', _('replacement tombstone data'), _('TEXT'))],
49 ('t', 'tombstone', '', _('replacement tombstone data'), _('TEXT'))],
50 _('-r REV [-t TEXT] [FILE]'))
50 _('-r REV [-t TEXT] [FILE]'),
51 helpcategory=command.CATEGORY_MAINTENANCE)
51 def censor(ui, repo, path, rev='', tombstone='', **opts):
52 def censor(ui, repo, path, rev='', tombstone='', **opts):
52 with repo.wlock(), repo.lock():
53 with repo.wlock(), repo.lock():
53 return _docensor(ui, repo, path, rev, tombstone, **opts)
54 return _docensor(ui, repo, path, rev, tombstone, **opts)
@@ -40,6 +40,7 b" testedwith = 'ships-with-hg-core'"
40 _('show children of the specified revision'), _('REV')),
40 _('show children of the specified revision'), _('REV')),
41 ] + templateopts,
41 ] + templateopts,
42 _('hg children [-r REV] [FILE]'),
42 _('hg children [-r REV] [FILE]'),
43 helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
43 inferrepo=True)
44 inferrepo=True)
44 def children(ui, repo, file_=None, **opts):
45 def children(ui, repo, file_=None, **opts):
45 """show the children of the given or working directory revision
46 """show the children of the given or working directory revision
@@ -116,6 +116,7 b' def countrate(ui, repo, amap, *pats, **o'
116 ('', 'aliases', '', _('file with email aliases'), _('FILE')),
116 ('', 'aliases', '', _('file with email aliases'), _('FILE')),
117 ] + cmdutil.walkopts,
117 ] + cmdutil.walkopts,
118 _("hg churn [-d DATE] [-r REV] [--aliases FILE] [FILE]"),
118 _("hg churn [-d DATE] [-r REV] [--aliases FILE] [FILE]"),
119 helpcategory=command.CATEGORY_MAINTENANCE,
119 inferrepo=True)
120 inferrepo=True)
120 def churn(ui, repo, *pats, **opts):
121 def churn(ui, repo, *pats, **opts):
121 '''histogram of changes to the repository
122 '''histogram of changes to the repository
@@ -32,7 +32,9 b" commitopts3 = [('r', 'rev', [],"
32 _('revision to check'), _('REV'))]
32 _('revision to check'), _('REV'))]
33
33
34 @command('close-head|close-heads', commitopts + commitopts2 + commitopts3,
34 @command('close-head|close-heads', commitopts + commitopts2 + commitopts3,
35 _('[OPTION]... [REV]...'), inferrepo=True)
35 _('[OPTION]... [REV]...'),
36 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT,
37 inferrepo=True)
36 def close_branch(ui, repo, *revs, **opts):
38 def close_branch(ui, repo, *revs, **opts):
37 """close the given head revisions
39 """close the given head revisions
38
40
@@ -338,6 +338,7 b' extdiffopts = ['
338 [('p', 'program', '', _('comparison program to run'), _('CMD')),
338 [('p', 'program', '', _('comparison program to run'), _('CMD')),
339 ] + extdiffopts,
339 ] + extdiffopts,
340 _('hg extdiff [OPT]... [FILE]...'),
340 _('hg extdiff [OPT]... [FILE]...'),
341 helpcategory=command.CATEGORY_FILE_CONTENTS,
341 inferrepo=True)
342 inferrepo=True)
342 def extdiff(ui, repo, *pats, **opts):
343 def extdiff(ui, repo, *pats, **opts):
343 '''use external program to diff repository (or selected files)
344 '''use external program to diff repository (or selected files)
@@ -41,7 +41,8 b" testedwith = 'ships-with-hg-core'"
41 ('', 'force-editor', None, _('edit commit message (DEPRECATED)')),
41 ('', 'force-editor', None, _('edit commit message (DEPRECATED)')),
42 ('', 'switch-parent', None, _('switch parents when merging')),
42 ('', 'switch-parent', None, _('switch parents when merging')),
43 ] + cmdutil.commitopts + cmdutil.commitopts2 + cmdutil.remoteopts,
43 ] + cmdutil.commitopts + cmdutil.commitopts2 + cmdutil.remoteopts,
44 _('hg fetch [SOURCE]'))
44 _('hg fetch [SOURCE]'),
45 helpcategory=command.CATEGORY_REMOTE_REPO_MANAGEMENT)
45 def fetch(ui, repo, source='default', **opts):
46 def fetch(ui, repo, source='default', **opts):
46 '''pull changes from a remote repository, merge new changes if needed.
47 '''pull changes from a remote repository, merge new changes if needed.
47
48
@@ -109,7 +109,8 b" wdiropt = ('w', 'working-dir', False, _("
109 wholeopt = ('', 'whole', False, _('always fix every line of a file'))
109 wholeopt = ('', 'whole', False, _('always fix every line of a file'))
110 usage = _('[OPTION]... [FILE]...')
110 usage = _('[OPTION]... [FILE]...')
111
111
112 @command('fix', [allopt, baseopt, revopt, wdiropt, wholeopt], usage)
112 @command('fix', [allopt, baseopt, revopt, wdiropt, wholeopt], usage,
113 helpcategory=command.CATEGORY_FILE_CONTENTS)
113 def fix(ui, repo, *pats, **opts):
114 def fix(ui, repo, *pats, **opts):
114 """rewrite file content in changesets or working directory
115 """rewrite file content in changesets or working directory
115
116
@@ -51,7 +51,8 b' def convert(s):'
51 return s
51 return s
52
52
53 @command('^githelp|git', [
53 @command('^githelp|git', [
54 ], _('hg githelp'))
54 ], _('hg githelp'),
55 helpcategory=command.CATEGORY_HELP)
55 def githelp(ui, repo, *args, **kwargs):
56 def githelp(ui, repo, *args, **kwargs):
56 '''suggests the Mercurial equivalent of the given git command
57 '''suggests the Mercurial equivalent of the given git command
57
58
@@ -14,6 +14,7 b' from mercurial.i18n import _'
14 from mercurial import (
14 from mercurial import (
15 cmdutil,
15 cmdutil,
16 error,
16 error,
17 help,
17 match,
18 match,
18 node as hgnode,
19 node as hgnode,
19 pycompat,
20 pycompat,
@@ -46,6 +47,9 b" configitem('gpg', '.*',"
46 generic=True,
47 generic=True,
47 )
48 )
48
49
50 # Custom help category
51 _HELP_CATEGORY = 'gpg'
52
49 class gpg(object):
53 class gpg(object):
50 def __init__(self, path, key=None):
54 def __init__(self, path, key=None):
51 self.path = path
55 self.path = path
@@ -169,7 +173,7 b' def getkeys(ui, repo, mygpg, sigdata, co'
169 validkeys.append((key[1], key[2], key[3]))
173 validkeys.append((key[1], key[2], key[3]))
170 return validkeys
174 return validkeys
171
175
172 @command("sigs", [], _('hg sigs'))
176 @command("sigs", [], _('hg sigs'), helpcategory=_HELP_CATEGORY)
173 def sigs(ui, repo):
177 def sigs(ui, repo):
174 """list signed changesets"""
178 """list signed changesets"""
175 mygpg = newgpg(ui)
179 mygpg = newgpg(ui)
@@ -194,7 +198,7 b' def sigs(ui, repo):'
194 r = "%5d:%s" % (rev, hgnode.hex(repo.changelog.node(rev)))
198 r = "%5d:%s" % (rev, hgnode.hex(repo.changelog.node(rev)))
195 ui.write("%-30s %s\n" % (keystr(ui, k), r))
199 ui.write("%-30s %s\n" % (keystr(ui, k), r))
196
200
197 @command("sigcheck", [], _('hg sigcheck REV'))
201 @command("sigcheck", [], _('hg sigcheck REV'), helpcategory=_HELP_CATEGORY)
198 def sigcheck(ui, repo, rev):
202 def sigcheck(ui, repo, rev):
199 """verify all the signatures there may be for a particular revision"""
203 """verify all the signatures there may be for a particular revision"""
200 mygpg = newgpg(ui)
204 mygpg = newgpg(ui)
@@ -237,7 +241,8 b' def keystr(ui, key):'
237 _('use text as commit message'), _('TEXT')),
241 _('use text as commit message'), _('TEXT')),
238 ('e', 'edit', False, _('invoke editor on commit messages')),
242 ('e', 'edit', False, _('invoke editor on commit messages')),
239 ] + cmdutil.commitopts2,
243 ] + cmdutil.commitopts2,
240 _('hg sign [OPTION]... [REV]...'))
244 _('hg sign [OPTION]... [REV]...'),
245 helpcategory=_HELP_CATEGORY)
241 def sign(ui, repo, *revs, **opts):
246 def sign(ui, repo, *revs, **opts):
242 """add a signature for the current or given revision
247 """add a signature for the current or given revision
243
248
@@ -327,3 +332,10 b' def node2txt(repo, node, ver):'
327 return "%s\n" % hgnode.hex(node)
332 return "%s\n" % hgnode.hex(node)
328 else:
333 else:
329 raise error.Abort(_("unknown signature version"))
334 raise error.Abort(_("unknown signature version"))
335
336 def extsetup(ui):
337 # Add our category before "Repository maintenance".
338 help.CATEGORY_ORDER.insert(
339 help.CATEGORY_ORDER.index(command.CATEGORY_MAINTENANCE),
340 _HELP_CATEGORY)
341 help.CATEGORY_NAMES[_HELP_CATEGORY] = 'GPG signing'
@@ -54,6 +54,7 b" testedwith = 'ships-with-hg-core'"
54 _('do not display revision or any of its ancestors'), _('REV')),
54 _('do not display revision or any of its ancestors'), _('REV')),
55 ] + cmdutil.logopts + cmdutil.walkopts,
55 ] + cmdutil.logopts + cmdutil.walkopts,
56 _('[OPTION]... [FILE]'),
56 _('[OPTION]... [FILE]'),
57 helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
57 inferrepo=True)
58 inferrepo=True)
58 def glog(ui, repo, *pats, **opts):
59 def glog(ui, repo, *pats, **opts):
59 """show revision history alongside an ASCII revision graph
60 """show revision history alongside an ASCII revision graph
@@ -345,7 +345,8 b' def revlist(ui, repo, *revs, **opts):'
345 @command('view',
345 @command('view',
346 [('l', 'limit', '',
346 [('l', 'limit', '',
347 _('limit number of changes displayed'), _('NUM'))],
347 _('limit number of changes displayed'), _('NUM'))],
348 _('[-l LIMIT] [REVRANGE]'))
348 _('[-l LIMIT] [REVRANGE]'),
349 helpcategory=command.CATEGORY_CHANGE_NAVIGATION)
349 def view(ui, repo, *etc, **opts):
350 def view(ui, repo, *etc, **opts):
350 "start interactive history viewer"
351 "start interactive history viewer"
351 opts = pycompat.byteskwargs(opts)
352 opts = pycompat.byteskwargs(opts)
@@ -929,7 +929,8 b' def findoutgoing(ui, repo, remote=None, '
929 _('force outgoing even for unrelated repositories')),
929 _('force outgoing even for unrelated repositories')),
930 ('r', 'rev', [], _('first revision to be edited'), _('REV'))] +
930 ('r', 'rev', [], _('first revision to be edited'), _('REV'))] +
931 cmdutil.formatteropts,
931 cmdutil.formatteropts,
932 _("[OPTIONS] ([ANCESTOR] | --outgoing [URL])"))
932 _("[OPTIONS] ([ANCESTOR] | --outgoing [URL])"),
933 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT)
933 def histedit(ui, repo, *freeargs, **opts):
934 def histedit(ui, repo, *freeargs, **opts):
934 """interactively edit changeset history
935 """interactively edit changeset history
935
936
@@ -440,7 +440,8 b' class journalstorage(object):'
440 ('', 'all', None, 'show history for all names'),
440 ('', 'all', None, 'show history for all names'),
441 ('c', 'commits', None, 'show commit metadata'),
441 ('c', 'commits', None, 'show commit metadata'),
442 ] + [opt for opt in cmdutil.logopts if opt[1] not in _ignoreopts],
442 ] + [opt for opt in cmdutil.logopts if opt[1] not in _ignoreopts],
443 '[OPTION]... [BOOKMARKNAME]')
443 '[OPTION]... [BOOKMARKNAME]',
444 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
444 def journal(ui, repo, *args, **opts):
445 def journal(ui, repo, *args, **opts):
445 """show the previous position of bookmarks and the working copy
446 """show the previous position of bookmarks and the working copy
446
447
@@ -2266,7 +2266,8 b' def fixkeepchangesopts(ui, opts):'
2266 [('k', 'keep', None, _('keep patch file')),
2266 [('k', 'keep', None, _('keep patch file')),
2267 ('r', 'rev', [],
2267 ('r', 'rev', [],
2268 _('stop managing a revision (DEPRECATED)'), _('REV'))],
2268 _('stop managing a revision (DEPRECATED)'), _('REV'))],
2269 _('hg qdelete [-k] [PATCH]...'))
2269 _('hg qdelete [-k] [PATCH]...'),
2270 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2270 def delete(ui, repo, *patches, **opts):
2271 def delete(ui, repo, *patches, **opts):
2271 """remove patches from queue
2272 """remove patches from queue
2272
2273
@@ -2284,7 +2285,8 b' def delete(ui, repo, *patches, **opts):'
2284 @command("qapplied",
2285 @command("qapplied",
2285 [('1', 'last', None, _('show only the preceding applied patch'))
2286 [('1', 'last', None, _('show only the preceding applied patch'))
2286 ] + seriesopts,
2287 ] + seriesopts,
2287 _('hg qapplied [-1] [-s] [PATCH]'))
2288 _('hg qapplied [-1] [-s] [PATCH]'),
2289 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2288 def applied(ui, repo, patch=None, **opts):
2290 def applied(ui, repo, patch=None, **opts):
2289 """print the patches already applied
2291 """print the patches already applied
2290
2292
@@ -2318,7 +2320,8 b' def applied(ui, repo, patch=None, **opts'
2318
2320
2319 @command("qunapplied",
2321 @command("qunapplied",
2320 [('1', 'first', None, _('show only the first patch'))] + seriesopts,
2322 [('1', 'first', None, _('show only the first patch'))] + seriesopts,
2321 _('hg qunapplied [-1] [-s] [PATCH]'))
2323 _('hg qunapplied [-1] [-s] [PATCH]'),
2324 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2322 def unapplied(ui, repo, patch=None, **opts):
2325 def unapplied(ui, repo, patch=None, **opts):
2323 """print the patches not yet applied
2326 """print the patches not yet applied
2324
2327
@@ -2353,7 +2356,8 b' def unapplied(ui, repo, patch=None, **op'
2353 _('place existing revisions under mq control'), _('REV')),
2356 _('place existing revisions under mq control'), _('REV')),
2354 ('g', 'git', None, _('use git extended diff format')),
2357 ('g', 'git', None, _('use git extended diff format')),
2355 ('P', 'push', None, _('qpush after importing'))],
2358 ('P', 'push', None, _('qpush after importing'))],
2356 _('hg qimport [-e] [-n NAME] [-f] [-g] [-P] [-r REV]... [FILE]...'))
2359 _('hg qimport [-e] [-n NAME] [-f] [-g] [-P] [-r REV]... [FILE]...'),
2360 helpcategory=command.CATEGORY_IMPORT_EXPORT)
2357 def qimport(ui, repo, *filename, **opts):
2361 def qimport(ui, repo, *filename, **opts):
2358 """import a patch or existing changeset
2362 """import a patch or existing changeset
2359
2363
@@ -2431,7 +2435,8 b' def qinit(ui, repo, create):'
2431
2435
2432 @command("^qinit",
2436 @command("^qinit",
2433 [('c', 'create-repo', None, _('create queue repository'))],
2437 [('c', 'create-repo', None, _('create queue repository'))],
2434 _('hg qinit [-c]'))
2438 _('hg qinit [-c]'),
2439 helpcategory=command.CATEGORY_REPO_CREATION)
2435 def init(ui, repo, **opts):
2440 def init(ui, repo, **opts):
2436 """init a new queue repository (DEPRECATED)
2441 """init a new queue repository (DEPRECATED)
2437
2442
@@ -2455,6 +2460,7 b' def init(ui, repo, **opts):'
2455 _('location of source patch repository'), _('REPO')),
2460 _('location of source patch repository'), _('REPO')),
2456 ] + cmdutil.remoteopts,
2461 ] + cmdutil.remoteopts,
2457 _('hg qclone [OPTION]... SOURCE [DEST]'),
2462 _('hg qclone [OPTION]... SOURCE [DEST]'),
2463 helpcategory=command.CATEGORY_REPO_CREATION,
2458 norepo=True)
2464 norepo=True)
2459 def clone(ui, source, dest=None, **opts):
2465 def clone(ui, source, dest=None, **opts):
2460 '''clone main and patch repository at same time
2466 '''clone main and patch repository at same time
@@ -2536,6 +2542,7 b' def clone(ui, source, dest=None, **opts)'
2536 @command("qcommit|qci",
2542 @command("qcommit|qci",
2537 commands.table["^commit|ci"][1],
2543 commands.table["^commit|ci"][1],
2538 _('hg qcommit [OPTION]... [FILE]...'),
2544 _('hg qcommit [OPTION]... [FILE]...'),
2545 helpcategory=command.CATEGORY_COMMITTING,
2539 inferrepo=True)
2546 inferrepo=True)
2540 def commit(ui, repo, *pats, **opts):
2547 def commit(ui, repo, *pats, **opts):
2541 """commit changes in the queue repository (DEPRECATED)
2548 """commit changes in the queue repository (DEPRECATED)
@@ -2550,7 +2557,8 b' def commit(ui, repo, *pats, **opts):'
2550 @command("qseries",
2557 @command("qseries",
2551 [('m', 'missing', None, _('print patches not in series')),
2558 [('m', 'missing', None, _('print patches not in series')),
2552 ] + seriesopts,
2559 ] + seriesopts,
2553 _('hg qseries [-ms]'))
2560 _('hg qseries [-ms]'),
2561 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2554 def series(ui, repo, **opts):
2562 def series(ui, repo, **opts):
2555 """print the entire series file
2563 """print the entire series file
2556
2564
@@ -2559,7 +2567,8 b' def series(ui, repo, **opts):'
2559 summary=opts.get(r'summary'))
2567 summary=opts.get(r'summary'))
2560 return 0
2568 return 0
2561
2569
2562 @command("qtop", seriesopts, _('hg qtop [-s]'))
2570 @command("qtop", seriesopts, _('hg qtop [-s]'),
2571 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2563 def top(ui, repo, **opts):
2572 def top(ui, repo, **opts):
2564 """print the name of the current patch
2573 """print the name of the current patch
2565
2574
@@ -2577,7 +2586,8 b' def top(ui, repo, **opts):'
2577 ui.write(_("no patches applied\n"))
2586 ui.write(_("no patches applied\n"))
2578 return 1
2587 return 1
2579
2588
2580 @command("qnext", seriesopts, _('hg qnext [-s]'))
2589 @command("qnext", seriesopts, _('hg qnext [-s]'),
2590 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2581 def next(ui, repo, **opts):
2591 def next(ui, repo, **opts):
2582 """print the name of the next pushable patch
2592 """print the name of the next pushable patch
2583
2593
@@ -2589,7 +2599,8 b' def next(ui, repo, **opts):'
2589 return 1
2599 return 1
2590 q.qseries(repo, start=end, length=1, summary=opts.get(r'summary'))
2600 q.qseries(repo, start=end, length=1, summary=opts.get(r'summary'))
2591
2601
2592 @command("qprev", seriesopts, _('hg qprev [-s]'))
2602 @command("qprev", seriesopts, _('hg qprev [-s]'),
2603 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2593 def prev(ui, repo, **opts):
2604 def prev(ui, repo, **opts):
2594 """print the name of the preceding applied patch
2605 """print the name of the preceding applied patch
2595
2606
@@ -2624,6 +2635,7 b' def setupheaderopts(ui, opts):'
2624 _('add "Date: <DATE>" to patch'), _('DATE'))
2635 _('add "Date: <DATE>" to patch'), _('DATE'))
2625 ] + cmdutil.walkopts + cmdutil.commitopts,
2636 ] + cmdutil.walkopts + cmdutil.commitopts,
2626 _('hg qnew [-e] [-m TEXT] [-l FILE] PATCH [FILE]...'),
2637 _('hg qnew [-e] [-m TEXT] [-l FILE] PATCH [FILE]...'),
2638 helpcategory=command.CATEGORY_COMMITTING,
2627 inferrepo=True)
2639 inferrepo=True)
2628 def new(ui, repo, patch, *args, **opts):
2640 def new(ui, repo, patch, *args, **opts):
2629 """create a new patch
2641 """create a new patch
@@ -2674,6 +2686,7 b' def new(ui, repo, patch, *args, **opts):'
2674 _('add/update date field in patch with given date'), _('DATE'))
2686 _('add/update date field in patch with given date'), _('DATE'))
2675 ] + cmdutil.walkopts + cmdutil.commitopts,
2687 ] + cmdutil.walkopts + cmdutil.commitopts,
2676 _('hg qrefresh [-I] [-X] [-e] [-m TEXT] [-l FILE] [-s] [FILE]...'),
2688 _('hg qrefresh [-I] [-X] [-e] [-m TEXT] [-l FILE] [-s] [FILE]...'),
2689 helpcategory=command.CATEGORY_COMMITTING,
2677 inferrepo=True)
2690 inferrepo=True)
2678 def refresh(ui, repo, *pats, **opts):
2691 def refresh(ui, repo, *pats, **opts):
2679 """update the current patch
2692 """update the current patch
@@ -2708,6 +2721,7 b' def refresh(ui, repo, *pats, **opts):'
2708 @command("^qdiff",
2721 @command("^qdiff",
2709 cmdutil.diffopts + cmdutil.diffopts2 + cmdutil.walkopts,
2722 cmdutil.diffopts + cmdutil.diffopts2 + cmdutil.walkopts,
2710 _('hg qdiff [OPTION]... [FILE]...'),
2723 _('hg qdiff [OPTION]... [FILE]...'),
2724 helpcategory=command.CATEGORY_FILE_CONTENTS,
2711 inferrepo=True)
2725 inferrepo=True)
2712 def diff(ui, repo, *pats, **opts):
2726 def diff(ui, repo, *pats, **opts):
2713 """diff of the current patch and subsequent modifications
2727 """diff of the current patch and subsequent modifications
@@ -2732,7 +2746,8 b' def diff(ui, repo, *pats, **opts):'
2732 [('e', 'edit', None, _('invoke editor on commit messages')),
2746 [('e', 'edit', None, _('invoke editor on commit messages')),
2733 ('k', 'keep', None, _('keep folded patch files')),
2747 ('k', 'keep', None, _('keep folded patch files')),
2734 ] + cmdutil.commitopts,
2748 ] + cmdutil.commitopts,
2735 _('hg qfold [-e] [-k] [-m TEXT] [-l FILE] PATCH...'))
2749 _('hg qfold [-e] [-k] [-m TEXT] [-l FILE] PATCH...'),
2750 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT)
2736 def fold(ui, repo, *files, **opts):
2751 def fold(ui, repo, *files, **opts):
2737 """fold the named patches into the current patch
2752 """fold the named patches into the current patch
2738
2753
@@ -2801,7 +2816,8 b' def fold(ui, repo, *files, **opts):'
2801 _('tolerate non-conflicting local changes')),
2816 _('tolerate non-conflicting local changes')),
2802 ('f', 'force', None, _('overwrite any local changes')),
2817 ('f', 'force', None, _('overwrite any local changes')),
2803 ('', 'no-backup', None, _('do not save backup copies of files'))],
2818 ('', 'no-backup', None, _('do not save backup copies of files'))],
2804 _('hg qgoto [OPTION]... PATCH'))
2819 _('hg qgoto [OPTION]... PATCH'),
2820 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2805 def goto(ui, repo, patch, **opts):
2821 def goto(ui, repo, patch, **opts):
2806 '''push or pop patches until named patch is at top of stack
2822 '''push or pop patches until named patch is at top of stack
2807
2823
@@ -2824,7 +2840,8 b' def goto(ui, repo, patch, **opts):'
2824 @command("qguard",
2840 @command("qguard",
2825 [('l', 'list', None, _('list all patches and guards')),
2841 [('l', 'list', None, _('list all patches and guards')),
2826 ('n', 'none', None, _('drop all guards'))],
2842 ('n', 'none', None, _('drop all guards'))],
2827 _('hg qguard [-l] [-n] [PATCH] [-- [+GUARD]... [-GUARD]...]'))
2843 _('hg qguard [-l] [-n] [PATCH] [-- [+GUARD]... [-GUARD]...]'),
2844 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2828 def guard(ui, repo, *args, **opts):
2845 def guard(ui, repo, *args, **opts):
2829 '''set or print guards for a patch
2846 '''set or print guards for a patch
2830
2847
@@ -2896,7 +2913,8 b' def guard(ui, repo, *args, **opts):'
2896 else:
2913 else:
2897 status(q.series.index(q.lookup(patch)))
2914 status(q.series.index(q.lookup(patch)))
2898
2915
2899 @command("qheader", [], _('hg qheader [PATCH]'))
2916 @command("qheader", [], _('hg qheader [PATCH]'),
2917 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2900 def header(ui, repo, patch=None):
2918 def header(ui, repo, patch=None):
2901 """print the header of the topmost or specified patch
2919 """print the header of the topmost or specified patch
2902
2920
@@ -2952,7 +2970,8 b' def savename(path):'
2952 ('', 'move', None,
2970 ('', 'move', None,
2953 _('reorder patch series and apply only the patch')),
2971 _('reorder patch series and apply only the patch')),
2954 ('', 'no-backup', None, _('do not save backup copies of files'))],
2972 ('', 'no-backup', None, _('do not save backup copies of files'))],
2955 _('hg qpush [-f] [-l] [-a] [--move] [PATCH | INDEX]'))
2973 _('hg qpush [-f] [-l] [-a] [--move] [PATCH | INDEX]'),
2974 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2956 def push(ui, repo, patch=None, **opts):
2975 def push(ui, repo, patch=None, **opts):
2957 """push the next patch onto the stack
2976 """push the next patch onto the stack
2958
2977
@@ -2992,7 +3011,8 b' def push(ui, repo, patch=None, **opts):'
2992 _('tolerate non-conflicting local changes')),
3011 _('tolerate non-conflicting local changes')),
2993 ('f', 'force', None, _('forget any local changes to patched files')),
3012 ('f', 'force', None, _('forget any local changes to patched files')),
2994 ('', 'no-backup', None, _('do not save backup copies of files'))],
3013 ('', 'no-backup', None, _('do not save backup copies of files'))],
2995 _('hg qpop [-a] [-f] [PATCH | INDEX]'))
3014 _('hg qpop [-a] [-f] [PATCH | INDEX]'),
3015 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
2996 def pop(ui, repo, patch=None, **opts):
3016 def pop(ui, repo, patch=None, **opts):
2997 """pop the current patch off the stack
3017 """pop the current patch off the stack
2998
3018
@@ -3022,7 +3042,8 b' def pop(ui, repo, patch=None, **opts):'
3022 q.savedirty()
3042 q.savedirty()
3023 return ret
3043 return ret
3024
3044
3025 @command("qrename|qmv", [], _('hg qrename PATCH1 [PATCH2]'))
3045 @command("qrename|qmv", [], _('hg qrename PATCH1 [PATCH2]'),
3046 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
3026 def rename(ui, repo, patch, name=None, **opts):
3047 def rename(ui, repo, patch, name=None, **opts):
3027 """rename a patch
3048 """rename a patch
3028
3049
@@ -3080,7 +3101,8 b' def rename(ui, repo, patch, name=None, *'
3080 @command("qrestore",
3101 @command("qrestore",
3081 [('d', 'delete', None, _('delete save entry')),
3102 [('d', 'delete', None, _('delete save entry')),
3082 ('u', 'update', None, _('update queue working directory'))],
3103 ('u', 'update', None, _('update queue working directory'))],
3083 _('hg qrestore [-d] [-u] REV'))
3104 _('hg qrestore [-d] [-u] REV'),
3105 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
3084 def restore(ui, repo, rev, **opts):
3106 def restore(ui, repo, rev, **opts):
3085 """restore the queue state saved by a revision (DEPRECATED)
3107 """restore the queue state saved by a revision (DEPRECATED)
3086
3108
@@ -3098,7 +3120,8 b' def restore(ui, repo, rev, **opts):'
3098 _('copy directory name'), _('NAME')),
3120 _('copy directory name'), _('NAME')),
3099 ('e', 'empty', None, _('clear queue status file')),
3121 ('e', 'empty', None, _('clear queue status file')),
3100 ('f', 'force', None, _('force copy'))] + cmdutil.commitopts,
3122 ('f', 'force', None, _('force copy'))] + cmdutil.commitopts,
3101 _('hg qsave [-m TEXT] [-l FILE] [-c] [-n NAME] [-e] [-f]'))
3123 _('hg qsave [-m TEXT] [-l FILE] [-c] [-n NAME] [-e] [-f]'),
3124 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
3102 def save(ui, repo, **opts):
3125 def save(ui, repo, **opts):
3103 """save current queue state (DEPRECATED)
3126 """save current queue state (DEPRECATED)
3104
3127
@@ -3137,7 +3160,8 b' def save(ui, repo, **opts):'
3137 ('s', 'series', None, _('list all guards in series file')),
3160 ('s', 'series', None, _('list all guards in series file')),
3138 ('', 'pop', None, _('pop to before first guarded applied patch')),
3161 ('', 'pop', None, _('pop to before first guarded applied patch')),
3139 ('', 'reapply', None, _('pop, then reapply patches'))],
3162 ('', 'reapply', None, _('pop, then reapply patches'))],
3140 _('hg qselect [OPTION]... [GUARD]...'))
3163 _('hg qselect [OPTION]... [GUARD]...'),
3164 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
3141 def select(ui, repo, *args, **opts):
3165 def select(ui, repo, *args, **opts):
3142 '''set or print guarded patches to push
3166 '''set or print guarded patches to push
3143
3167
@@ -3246,7 +3270,8 b' def select(ui, repo, *args, **opts):'
3246
3270
3247 @command("qfinish",
3271 @command("qfinish",
3248 [('a', 'applied', None, _('finish all applied changesets'))],
3272 [('a', 'applied', None, _('finish all applied changesets'))],
3249 _('hg qfinish [-a] [REV]...'))
3273 _('hg qfinish [-a] [REV]...'),
3274 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
3250 def finish(ui, repo, *revrange, **opts):
3275 def finish(ui, repo, *revrange, **opts):
3251 """move applied patches into repository history
3276 """move applied patches into repository history
3252
3277
@@ -3294,7 +3319,8 b' def finish(ui, repo, *revrange, **opts):'
3294 ('', 'delete', False, _('delete reference to queue')),
3319 ('', 'delete', False, _('delete reference to queue')),
3295 ('', 'purge', False, _('delete queue, and remove patch dir')),
3320 ('', 'purge', False, _('delete queue, and remove patch dir')),
3296 ],
3321 ],
3297 _('[OPTION] [QUEUE]'))
3322 _('[OPTION] [QUEUE]'),
3323 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
3298 def qqueue(ui, repo, name=None, **opts):
3324 def qqueue(ui, repo, name=None, **opts):
3299 '''manage multiple patch queues
3325 '''manage multiple patch queues
3300
3326
@@ -509,7 +509,8 b' emailopts = ['
509 '(with -b/--bundle)'), _('REV')),
509 '(with -b/--bundle)'), _('REV')),
510 ('', 'intro', None, _('send an introduction email for a single patch')),
510 ('', 'intro', None, _('send an introduction email for a single patch')),
511 ] + emailopts + cmdutil.remoteopts,
511 ] + emailopts + cmdutil.remoteopts,
512 _('hg email [OPTION]... [DEST]...'))
512 _('hg email [OPTION]... [DEST]...'),
513 helpcategory=command.CATEGORY_IMPORT_EXPORT)
513 def email(ui, repo, *revs, **opts):
514 def email(ui, repo, *revs, **opts):
514 '''send changesets by email
515 '''send changesets by email
515
516
@@ -51,7 +51,8 b" testedwith = 'ships-with-hg-core'"
51 ('0', 'print0', None, _('end filenames with NUL, for use with xargs'
51 ('0', 'print0', None, _('end filenames with NUL, for use with xargs'
52 ' (implies -p/--print)')),
52 ' (implies -p/--print)')),
53 ] + cmdutil.walkopts,
53 ] + cmdutil.walkopts,
54 _('hg purge [OPTION]... [DIR]...'))
54 _('hg purge [OPTION]... [DIR]...'),
55 helpcategory=command.CATEGORY_MAINTENANCE)
55 def purge(ui, repo, *dirs, **opts):
56 def purge(ui, repo, *dirs, **opts):
56 '''removes files not tracked by Mercurial
57 '''removes files not tracked by Mercurial
57
58
@@ -679,7 +679,8 b' class rebaseruntime(object):'
679 ('', 'auto-orphans', '', _('automatically rebase orphan revisions '
679 ('', 'auto-orphans', '', _('automatically rebase orphan revisions '
680 'in the specified revset (EXPERIMENTAL)')),
680 'in the specified revset (EXPERIMENTAL)')),
681 ] + cmdutil.dryrunopts + cmdutil.formatteropts + cmdutil.confirmopts,
681 ] + cmdutil.dryrunopts + cmdutil.formatteropts + cmdutil.confirmopts,
682 _('[-s REV | -b REV] [-d REV] [OPTION]'))
682 _('[-s REV | -b REV] [-d REV] [OPTION]'),
683 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT)
683 def rebase(ui, repo, **opts):
684 def rebase(ui, repo, **opts):
684 """move changeset (and descendants) to a different branch
685 """move changeset (and descendants) to a different branch
685
686
@@ -34,7 +34,8 b" testedwith = 'ships-with-hg-core'"
34 # same options as commit + white space diff options
34 # same options as commit + white space diff options
35 [c for c in commands.table['^commit|ci'][1][:]
35 [c for c in commands.table['^commit|ci'][1][:]
36 if c[1] != "interactive"] + cmdutil.diffwsopts,
36 if c[1] != "interactive"] + cmdutil.diffwsopts,
37 _('hg record [OPTION]... [FILE]...'))
37 _('hg record [OPTION]... [FILE]...'),
38 helpcategory=command.CATEGORY_COMMITTING)
38 def record(ui, repo, *pats, **opts):
39 def record(ui, repo, *pats, **opts):
39 '''interactively select changes to commit
40 '''interactively select changes to commit
40
41
@@ -94,6 +95,7 b' def qrefresh(origfn, ui, repo, *pats, **'
94 @command('qrecord',
95 @command('qrecord',
95 [],
96 [],
96 _('hg qrecord [OPTION]... PATCH [FILE]...'),
97 _('hg qrecord [OPTION]... PATCH [FILE]...'),
98 helpcategory=command.CATEGORY_COMMITTING,
97 inferrepo=True)
99 inferrepo=True)
98 def qrecord(ui, repo, patch, *pats, **opts):
100 def qrecord(ui, repo, patch, *pats, **opts):
99 '''interactively record a new patch
101 '''interactively record a new patch
@@ -492,7 +492,8 b' def serializenotes(sections, notes):'
492 _('REV')),
492 _('REV')),
493 ('l', 'list', False, _('list the available admonitions with their title'),
493 ('l', 'list', False, _('list the available admonitions with their title'),
494 None)],
494 None)],
495 _('hg releasenotes [-r REV] [-c] FILE'))
495 _('hg releasenotes [-r REV] [-c] FILE'),
496 helpcategory=command.CATEGORY_CHANGE_NAVIGATION)
496 def releasenotes(ui, repo, file_=None, **opts):
497 def releasenotes(ui, repo, file_=None, **opts):
497 """parse release notes from commit messages into an output file
498 """parse release notes from commit messages into an output file
498
499
@@ -30,7 +30,7 b' command = registrar.command(cmdtable)'
30 # leave the attribute unspecified.
30 # leave the attribute unspecified.
31 testedwith = 'ships-with-hg-core'
31 testedwith = 'ships-with-hg-core'
32
32
33 @command('relink', [], _('[ORIGIN]'))
33 @command('relink', [], _('[ORIGIN]'), helpcategory=command.CATEGORY_MAINTENANCE)
34 def relink(ui, repo, origin=None, **opts):
34 def relink(ui, repo, origin=None, **opts):
35 """recreate hardlinks between two repositories
35 """recreate hardlinks between two repositories
36
36
@@ -67,6 +67,7 b" testedwith = 'ships-with-hg-core'"
67 '(EXPERIMENTAL)')),
67 '(EXPERIMENTAL)')),
68 ],
68 ],
69 _('[-U] [-B] SOURCE [DEST]'),
69 _('[-U] [-B] SOURCE [DEST]'),
70 helpcategory=command.CATEGORY_REPO_CREATION,
70 norepo=True)
71 norepo=True)
71 def share(ui, source, dest=None, noupdate=False, bookmarks=False,
72 def share(ui, source, dest=None, noupdate=False, bookmarks=False,
72 relative=False):
73 relative=False):
@@ -91,7 +92,7 b' def share(ui, source, dest=None, noupdat'
91 bookmarks=bookmarks, relative=relative)
92 bookmarks=bookmarks, relative=relative)
92 return 0
93 return 0
93
94
94 @command('unshare', [], '')
95 @command('unshare', [], '', helpcategory=command.CATEGORY_MAINTENANCE)
95 def unshare(ui, repo):
96 def unshare(ui, repo):
96 """convert a shared repository to a normal one
97 """convert a shared repository to a normal one
97
98
@@ -903,7 +903,8 b' def _checkunshelveuntrackedproblems(ui, '
903 ('t', 'tool', '', _('specify merge tool')),
903 ('t', 'tool', '', _('specify merge tool')),
904 ('', 'date', '',
904 ('', 'date', '',
905 _('set date for temporary commits (DEPRECATED)'), _('DATE'))],
905 _('set date for temporary commits (DEPRECATED)'), _('DATE'))],
906 _('hg unshelve [[-n] SHELVED]'))
906 _('hg unshelve [[-n] SHELVED]'),
907 helpcategory=command.CATEGORY_WORKING_DIRECTORY)
907 def unshelve(ui, repo, *shelved, **opts):
908 def unshelve(ui, repo, *shelved, **opts):
908 """restore a shelved change to the working directory
909 """restore a shelved change to the working directory
909
910
@@ -1073,7 +1074,8 b' def _dounshelve(ui, repo, *shelved, **op'
1073 _('output diffstat-style summary of changes (provide the names of '
1074 _('output diffstat-style summary of changes (provide the names of '
1074 'the shelved changes as positional arguments)')
1075 'the shelved changes as positional arguments)')
1075 )] + cmdutil.walkopts,
1076 )] + cmdutil.walkopts,
1076 _('hg shelve [OPTION]... [FILE]...'))
1077 _('hg shelve [OPTION]... [FILE]...'),
1078 helpcategory=command.CATEGORY_WORKING_DIRECTORY)
1077 def shelvecmd(ui, repo, *pats, **opts):
1079 def shelvecmd(ui, repo, *pats, **opts):
1078 '''save and set aside changes from the working directory
1080 '''save and set aside changes from the working directory
1079
1081
@@ -93,7 +93,8 b' showview = showcmdfunc()'
93 # is an important part of the 'hg show' user experience and the entire
93 # is an important part of the 'hg show' user experience and the entire
94 # 'hg show' experience is experimental.
94 # 'hg show' experience is experimental.
95 ('T', 'template', '', ('display with template'), _('TEMPLATE')),
95 ('T', 'template', '', ('display with template'), _('TEMPLATE')),
96 ], _('VIEW'))
96 ], _('VIEW'),
97 helpcategory=command.CATEGORY_CHANGE_NAVIGATION)
97 def show(ui, repo, view=None, template=None):
98 def show(ui, repo, view=None, template=None):
98 """show various repository information
99 """show various repository information
99
100
@@ -48,7 +48,8 b" testedwith = 'ships-with-hg-core'"
48 [('r', 'rev', '', _("revision to split"), _('REV')),
48 [('r', 'rev', '', _("revision to split"), _('REV')),
49 ('', 'rebase', True, _('rebase descendants after split')),
49 ('', 'rebase', True, _('rebase descendants after split')),
50 ] + cmdutil.commitopts2,
50 ] + cmdutil.commitopts2,
51 _('hg split [--no-rebase] [[-r] REV]'))
51 _('hg split [--no-rebase] [[-r] REV]'),
52 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT)
52 def split(ui, repo, *revs, **opts):
53 def split(ui, repo, *revs, **opts):
53 """split a changeset into smaller ones
54 """split a changeset into smaller ones
54
55
@@ -111,7 +111,8 b' def strip(ui, repo, revs, update=True, b'
111 "strip")),
111 "strip")),
112 ('B', 'bookmark', [], _("remove revs only reachable from given"
112 ('B', 'bookmark', [], _("remove revs only reachable from given"
113 " bookmark"))],
113 " bookmark"))],
114 _('hg strip [-k] [-f] [-B bookmark] [-r] REV...'))
114 _('hg strip [-k] [-f] [-B bookmark] [-r] REV...'),
115 helpcategory=command.CATEGORY_MAINTENANCE)
115 def stripcmd(ui, repo, *revs, **opts):
116 def stripcmd(ui, repo, *revs, **opts):
116 """strip changesets and all their descendants from the repository
117 """strip changesets and all their descendants from the repository
117
118
@@ -562,7 +562,8 b' def browserevs(ui, repo, nodes, opts):'
562 ('', 'filter', '',
562 ('', 'filter', '',
563 _('filter changesets through command'), _('CMD'))],
563 _('filter changesets through command'), _('CMD'))],
564 _('hg transplant [-s REPO] [-b BRANCH [-a]] [-p REV] '
564 _('hg transplant [-s REPO] [-b BRANCH [-a]] [-p REV] '
565 '[-m REV] [REV]...'))
565 '[-m REV] [REV]...'),
566 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT)
566 def transplant(ui, repo, *revs, **opts):
567 def transplant(ui, repo, *revs, **opts):
567 '''transplant changesets from another branch
568 '''transplant changesets from another branch
568
569
@@ -138,7 +138,8 b' def _fixdirstate(repo, oldctx, newctx, s'
138 @command('uncommit',
138 @command('uncommit',
139 [('', 'keep', False, _('allow an empty commit after uncommiting')),
139 [('', 'keep', False, _('allow an empty commit after uncommiting')),
140 ] + commands.walkopts,
140 ] + commands.walkopts,
141 _('[OPTION]... [FILE]...'))
141 _('[OPTION]... [FILE]...'),
142 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT)
142 def uncommit(ui, repo, *pats, **opts):
143 def uncommit(ui, repo, *pats, **opts):
143 """uncommit part or all of a local changeset
144 """uncommit part or all of a local changeset
144
145
@@ -190,7 +191,7 b' def predecessormarkers(ctx):'
190 for data in ctx.repo().obsstore.predecessors.get(ctx.node(), ()):
191 for data in ctx.repo().obsstore.predecessors.get(ctx.node(), ()):
191 yield obsutil.marker(ctx.repo(), data)
192 yield obsutil.marker(ctx.repo(), data)
192
193
193 @command('^unamend', [])
194 @command('^unamend', [], helpcategory=command.CATEGORY_CHANGE_MANAGEMENT)
194 def unamend(ui, repo, **opts):
195 def unamend(ui, repo, **opts):
195 """undo the most recent amend operation on a current changeset
196 """undo the most recent amend operation on a current changeset
196
197
@@ -134,6 +134,7 b' debugrevlogopts = cmdutil.debugrevlogopt'
134 @command('^add',
134 @command('^add',
135 walkopts + subrepoopts + dryrunopts,
135 walkopts + subrepoopts + dryrunopts,
136 _('[OPTION]... [FILE]...'),
136 _('[OPTION]... [FILE]...'),
137 helpcategory=command.CATEGORY_WORKING_DIRECTORY,
137 inferrepo=True)
138 inferrepo=True)
138 def add(ui, repo, *pats, **opts):
139 def add(ui, repo, *pats, **opts):
139 """add the specified files on the next commit
140 """add the specified files on the next commit
@@ -185,6 +186,7 b' def add(ui, repo, *pats, **opts):'
185 @command('addremove',
186 @command('addremove',
186 similarityopts + subrepoopts + walkopts + dryrunopts,
187 similarityopts + subrepoopts + walkopts + dryrunopts,
187 _('[OPTION]... [FILE]...'),
188 _('[OPTION]... [FILE]...'),
189 helpcategory=command.CATEGORY_WORKING_DIRECTORY,
188 inferrepo=True)
190 inferrepo=True)
189 def addremove(ui, repo, *pats, **opts):
191 def addremove(ui, repo, *pats, **opts):
190 """add all new files, delete all missing files
192 """add all new files, delete all missing files
@@ -269,6 +271,7 b' def addremove(ui, repo, *pats, **opts):'
269 ('', 'skip', [], _('revision to not display (EXPERIMENTAL)'), _('REV')),
271 ('', 'skip', [], _('revision to not display (EXPERIMENTAL)'), _('REV')),
270 ] + diffwsopts + walkopts + formatteropts,
272 ] + diffwsopts + walkopts + formatteropts,
271 _('[-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...'),
273 _('[-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...'),
274 helpcategory=command.CATEGORY_FILE_CONTENTS,
272 inferrepo=True)
275 inferrepo=True)
273 def annotate(ui, repo, *pats, **opts):
276 def annotate(ui, repo, *pats, **opts):
274 """show changeset information by line for each file
277 """show changeset information by line for each file
@@ -451,7 +454,8 b' def annotate(ui, repo, *pats, **opts):'
451 ('r', 'rev', '', _('revision to distribute'), _('REV')),
454 ('r', 'rev', '', _('revision to distribute'), _('REV')),
452 ('t', 'type', '', _('type of distribution to create'), _('TYPE')),
455 ('t', 'type', '', _('type of distribution to create'), _('TYPE')),
453 ] + subrepoopts + walkopts,
456 ] + subrepoopts + walkopts,
454 _('[OPTION]... DEST'))
457 _('[OPTION]... DEST'),
458 helpcategory=command.CATEGORY_IMPORT_EXPORT)
455 def archive(ui, repo, dest, **opts):
459 def archive(ui, repo, dest, **opts):
456 '''create an unversioned archive of a repository revision
460 '''create an unversioned archive of a repository revision
457
461
@@ -530,7 +534,8 b' def archive(ui, repo, dest, **opts):'
530 ('r', 'rev', '', _('revision to backout'), _('REV')),
534 ('r', 'rev', '', _('revision to backout'), _('REV')),
531 ('e', 'edit', False, _('invoke editor on commit messages')),
535 ('e', 'edit', False, _('invoke editor on commit messages')),
532 ] + mergetoolopts + walkopts + commitopts + commitopts2,
536 ] + mergetoolopts + walkopts + commitopts + commitopts2,
533 _('[OPTION]... [-r] REV'))
537 _('[OPTION]... [-r] REV'),
538 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT)
534 def backout(ui, repo, node=None, rev=None, **opts):
539 def backout(ui, repo, node=None, rev=None, **opts):
535 '''reverse effect of earlier changeset
540 '''reverse effect of earlier changeset
536
541
@@ -693,7 +698,8 b' def _dobackout(ui, repo, node=None, rev='
693 ('e', 'extend', False, _('extend the bisect range')),
698 ('e', 'extend', False, _('extend the bisect range')),
694 ('c', 'command', '', _('use command to check changeset state'), _('CMD')),
699 ('c', 'command', '', _('use command to check changeset state'), _('CMD')),
695 ('U', 'noupdate', False, _('do not update to target'))],
700 ('U', 'noupdate', False, _('do not update to target'))],
696 _("[-gbsr] [-U] [-c CMD] [REV]"))
701 _("[-gbsr] [-U] [-c CMD] [REV]"),
702 helpcategory=command.CATEGORY_CHANGE_NAVIGATION)
697 def bisect(ui, repo, rev=None, extra=None, command=None,
703 def bisect(ui, repo, rev=None, extra=None, command=None,
698 reset=None, good=None, bad=None, skip=None, extend=None,
704 reset=None, good=None, bad=None, skip=None, extend=None,
699 noupdate=None):
705 noupdate=None):
@@ -926,7 +932,8 b' def bisect(ui, repo, rev=None, extra=Non'
926 ('i', 'inactive', False, _('mark a bookmark inactive')),
932 ('i', 'inactive', False, _('mark a bookmark inactive')),
927 ('l', 'list', False, _('list existing bookmarks')),
933 ('l', 'list', False, _('list existing bookmarks')),
928 ] + formatteropts,
934 ] + formatteropts,
929 _('hg bookmarks [OPTIONS]... [NAME]...'))
935 _('hg bookmarks [OPTIONS]... [NAME]...'),
936 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
930 def bookmark(ui, repo, *names, **opts):
937 def bookmark(ui, repo, *names, **opts):
931 '''create a new bookmark or list existing bookmarks
938 '''create a new bookmark or list existing bookmarks
932
939
@@ -1046,7 +1053,8 b' def bookmark(ui, repo, *names, **opts):'
1046 ('C', 'clean', None, _('reset branch name to parent branch name')),
1053 ('C', 'clean', None, _('reset branch name to parent branch name')),
1047 ('r', 'rev', [], _('change branches of the given revs (EXPERIMENTAL)')),
1054 ('r', 'rev', [], _('change branches of the given revs (EXPERIMENTAL)')),
1048 ],
1055 ],
1049 _('[-fC] [NAME]'))
1056 _('[-fC] [NAME]'),
1057 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
1050 def branch(ui, repo, label=None, **opts):
1058 def branch(ui, repo, label=None, **opts):
1051 """set or show the current branch name
1059 """set or show the current branch name
1052
1060
@@ -1121,6 +1129,7 b' def branch(ui, repo, label=None, **opts)'
1121 ('c', 'closed', False, _('show normal and closed branches')),
1129 ('c', 'closed', False, _('show normal and closed branches')),
1122 ] + formatteropts,
1130 ] + formatteropts,
1123 _('[-c]'),
1131 _('[-c]'),
1132 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION,
1124 intents={INTENT_READONLY})
1133 intents={INTENT_READONLY})
1125 def branches(ui, repo, active=False, closed=False, **opts):
1134 def branches(ui, repo, active=False, closed=False, **opts):
1126 """list repository named branches
1135 """list repository named branches
@@ -1206,7 +1215,8 b' def branches(ui, repo, active=False, clo'
1206 ('a', 'all', None, _('bundle all changesets in the repository')),
1215 ('a', 'all', None, _('bundle all changesets in the repository')),
1207 ('t', 'type', 'bzip2', _('bundle compression type to use'), _('TYPE')),
1216 ('t', 'type', 'bzip2', _('bundle compression type to use'), _('TYPE')),
1208 ] + remoteopts,
1217 ] + remoteopts,
1209 _('[-f] [-t BUNDLESPEC] [-a] [-r REV]... [--base REV]... FILE [DEST]'))
1218 _('[-f] [-t BUNDLESPEC] [-a] [-r REV]... [--base REV]... FILE [DEST]'),
1219 helpcategory=command.CATEGORY_IMPORT_EXPORT)
1210 def bundle(ui, repo, fname, dest=None, **opts):
1220 def bundle(ui, repo, fname, dest=None, **opts):
1211 """create a bundle file
1221 """create a bundle file
1212
1222
@@ -1333,6 +1343,7 b' def bundle(ui, repo, fname, dest=None, *'
1333 ('', 'decode', None, _('apply any matching decode filter')),
1343 ('', 'decode', None, _('apply any matching decode filter')),
1334 ] + walkopts + formatteropts,
1344 ] + walkopts + formatteropts,
1335 _('[OPTION]... FILE...'),
1345 _('[OPTION]... FILE...'),
1346 helpcategory=command.CATEGORY_FILE_CONTENTS,
1336 inferrepo=True,
1347 inferrepo=True,
1337 intents={INTENT_READONLY})
1348 intents={INTENT_READONLY})
1338 def cat(ui, repo, file1, *pats, **opts):
1349 def cat(ui, repo, file1, *pats, **opts):
@@ -1404,6 +1415,7 b' def cat(ui, repo, file1, *pats, **opts):'
1404 _('clone with minimal data processing')),
1415 _('clone with minimal data processing')),
1405 ] + remoteopts,
1416 ] + remoteopts,
1406 _('[OPTION]... SOURCE [DEST]'),
1417 _('[OPTION]... SOURCE [DEST]'),
1418 helpcategory=command.CATEGORY_REPO_CREATION,
1407 norepo=True)
1419 norepo=True)
1408 def clone(ui, source, dest=None, **opts):
1420 def clone(ui, source, dest=None, **opts):
1409 """make a copy of an existing repository
1421 """make a copy of an existing repository
@@ -1554,6 +1566,7 b' def clone(ui, source, dest=None, **opts)'
1554 ('i', 'interactive', None, _('use interactive mode')),
1566 ('i', 'interactive', None, _('use interactive mode')),
1555 ] + walkopts + commitopts + commitopts2 + subrepoopts,
1567 ] + walkopts + commitopts + commitopts2 + subrepoopts,
1556 _('[OPTION]... [FILE]...'),
1568 _('[OPTION]... [FILE]...'),
1569 helpcategory=command.CATEGORY_COMMITTING,
1557 inferrepo=True)
1570 inferrepo=True)
1558 def commit(ui, repo, *pats, **opts):
1571 def commit(ui, repo, *pats, **opts):
1559 """commit the specified files or all outstanding changes
1572 """commit the specified files or all outstanding changes
@@ -1706,6 +1719,7 b' def _docommit(ui, repo, *pats, **opts):'
1706 ('l', 'local', None, _('edit repository config')),
1719 ('l', 'local', None, _('edit repository config')),
1707 ('g', 'global', None, _('edit global config'))] + formatteropts,
1720 ('g', 'global', None, _('edit global config'))] + formatteropts,
1708 _('[-u] [NAME]...'),
1721 _('[-u] [NAME]...'),
1722 helpcategory=command.CATEGORY_HELP,
1709 optionalrepo=True,
1723 optionalrepo=True,
1710 intents={INTENT_READONLY})
1724 intents={INTENT_READONLY})
1711 def config(ui, repo, *values, **opts):
1725 def config(ui, repo, *values, **opts):
@@ -1824,7 +1838,8 b' def config(ui, repo, *values, **opts):'
1824 [('A', 'after', None, _('record a copy that has already occurred')),
1838 [('A', 'after', None, _('record a copy that has already occurred')),
1825 ('f', 'force', None, _('forcibly copy over an existing managed file')),
1839 ('f', 'force', None, _('forcibly copy over an existing managed file')),
1826 ] + walkopts + dryrunopts,
1840 ] + walkopts + dryrunopts,
1827 _('[OPTION]... [SOURCE]... DEST'))
1841 _('[OPTION]... [SOURCE]... DEST'),
1842 helpcategory=command.CATEGORY_FILE_CONTENTS)
1828 def copy(ui, repo, *pats, **opts):
1843 def copy(ui, repo, *pats, **opts):
1829 """mark files as copied for the next commit
1844 """mark files as copied for the next commit
1830
1845
@@ -1845,7 +1860,10 b' def copy(ui, repo, *pats, **opts):'
1845 with repo.wlock(False):
1860 with repo.wlock(False):
1846 return cmdutil.copy(ui, repo, pats, opts)
1861 return cmdutil.copy(ui, repo, pats, opts)
1847
1862
1848 @command('debugcommands', [], _('[COMMAND]'), norepo=True)
1863 @command(
1864 'debugcommands', [], _('[COMMAND]'),
1865 helpcategory=command.CATEGORY_HELP,
1866 norepo=True)
1849 def debugcommands(ui, cmd='', *args):
1867 def debugcommands(ui, cmd='', *args):
1850 """list all available commands and options"""
1868 """list all available commands and options"""
1851 for cmd, vals in sorted(table.iteritems()):
1869 for cmd, vals in sorted(table.iteritems()):
@@ -1856,6 +1874,7 b" def debugcommands(ui, cmd='', *args):"
1856 @command('debugcomplete',
1874 @command('debugcomplete',
1857 [('o', 'options', None, _('show the command options'))],
1875 [('o', 'options', None, _('show the command options'))],
1858 _('[-o] CMD'),
1876 _('[-o] CMD'),
1877 helpcategory=command.CATEGORY_HELP,
1859 norepo=True)
1878 norepo=True)
1860 def debugcomplete(ui, cmd='', **opts):
1879 def debugcomplete(ui, cmd='', **opts):
1861 """returns the completion list associated with the given command"""
1880 """returns the completion list associated with the given command"""
@@ -1886,6 +1905,7 b" def debugcomplete(ui, cmd='', **opts):"
1886 ('c', 'change', '', _('change made by revision'), _('REV'))
1905 ('c', 'change', '', _('change made by revision'), _('REV'))
1887 ] + diffopts + diffopts2 + walkopts + subrepoopts,
1906 ] + diffopts + diffopts2 + walkopts + subrepoopts,
1888 _('[OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...'),
1907 _('[OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...'),
1908 helpcategory=command.CATEGORY_FILE_CONTENTS,
1889 inferrepo=True,
1909 inferrepo=True,
1890 intents={INTENT_READONLY})
1910 intents={INTENT_READONLY})
1891 def diff(ui, repo, *pats, **opts):
1911 def diff(ui, repo, *pats, **opts):
@@ -1984,6 +2004,7 b' def diff(ui, repo, *pats, **opts):'
1984 ('r', 'rev', [], _('revisions to export'), _('REV')),
2004 ('r', 'rev', [], _('revisions to export'), _('REV')),
1985 ] + diffopts + formatteropts,
2005 ] + diffopts + formatteropts,
1986 _('[OPTION]... [-o OUTFILESPEC] [-r] [REV]...'),
2006 _('[OPTION]... [-o OUTFILESPEC] [-r] [REV]...'),
2007 helpcategory=command.CATEGORY_IMPORT_EXPORT,
1987 intents={INTENT_READONLY})
2008 intents={INTENT_READONLY})
1988 def export(ui, repo, *changesets, **opts):
2009 def export(ui, repo, *changesets, **opts):
1989 """dump the header and diffs for one or more changesets
2010 """dump the header and diffs for one or more changesets
@@ -2104,6 +2125,7 b' def export(ui, repo, *changesets, **opts'
2104 ('0', 'print0', None, _('end filenames with NUL, for use with xargs')),
2125 ('0', 'print0', None, _('end filenames with NUL, for use with xargs')),
2105 ] + walkopts + formatteropts + subrepoopts,
2126 ] + walkopts + formatteropts + subrepoopts,
2106 _('[OPTION]... [FILE]...'),
2127 _('[OPTION]... [FILE]...'),
2128 helpcategory=command.CATEGORY_WORKING_DIRECTORY,
2107 intents={INTENT_READONLY})
2129 intents={INTENT_READONLY})
2108 def files(ui, repo, *pats, **opts):
2130 def files(ui, repo, *pats, **opts):
2109 """list tracked files
2131 """list tracked files
@@ -2179,7 +2201,9 b' def files(ui, repo, *pats, **opts):'
2179 '^forget',
2201 '^forget',
2180 [('i', 'interactive', None, _('use interactive mode')),
2202 [('i', 'interactive', None, _('use interactive mode')),
2181 ] + walkopts + dryrunopts,
2203 ] + walkopts + dryrunopts,
2182 _('[OPTION]... FILE...'), inferrepo=True)
2204 _('[OPTION]... FILE...'),
2205 helpcategory=command.CATEGORY_WORKING_DIRECTORY,
2206 inferrepo=True)
2183 def forget(ui, repo, *pats, **opts):
2207 def forget(ui, repo, *pats, **opts):
2184 """forget the specified files on the next commit
2208 """forget the specified files on the next commit
2185
2209
@@ -2236,7 +2260,8 b' def forget(ui, repo, *pats, **opts):'
2236 ('U', 'currentuser', False,
2260 ('U', 'currentuser', False,
2237 _('record the current user as committer'), _('DATE'))]
2261 _('record the current user as committer'), _('DATE'))]
2238 + commitopts2 + mergetoolopts + dryrunopts,
2262 + commitopts2 + mergetoolopts + dryrunopts,
2239 _('[OPTION]... [-r REV]... REV...'))
2263 _('[OPTION]... [-r REV]... REV...'),
2264 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT)
2240 def graft(ui, repo, *revs, **opts):
2265 def graft(ui, repo, *revs, **opts):
2241 '''copy changes from other branches onto the current branch
2266 '''copy changes from other branches onto the current branch
2242
2267
@@ -2624,6 +2649,7 b' def _stopgraft(ui, repo, graftstate):'
2624 ('d', 'date', None, _('list the date (short with -q)')),
2649 ('d', 'date', None, _('list the date (short with -q)')),
2625 ] + formatteropts + walkopts,
2650 ] + formatteropts + walkopts,
2626 _('[OPTION]... PATTERN [FILE]...'),
2651 _('[OPTION]... PATTERN [FILE]...'),
2652 helpcategory=command.CATEGORY_FILE_CONTENTS,
2627 inferrepo=True,
2653 inferrepo=True,
2628 intents={INTENT_READONLY})
2654 intents={INTENT_READONLY})
2629 def grep(ui, repo, pattern, *pats, **opts):
2655 def grep(ui, repo, pattern, *pats, **opts):
@@ -2917,6 +2943,7 b' def grep(ui, repo, pattern, *pats, **opt'
2917 ('c', 'closed', False, _('show normal and closed branch heads')),
2943 ('c', 'closed', False, _('show normal and closed branch heads')),
2918 ] + templateopts,
2944 ] + templateopts,
2919 _('[-ct] [-r STARTREV] [REV]...'),
2945 _('[-ct] [-r STARTREV] [REV]...'),
2946 helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
2920 intents={INTENT_READONLY})
2947 intents={INTENT_READONLY})
2921 def heads(ui, repo, *branchrevs, **opts):
2948 def heads(ui, repo, *branchrevs, **opts):
2922 """show branch heads
2949 """show branch heads
@@ -2993,6 +3020,7 b' def heads(ui, repo, *branchrevs, **opts)'
2993 ('s', 'system', [], _('show help for specific platform(s)')),
3020 ('s', 'system', [], _('show help for specific platform(s)')),
2994 ],
3021 ],
2995 _('[-ecks] [TOPIC]'),
3022 _('[-ecks] [TOPIC]'),
3023 helpcategory=command.CATEGORY_HELP,
2996 norepo=True,
3024 norepo=True,
2997 intents={INTENT_READONLY})
3025 intents={INTENT_READONLY})
2998 def help_(ui, name=None, **opts):
3026 def help_(ui, name=None, **opts):
@@ -3036,6 +3064,7 b' def help_(ui, name=None, **opts):'
3036 ('B', 'bookmarks', None, _('show bookmarks')),
3064 ('B', 'bookmarks', None, _('show bookmarks')),
3037 ] + remoteopts + formatteropts,
3065 ] + remoteopts + formatteropts,
3038 _('[-nibtB] [-r REV] [SOURCE]'),
3066 _('[-nibtB] [-r REV] [SOURCE]'),
3067 helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
3039 optionalrepo=True,
3068 optionalrepo=True,
3040 intents={INTENT_READONLY})
3069 intents={INTENT_READONLY})
3041 def identify(ui, repo, source=None, rev=None,
3070 def identify(ui, repo, source=None, rev=None,
@@ -3234,7 +3263,8 b' def identify(ui, repo, source=None, rev='
3234 ('', 'import-branch', None,
3263 ('', 'import-branch', None,
3235 _('use any branch information in patch (implied by --exact)'))] +
3264 _('use any branch information in patch (implied by --exact)'))] +
3236 commitopts + commitopts2 + similarityopts,
3265 commitopts + commitopts2 + similarityopts,
3237 _('[OPTION]... PATCH...'))
3266 _('[OPTION]... PATCH...'),
3267 helpcategory=command.CATEGORY_IMPORT_EXPORT)
3238 def import_(ui, repo, patch1=None, *patches, **opts):
3268 def import_(ui, repo, patch1=None, *patches, **opts):
3239 """import an ordered set of patches
3269 """import an ordered set of patches
3240
3270
@@ -3431,7 +3461,8 b' def import_(ui, repo, patch1=None, *patc'
3431 ('b', 'branch', [],
3461 ('b', 'branch', [],
3432 _('a specific branch you would like to pull'), _('BRANCH')),
3462 _('a specific branch you would like to pull'), _('BRANCH')),
3433 ] + logopts + remoteopts + subrepoopts,
3463 ] + logopts + remoteopts + subrepoopts,
3434 _('[-p] [-n] [-M] [-f] [-r REV]... [--bundle FILENAME] [SOURCE]'))
3464 _('[-p] [-n] [-M] [-f] [-r REV]... [--bundle FILENAME] [SOURCE]'),
3465 helpcategory=command.CATEGORY_REMOTE_REPO_MANAGEMENT)
3435 def incoming(ui, repo, source="default", **opts):
3466 def incoming(ui, repo, source="default", **opts):
3436 """show new changesets found in source
3467 """show new changesets found in source
3437
3468
@@ -3519,6 +3550,7 b' def incoming(ui, repo, source="default",'
3519
3550
3520
3551
3521 @command('^init', remoteopts, _('[-e CMD] [--remotecmd CMD] [DEST]'),
3552 @command('^init', remoteopts, _('[-e CMD] [--remotecmd CMD] [DEST]'),
3553 helpcategory=command.CATEGORY_REPO_CREATION,
3522 norepo=True)
3554 norepo=True)
3523 def init(ui, dest=".", **opts):
3555 def init(ui, dest=".", **opts):
3524 """create a new repository in the given directory
3556 """create a new repository in the given directory
@@ -3541,7 +3573,8 b' def init(ui, dest=".", **opts):'
3541 ('0', 'print0', None, _('end filenames with NUL, for use with xargs')),
3573 ('0', 'print0', None, _('end filenames with NUL, for use with xargs')),
3542 ('f', 'fullpath', None, _('print complete paths from the filesystem root')),
3574 ('f', 'fullpath', None, _('print complete paths from the filesystem root')),
3543 ] + walkopts,
3575 ] + walkopts,
3544 _('[OPTION]... [PATTERN]...'))
3576 _('[OPTION]... [PATTERN]...'),
3577 helpcategory=command.CATEGORY_WORKING_DIRECTORY)
3545 def locate(ui, repo, *pats, **opts):
3578 def locate(ui, repo, *pats, **opts):
3546 """locate files matching specific patterns (DEPRECATED)
3579 """locate files matching specific patterns (DEPRECATED)
3547
3580
@@ -3616,6 +3649,7 b' def locate(ui, repo, *pats, **opts):'
3616 _('do not display revision or any of its ancestors'), _('REV')),
3649 _('do not display revision or any of its ancestors'), _('REV')),
3617 ] + logopts + walkopts,
3650 ] + logopts + walkopts,
3618 _('[OPTION]... [FILE]'),
3651 _('[OPTION]... [FILE]'),
3652 helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
3619 inferrepo=True,
3653 inferrepo=True,
3620 intents={INTENT_READONLY})
3654 intents={INTENT_READONLY})
3621 def log(ui, repo, *pats, **opts):
3655 def log(ui, repo, *pats, **opts):
@@ -3786,6 +3820,7 b' def log(ui, repo, *pats, **opts):'
3786 ('', 'all', False, _("list files from all revisions"))]
3820 ('', 'all', False, _("list files from all revisions"))]
3787 + formatteropts,
3821 + formatteropts,
3788 _('[-r REV]'),
3822 _('[-r REV]'),
3823 helpcategory=command.CATEGORY_MAINTENANCE,
3789 intents={INTENT_READONLY})
3824 intents={INTENT_READONLY})
3790 def manifest(ui, repo, node=None, rev=None, **opts):
3825 def manifest(ui, repo, node=None, rev=None, **opts):
3791 """output the current or given revision of the project manifest
3826 """output the current or given revision of the project manifest
@@ -3851,7 +3886,8 b' def manifest(ui, repo, node=None, rev=No'
3851 _('review revisions to merge (no merge is performed)')),
3886 _('review revisions to merge (no merge is performed)')),
3852 ('', 'abort', None, _('abort the ongoing merge')),
3887 ('', 'abort', None, _('abort the ongoing merge')),
3853 ] + mergetoolopts,
3888 ] + mergetoolopts,
3854 _('[-P] [[-r] REV]'))
3889 _('[-P] [[-r] REV]'),
3890 helpcategory=command.CATEGORY_CHANGE_MANAGEMENT)
3855 def merge(ui, repo, node=None, **opts):
3891 def merge(ui, repo, node=None, **opts):
3856 """merge another revision into working directory
3892 """merge another revision into working directory
3857
3893
@@ -3932,7 +3968,8 b' def merge(ui, repo, node=None, **opts):'
3932 ('b', 'branch', [], _('a specific branch you would like to push'),
3968 ('b', 'branch', [], _('a specific branch you would like to push'),
3933 _('BRANCH')),
3969 _('BRANCH')),
3934 ] + logopts + remoteopts + subrepoopts,
3970 ] + logopts + remoteopts + subrepoopts,
3935 _('[-M] [-p] [-n] [-f] [-r REV]... [DEST]'))
3971 _('[-M] [-p] [-n] [-f] [-r REV]... [DEST]'),
3972 helpcategory=command.CATEGORY_REMOTE_REPO_MANAGEMENT)
3936 def outgoing(ui, repo, dest=None, **opts):
3973 def outgoing(ui, repo, dest=None, **opts):
3937 """show changesets not found in the destination
3974 """show changesets not found in the destination
3938
3975
@@ -4012,6 +4049,7 b' def outgoing(ui, repo, dest=None, **opts'
4012 [('r', 'rev', '', _('show parents of the specified revision'), _('REV')),
4049 [('r', 'rev', '', _('show parents of the specified revision'), _('REV')),
4013 ] + templateopts,
4050 ] + templateopts,
4014 _('[-r REV] [FILE]'),
4051 _('[-r REV] [FILE]'),
4052 helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
4015 inferrepo=True)
4053 inferrepo=True)
4016 def parents(ui, repo, file_=None, **opts):
4054 def parents(ui, repo, file_=None, **opts):
4017 """show the parents of the working directory or revision (DEPRECATED)
4055 """show the parents of the working directory or revision (DEPRECATED)
@@ -4068,8 +4106,9 b' def parents(ui, repo, file_=None, **opts'
4068 displayer.show(repo[n])
4106 displayer.show(repo[n])
4069 displayer.close()
4107 displayer.close()
4070
4108
4071 @command('paths', formatteropts, _('[NAME]'), optionalrepo=True,
4109 @command('paths', formatteropts, _('[NAME]'),
4072 intents={INTENT_READONLY})
4110 helpcategory=command.CATEGORY_REMOTE_REPO_MANAGEMENT,
4111 optionalrepo=True, intents={INTENT_READONLY})
4073 def paths(ui, repo, search=None, **opts):
4112 def paths(ui, repo, search=None, **opts):
4074 """show aliases for remote repositories
4113 """show aliases for remote repositories
4075
4114
@@ -4157,7 +4196,8 b' def paths(ui, repo, search=None, **opts)'
4157 ('f', 'force', False, _('allow to move boundary backward')),
4196 ('f', 'force', False, _('allow to move boundary backward')),
4158 ('r', 'rev', [], _('target revision'), _('REV')),
4197 ('r', 'rev', [], _('target revision'), _('REV')),
4159 ],
4198 ],
4160 _('[-p|-d|-s] [-f] [-r] [REV...]'))
4199 _('[-p|-d|-s] [-f] [-r] [REV...]'),
4200 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
4161 def phase(ui, repo, *revs, **opts):
4201 def phase(ui, repo, *revs, **opts):
4162 """set or show the current phase name
4202 """set or show the current phase name
4163
4203
@@ -4274,7 +4314,8 b' def postincoming(ui, repo, modheads, opt'
4274 ('b', 'branch', [], _('a specific branch you would like to pull'),
4314 ('b', 'branch', [], _('a specific branch you would like to pull'),
4275 _('BRANCH')),
4315 _('BRANCH')),
4276 ] + remoteopts,
4316 ] + remoteopts,
4277 _('[-u] [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [SOURCE]'))
4317 _('[-u] [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [SOURCE]'),
4318 helpcategory=command.CATEGORY_REMOTE_REPO_MANAGEMENT)
4278 def pull(ui, repo, source="default", **opts):
4319 def pull(ui, repo, source="default", **opts):
4279 """pull changes from the specified source
4320 """pull changes from the specified source
4280
4321
@@ -4405,7 +4446,8 b' def pull(ui, repo, source="default", **o'
4405 ('', 'new-branch', False, _('allow pushing a new branch')),
4446 ('', 'new-branch', False, _('allow pushing a new branch')),
4406 ('', 'pushvars', [], _('variables that can be sent to server (ADVANCED)')),
4447 ('', 'pushvars', [], _('variables that can be sent to server (ADVANCED)')),
4407 ] + remoteopts,
4448 ] + remoteopts,
4408 _('[-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]'))
4449 _('[-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]'),
4450 helpcategory=command.CATEGORY_REMOTE_REPO_MANAGEMENT)
4409 def push(ui, repo, dest=None, **opts):
4451 def push(ui, repo, dest=None, **opts):
4410 """push changes to the specified destination
4452 """push changes to the specified destination
4411
4453
@@ -4531,7 +4573,7 b' def push(ui, repo, dest=None, **opts):'
4531
4573
4532 return result
4574 return result
4533
4575
4534 @command('recover', [])
4576 @command('recover', [], helpcategory=command.CATEGORY_MAINTENANCE)
4535 def recover(ui, repo):
4577 def recover(ui, repo):
4536 """roll back an interrupted transaction
4578 """roll back an interrupted transaction
4537
4579
@@ -4553,6 +4595,7 b' def recover(ui, repo):'
4553 _('forget added files, delete modified files')),
4595 _('forget added files, delete modified files')),
4554 ] + subrepoopts + walkopts + dryrunopts,
4596 ] + subrepoopts + walkopts + dryrunopts,
4555 _('[OPTION]... FILE...'),
4597 _('[OPTION]... FILE...'),
4598 helpcategory=command.CATEGORY_WORKING_DIRECTORY,
4556 inferrepo=True)
4599 inferrepo=True)
4557 def remove(ui, repo, *pats, **opts):
4600 def remove(ui, repo, *pats, **opts):
4558 """remove the specified files on the next commit
4601 """remove the specified files on the next commit
@@ -4608,7 +4651,8 b' def remove(ui, repo, *pats, **opts):'
4608 [('A', 'after', None, _('record a rename that has already occurred')),
4651 [('A', 'after', None, _('record a rename that has already occurred')),
4609 ('f', 'force', None, _('forcibly copy over an existing managed file')),
4652 ('f', 'force', None, _('forcibly copy over an existing managed file')),
4610 ] + walkopts + dryrunopts,
4653 ] + walkopts + dryrunopts,
4611 _('[OPTION]... SOURCE... DEST'))
4654 _('[OPTION]... SOURCE... DEST'),
4655 helpcategory=command.CATEGORY_WORKING_DIRECTORY)
4612 def rename(ui, repo, *pats, **opts):
4656 def rename(ui, repo, *pats, **opts):
4613 """rename files; equivalent of copy + remove
4657 """rename files; equivalent of copy + remove
4614
4658
@@ -4638,6 +4682,7 b' def rename(ui, repo, *pats, **opts):'
4638 ('', 're-merge', None, _('re-merge files'))]
4682 ('', 're-merge', None, _('re-merge files'))]
4639 + mergetoolopts + walkopts + formatteropts,
4683 + mergetoolopts + walkopts + formatteropts,
4640 _('[OPTION]... [FILE]...'),
4684 _('[OPTION]... [FILE]...'),
4685 helpcategory=command.CATEGORY_WORKING_DIRECTORY,
4641 inferrepo=True)
4686 inferrepo=True)
4642 def resolve(ui, repo, *pats, **opts):
4687 def resolve(ui, repo, *pats, **opts):
4643 """redo merges or set/view the merge status of files
4688 """redo merges or set/view the merge status of files
@@ -4939,7 +4984,8 b' def resolve(ui, repo, *pats, **opts):'
4939 ('C', 'no-backup', None, _('do not save backup copies of files')),
4984 ('C', 'no-backup', None, _('do not save backup copies of files')),
4940 ('i', 'interactive', None, _('interactively select the changes')),
4985 ('i', 'interactive', None, _('interactively select the changes')),
4941 ] + walkopts + dryrunopts,
4986 ] + walkopts + dryrunopts,
4942 _('[OPTION]... [-r REV] [NAME]...'))
4987 _('[OPTION]... [-r REV] [NAME]...'),
4988 helpcategory=command.CATEGORY_WORKING_DIRECTORY)
4943 def revert(ui, repo, *pats, **opts):
4989 def revert(ui, repo, *pats, **opts):
4944 """restore files to their checkout state
4990 """restore files to their checkout state
4945
4991
@@ -5019,8 +5065,10 b' def revert(ui, repo, *pats, **opts):'
5019 return cmdutil.revert(ui, repo, ctx, (parent, p2), *pats,
5065 return cmdutil.revert(ui, repo, ctx, (parent, p2), *pats,
5020 **pycompat.strkwargs(opts))
5066 **pycompat.strkwargs(opts))
5021
5067
5022 @command('rollback', dryrunopts +
5068 @command(
5023 [('f', 'force', False, _('ignore safety measures'))])
5069 'rollback',
5070 dryrunopts + [('f', 'force', False, _('ignore safety measures'))],
5071 helpcategory=command.CATEGORY_MAINTENANCE)
5024 def rollback(ui, repo, **opts):
5072 def rollback(ui, repo, **opts):
5025 """roll back the last transaction (DANGEROUS) (DEPRECATED)
5073 """roll back the last transaction (DANGEROUS) (DEPRECATED)
5026
5074
@@ -5072,7 +5120,9 b' def rollback(ui, repo, **opts):'
5072 return repo.rollback(dryrun=opts.get(r'dry_run'),
5120 return repo.rollback(dryrun=opts.get(r'dry_run'),
5073 force=opts.get(r'force'))
5121 force=opts.get(r'force'))
5074
5122
5075 @command('root', [], intents={INTENT_READONLY})
5123 @command(
5124 'root', [], intents={INTENT_READONLY},
5125 helpcategory=command.CATEGORY_WORKING_DIRECTORY)
5076 def root(ui, repo):
5126 def root(ui, repo):
5077 """print the root (top) of the current working directory
5127 """print the root (top) of the current working directory
5078
5128
@@ -5110,6 +5160,7 b' def root(ui, repo):'
5110 ('', 'print-url', None, _('start and print only the URL'))]
5160 ('', 'print-url', None, _('start and print only the URL'))]
5111 + subrepoopts,
5161 + subrepoopts,
5112 _('[OPTION]...'),
5162 _('[OPTION]...'),
5163 helpcategory=command.CATEGORY_REMOTE_REPO_MANAGEMENT,
5113 optionalrepo=True)
5164 optionalrepo=True)
5114 def serve(ui, repo, **opts):
5165 def serve(ui, repo, **opts):
5115 """start stand-alone webserver
5166 """start stand-alone webserver
@@ -5171,6 +5222,7 b' def serve(ui, repo, **opts):'
5171 ('', 'change', '', _('list the changed files of a revision'), _('REV')),
5222 ('', 'change', '', _('list the changed files of a revision'), _('REV')),
5172 ] + walkopts + subrepoopts + formatteropts,
5223 ] + walkopts + subrepoopts + formatteropts,
5173 _('[OPTION]... [FILE]...'),
5224 _('[OPTION]... [FILE]...'),
5225 helpcategory=command.CATEGORY_WORKING_DIRECTORY,
5174 inferrepo=True,
5226 inferrepo=True,
5175 intents={INTENT_READONLY})
5227 intents={INTENT_READONLY})
5176 def status(ui, repo, *pats, **opts):
5228 def status(ui, repo, *pats, **opts):
@@ -5360,6 +5412,7 b' def status(ui, repo, *pats, **opts):'
5360 @command('^summary|sum',
5412 @command('^summary|sum',
5361 [('', 'remote', None, _('check for push and pull'))],
5413 [('', 'remote', None, _('check for push and pull'))],
5362 '[--remote]',
5414 '[--remote]',
5415 helpcategory=command.CATEGORY_WORKING_DIRECTORY,
5363 intents={INTENT_READONLY})
5416 intents={INTENT_READONLY})
5364 def summary(ui, repo, **opts):
5417 def summary(ui, repo, **opts):
5365 """summarize working directory state
5418 """summarize working directory state
@@ -5650,7 +5703,8 b' def summary(ui, repo, **opts):'
5650 ('e', 'edit', None, _('invoke editor on commit messages')),
5703 ('e', 'edit', None, _('invoke editor on commit messages')),
5651 ('m', 'message', '', _('use text as commit message'), _('TEXT')),
5704 ('m', 'message', '', _('use text as commit message'), _('TEXT')),
5652 ] + commitopts2,
5705 ] + commitopts2,
5653 _('[-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...'))
5706 _('[-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...'),
5707 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION)
5654 def tag(ui, repo, name1, *names, **opts):
5708 def tag(ui, repo, name1, *names, **opts):
5655 """add one or more tags for the current or given revision
5709 """add one or more tags for the current or given revision
5656
5710
@@ -5756,7 +5810,10 b' def tag(ui, repo, name1, *names, **opts)'
5756 tagsmod.tag(repo, names, node, message, opts.get('local'),
5810 tagsmod.tag(repo, names, node, message, opts.get('local'),
5757 opts.get('user'), date, editor=editor)
5811 opts.get('user'), date, editor=editor)
5758
5812
5759 @command('tags', formatteropts, '', intents={INTENT_READONLY})
5813 @command(
5814 'tags', formatteropts, '',
5815 helpcategory=command.CATEGORY_CHANGE_ORGANIZATION,
5816 intents={INTENT_READONLY})
5760 def tags(ui, repo, **opts):
5817 def tags(ui, repo, **opts):
5761 """list repository tags
5818 """list repository tags
5762
5819
@@ -5806,7 +5863,8 b' def tags(ui, repo, **opts):'
5806 [('p', 'patch', None, _('show patch')),
5863 [('p', 'patch', None, _('show patch')),
5807 ('g', 'git', None, _('use git extended diff format')),
5864 ('g', 'git', None, _('use git extended diff format')),
5808 ] + templateopts,
5865 ] + templateopts,
5809 _('[-p] [-g]'))
5866 _('[-p] [-g]'),
5867 helpcategory=command.CATEGORY_CHANGE_NAVIGATION)
5810 def tip(ui, repo, **opts):
5868 def tip(ui, repo, **opts):
5811 """show the tip revision (DEPRECATED)
5869 """show the tip revision (DEPRECATED)
5812
5870
@@ -5831,7 +5889,8 b' def tip(ui, repo, **opts):'
5831 @command('unbundle',
5889 @command('unbundle',
5832 [('u', 'update', None,
5890 [('u', 'update', None,
5833 _('update to new branch head if changesets were unbundled'))],
5891 _('update to new branch head if changesets were unbundled'))],
5834 _('[-u] FILE...'))
5892 _('[-u] FILE...'),
5893 helpcategory=command.CATEGORY_IMPORT_EXPORT)
5835 def unbundle(ui, repo, fname1, *fnames, **opts):
5894 def unbundle(ui, repo, fname1, *fnames, **opts):
5836 """apply one or more bundle files
5895 """apply one or more bundle files
5837
5896
@@ -5875,7 +5934,8 b' def unbundle(ui, repo, fname1, *fnames, '
5875 ('d', 'date', '', _('tipmost revision matching date'), _('DATE')),
5934 ('d', 'date', '', _('tipmost revision matching date'), _('DATE')),
5876 ('r', 'rev', '', _('revision'), _('REV'))
5935 ('r', 'rev', '', _('revision'), _('REV'))
5877 ] + mergetoolopts,
5936 ] + mergetoolopts,
5878 _('[-C|-c|-m] [-d DATE] [[-r] REV]'))
5937 _('[-C|-c|-m] [-d DATE] [[-r] REV]'),
5938 helpcategory=command.CATEGORY_WORKING_DIRECTORY)
5879 def update(ui, repo, node=None, **opts):
5939 def update(ui, repo, node=None, **opts):
5880 """update working directory (or switch revisions)
5940 """update working directory (or switch revisions)
5881
5941
@@ -5986,7 +6046,7 b' def update(ui, repo, node=None, **opts):'
5986 ui.warn("(%s)\n" % obsfatemsg)
6046 ui.warn("(%s)\n" % obsfatemsg)
5987 return ret
6047 return ret
5988
6048
5989 @command('verify', [])
6049 @command('verify', [], helpcategory=command.CATEGORY_MAINTENANCE)
5990 def verify(ui, repo):
6050 def verify(ui, repo):
5991 """verify the integrity of the repository
6051 """verify the integrity of the repository
5992
6052
@@ -6005,8 +6065,9 b' def verify(ui, repo):'
6005 """
6065 """
6006 return hg.verify(repo)
6066 return hg.verify(repo)
6007
6067
6008 @command('version', [] + formatteropts, norepo=True,
6068 @command(
6009 intents={INTENT_READONLY})
6069 'version', [] + formatteropts, helpcategory=command.CATEGORY_HELP,
6070 norepo=True, intents={INTENT_READONLY})
6010 def version_(ui, **opts):
6071 def version_(ui, **opts):
6011 """output version and copyright information
6072 """output version and copyright information
6012
6073
@@ -53,12 +53,38 b' from .hgweb import ('
53 # after/before the appropriate item, rather than replacing the list or
53 # after/before the appropriate item, rather than replacing the list or
54 # assuming absolute positions.
54 # assuming absolute positions.
55 CATEGORY_ORDER = [
55 CATEGORY_ORDER = [
56 registrar.command.CATEGORY_REPO_CREATION,
57 registrar.command.CATEGORY_REMOTE_REPO_MANAGEMENT,
58 registrar.command.CATEGORY_COMMITTING,
59 registrar.command.CATEGORY_CHANGE_MANAGEMENT,
60 registrar.command.CATEGORY_CHANGE_ORGANIZATION,
61 registrar.command.CATEGORY_FILE_CONTENTS,
62 registrar.command.CATEGORY_CHANGE_NAVIGATION ,
63 registrar.command.CATEGORY_WORKING_DIRECTORY,
64 registrar.command.CATEGORY_IMPORT_EXPORT,
65 registrar.command.CATEGORY_MAINTENANCE,
66 registrar.command.CATEGORY_HELP,
67 registrar.command.CATEGORY_MISC,
56 registrar.command.CATEGORY_NONE,
68 registrar.command.CATEGORY_NONE,
57 ]
69 ]
58
70
59 # Human-readable category names. These are translated.
71 # Human-readable category names. These are translated.
60 # Extensions with custom categories should add their names here.
72 # Extensions with custom categories should add their names here.
61 CATEGORY_NAMES = {
73 CATEGORY_NAMES = {
74 registrar.command.CATEGORY_REPO_CREATION: 'Repository creation',
75 registrar.command.CATEGORY_REMOTE_REPO_MANAGEMENT:
76 'Remote repository management',
77 registrar.command.CATEGORY_COMMITTING: 'Change creation',
78 registrar.command.CATEGORY_CHANGE_NAVIGATION: 'Change navigation',
79 registrar.command.CATEGORY_CHANGE_MANAGEMENT: 'Change manipulation',
80 registrar.command.CATEGORY_CHANGE_ORGANIZATION: 'Change organization',
81 registrar.command.CATEGORY_WORKING_DIRECTORY:
82 'Working directory management',
83 registrar.command.CATEGORY_FILE_CONTENTS: 'File content management',
84 registrar.command.CATEGORY_IMPORT_EXPORT: 'Change import/export',
85 registrar.command.CATEGORY_MAINTENANCE: 'Repository maintenance',
86 registrar.command.CATEGORY_HELP: 'Help',
87 registrar.command.CATEGORY_MISC: 'Miscellaneous commands',
62 registrar.command.CATEGORY_NONE: 'Uncategorized commands',
88 registrar.command.CATEGORY_NONE: 'Uncategorized commands',
63 }
89 }
64
90
@@ -169,6 +169,18 b' class command(_funcregistrarbase):'
169 """
169 """
170
170
171 # Command categories for grouping them in help output.
171 # Command categories for grouping them in help output.
172 CATEGORY_REPO_CREATION = 'repo'
173 CATEGORY_REMOTE_REPO_MANAGEMENT = 'remote'
174 CATEGORY_COMMITTING = 'commit'
175 CATEGORY_CHANGE_MANAGEMENT = 'management'
176 CATEGORY_CHANGE_ORGANIZATION = 'organization'
177 CATEGORY_FILE_CONTENTS = 'files'
178 CATEGORY_CHANGE_NAVIGATION = 'navigation'
179 CATEGORY_WORKING_DIRECTORY = 'wdir'
180 CATEGORY_IMPORT_EXPORT = 'import'
181 CATEGORY_MAINTENANCE = 'maintenance'
182 CATEGORY_HELP = 'help'
183 CATEGORY_MISC = 'misc'
172 CATEGORY_NONE = 'none'
184 CATEGORY_NONE = 'none'
173
185
174 def _doregister(self, func, name, options=(), synopsis=None,
186 def _doregister(self, func, name, options=(), synopsis=None,
@@ -297,55 +297,87 b' Testing -h/--help:'
297
297
298 list of commands:
298 list of commands:
299
299
300 add add the specified files on the next commit
300 Repository creation:
301 addremove add all new files, delete all missing files
301
302 annotate show changeset information by line for each file
302 clone make a copy of an existing repository
303 archive create an unversioned archive of a repository revision
303 init create a new repository in the given directory
304
305 Remote repository management:
306
307 incoming show new changesets found in source
308 outgoing show changesets not found in the destination
309 paths show aliases for remote repositories
310 pull pull changes from the specified source
311 push push changes to the specified destination
312 serve start stand-alone webserver
313
314 Change creation:
315
316 commit commit the specified files or all outstanding changes
317
318 Change manipulation:
319
304 backout reverse effect of earlier changeset
320 backout reverse effect of earlier changeset
305 bisect subdivision search of changesets
321 graft copy changes from other branches onto the current branch
322 merge merge another revision into working directory
323
324 Change organization:
325
306 bookmarks create a new bookmark or list existing bookmarks
326 bookmarks create a new bookmark or list existing bookmarks
307 branch set or show the current branch name
327 branch set or show the current branch name
308 branches list repository named branches
328 branches list repository named branches
309 bundle create a bundle file
329 phase set or show the current phase name
330 tag add one or more tags for the current or given revision
331 tags list repository tags
332
333 File content management:
334
335 annotate show changeset information by line for each file
310 cat output the current or given revision of files
336 cat output the current or given revision of files
311 clone make a copy of an existing repository
312 commit commit the specified files or all outstanding changes
313 config show combined config settings from all hgrc files
314 copy mark files as copied for the next commit
337 copy mark files as copied for the next commit
315 diff diff repository (or selected files)
338 diff diff repository (or selected files)
316 export dump the header and diffs for one or more changesets
339 grep search revision history for a pattern in specified files
340
341 Change navigation:
342
343 bisect subdivision search of changesets
344 heads show branch heads
345 identify identify the working directory or specified revision
346 log show revision history of entire repository or files
347
348 Working directory management:
349
350 add add the specified files on the next commit
351 addremove add all new files, delete all missing files
317 files list tracked files
352 files list tracked files
318 forget forget the specified files on the next commit
353 forget forget the specified files on the next commit
319 graft copy changes from other branches onto the current branch
320 grep search revision history for a pattern in specified files
321 heads show branch heads
322 help show help for a given topic or a help overview
323 identify identify the working directory or specified revision
324 import import an ordered set of patches
325 incoming show new changesets found in source
326 init create a new repository in the given directory
327 log show revision history of entire repository or files
328 manifest output the current or given revision of the project manifest
329 merge merge another revision into working directory
330 outgoing show changesets not found in the destination
331 paths show aliases for remote repositories
332 phase set or show the current phase name
333 pull pull changes from the specified source
334 push push changes to the specified destination
335 recover roll back an interrupted transaction
336 remove remove the specified files on the next commit
354 remove remove the specified files on the next commit
337 rename rename files; equivalent of copy + remove
355 rename rename files; equivalent of copy + remove
338 resolve redo merges or set/view the merge status of files
356 resolve redo merges or set/view the merge status of files
339 revert restore files to their checkout state
357 revert restore files to their checkout state
340 root print the root (top) of the current working directory
358 root print the root (top) of the current working directory
341 serve start stand-alone webserver
342 status show changed files in the working directory
359 status show changed files in the working directory
343 summary summarize working directory state
360 summary summarize working directory state
344 tag add one or more tags for the current or given revision
361 update update working directory (or switch revisions)
345 tags list repository tags
362
363 Change import/export:
364
365 archive create an unversioned archive of a repository revision
366 bundle create a bundle file
367 export dump the header and diffs for one or more changesets
368 import import an ordered set of patches
346 unbundle apply one or more bundle files
369 unbundle apply one or more bundle files
347 update update working directory (or switch revisions)
370
371 Repository maintenance:
372
373 manifest output the current or given revision of the project manifest
374 recover roll back an interrupted transaction
348 verify verify the integrity of the repository
375 verify verify the integrity of the repository
376
377 Help:
378
379 config show combined config settings from all hgrc files
380 help show help for a given topic or a help overview
349 version output version and copyright information
381 version output version and copyright information
350
382
351 additional help topics:
383 additional help topics:
@@ -381,55 +413,87 b' Testing -h/--help:'
381
413
382 list of commands:
414 list of commands:
383
415
384 add add the specified files on the next commit
416 Repository creation:
385 addremove add all new files, delete all missing files
417
386 annotate show changeset information by line for each file
418 clone make a copy of an existing repository
387 archive create an unversioned archive of a repository revision
419 init create a new repository in the given directory
420
421 Remote repository management:
422
423 incoming show new changesets found in source
424 outgoing show changesets not found in the destination
425 paths show aliases for remote repositories
426 pull pull changes from the specified source
427 push push changes to the specified destination
428 serve start stand-alone webserver
429
430 Change creation:
431
432 commit commit the specified files or all outstanding changes
433
434 Change manipulation:
435
388 backout reverse effect of earlier changeset
436 backout reverse effect of earlier changeset
389 bisect subdivision search of changesets
437 graft copy changes from other branches onto the current branch
438 merge merge another revision into working directory
439
440 Change organization:
441
390 bookmarks create a new bookmark or list existing bookmarks
442 bookmarks create a new bookmark or list existing bookmarks
391 branch set or show the current branch name
443 branch set or show the current branch name
392 branches list repository named branches
444 branches list repository named branches
393 bundle create a bundle file
445 phase set or show the current phase name
446 tag add one or more tags for the current or given revision
447 tags list repository tags
448
449 File content management:
450
451 annotate show changeset information by line for each file
394 cat output the current or given revision of files
452 cat output the current or given revision of files
395 clone make a copy of an existing repository
396 commit commit the specified files or all outstanding changes
397 config show combined config settings from all hgrc files
398 copy mark files as copied for the next commit
453 copy mark files as copied for the next commit
399 diff diff repository (or selected files)
454 diff diff repository (or selected files)
400 export dump the header and diffs for one or more changesets
455 grep search revision history for a pattern in specified files
456
457 Change navigation:
458
459 bisect subdivision search of changesets
460 heads show branch heads
461 identify identify the working directory or specified revision
462 log show revision history of entire repository or files
463
464 Working directory management:
465
466 add add the specified files on the next commit
467 addremove add all new files, delete all missing files
401 files list tracked files
468 files list tracked files
402 forget forget the specified files on the next commit
469 forget forget the specified files on the next commit
403 graft copy changes from other branches onto the current branch
404 grep search revision history for a pattern in specified files
405 heads show branch heads
406 help show help for a given topic or a help overview
407 identify identify the working directory or specified revision
408 import import an ordered set of patches
409 incoming show new changesets found in source
410 init create a new repository in the given directory
411 log show revision history of entire repository or files
412 manifest output the current or given revision of the project manifest
413 merge merge another revision into working directory
414 outgoing show changesets not found in the destination
415 paths show aliases for remote repositories
416 phase set or show the current phase name
417 pull pull changes from the specified source
418 push push changes to the specified destination
419 recover roll back an interrupted transaction
420 remove remove the specified files on the next commit
470 remove remove the specified files on the next commit
421 rename rename files; equivalent of copy + remove
471 rename rename files; equivalent of copy + remove
422 resolve redo merges or set/view the merge status of files
472 resolve redo merges or set/view the merge status of files
423 revert restore files to their checkout state
473 revert restore files to their checkout state
424 root print the root (top) of the current working directory
474 root print the root (top) of the current working directory
425 serve start stand-alone webserver
426 status show changed files in the working directory
475 status show changed files in the working directory
427 summary summarize working directory state
476 summary summarize working directory state
428 tag add one or more tags for the current or given revision
477 update update working directory (or switch revisions)
429 tags list repository tags
478
479 Change import/export:
480
481 archive create an unversioned archive of a repository revision
482 bundle create a bundle file
483 export dump the header and diffs for one or more changesets
484 import import an ordered set of patches
430 unbundle apply one or more bundle files
485 unbundle apply one or more bundle files
431 update update working directory (or switch revisions)
486
487 Repository maintenance:
488
489 manifest output the current or given revision of the project manifest
490 recover roll back an interrupted transaction
432 verify verify the integrity of the repository
491 verify verify the integrity of the repository
492
493 Help:
494
495 config show combined config settings from all hgrc files
496 help show help for a given topic or a help overview
433 version output version and copyright information
497 version output version and copyright information
434
498
435 additional help topics:
499 additional help topics:
@@ -53,55 +53,87 b' the extension is unknown.'
53
53
54 list of commands:
54 list of commands:
55
55
56 add add the specified files on the next commit
56 Repository creation:
57 addremove add all new files, delete all missing files
57
58 annotate show changeset information by line for each file
58 clone make a copy of an existing repository
59 archive create an unversioned archive of a repository revision
59 init create a new repository in the given directory
60
61 Remote repository management:
62
63 incoming show new changesets found in source
64 outgoing show changesets not found in the destination
65 paths show aliases for remote repositories
66 pull pull changes from the specified source
67 push push changes to the specified destination
68 serve start stand-alone webserver
69
70 Change creation:
71
72 commit commit the specified files or all outstanding changes
73
74 Change manipulation:
75
60 backout reverse effect of earlier changeset
76 backout reverse effect of earlier changeset
61 bisect subdivision search of changesets
77 graft copy changes from other branches onto the current branch
78 merge merge another revision into working directory
79
80 Change organization:
81
62 bookmarks create a new bookmark or list existing bookmarks
82 bookmarks create a new bookmark or list existing bookmarks
63 branch set or show the current branch name
83 branch set or show the current branch name
64 branches list repository named branches
84 branches list repository named branches
65 bundle create a bundle file
85 phase set or show the current phase name
86 tag add one or more tags for the current or given revision
87 tags list repository tags
88
89 File content management:
90
91 annotate show changeset information by line for each file
66 cat output the current or given revision of files
92 cat output the current or given revision of files
67 clone make a copy of an existing repository
68 commit commit the specified files or all outstanding changes
69 config show combined config settings from all hgrc files
70 copy mark files as copied for the next commit
93 copy mark files as copied for the next commit
71 diff diff repository (or selected files)
94 diff diff repository (or selected files)
72 export dump the header and diffs for one or more changesets
95 grep search revision history for a pattern in specified files
96
97 Change navigation:
98
99 bisect subdivision search of changesets
100 heads show branch heads
101 identify identify the working directory or specified revision
102 log show revision history of entire repository or files
103
104 Working directory management:
105
106 add add the specified files on the next commit
107 addremove add all new files, delete all missing files
73 files list tracked files
108 files list tracked files
74 forget forget the specified files on the next commit
109 forget forget the specified files on the next commit
75 graft copy changes from other branches onto the current branch
76 grep search revision history for a pattern in specified files
77 heads show branch heads
78 help show help for a given topic or a help overview
79 identify identify the working directory or specified revision
80 import import an ordered set of patches
81 incoming show new changesets found in source
82 init create a new repository in the given directory
83 log show revision history of entire repository or files
84 manifest output the current or given revision of the project manifest
85 merge merge another revision into working directory
86 outgoing show changesets not found in the destination
87 paths show aliases for remote repositories
88 phase set or show the current phase name
89 pull pull changes from the specified source
90 push push changes to the specified destination
91 recover roll back an interrupted transaction
92 remove remove the specified files on the next commit
110 remove remove the specified files on the next commit
93 rename rename files; equivalent of copy + remove
111 rename rename files; equivalent of copy + remove
94 resolve redo merges or set/view the merge status of files
112 resolve redo merges or set/view the merge status of files
95 revert restore files to their checkout state
113 revert restore files to their checkout state
96 root print the root (top) of the current working directory
114 root print the root (top) of the current working directory
97 serve start stand-alone webserver
98 status show changed files in the working directory
115 status show changed files in the working directory
99 summary summarize working directory state
116 summary summarize working directory state
100 tag add one or more tags for the current or given revision
117 update update working directory (or switch revisions)
101 tags list repository tags
118
119 Change import/export:
120
121 archive create an unversioned archive of a repository revision
122 bundle create a bundle file
123 export dump the header and diffs for one or more changesets
124 import import an ordered set of patches
102 unbundle apply one or more bundle files
125 unbundle apply one or more bundle files
103 update update working directory (or switch revisions)
126
127 Repository maintenance:
128
129 manifest output the current or given revision of the project manifest
130 recover roll back an interrupted transaction
104 verify verify the integrity of the repository
131 verify verify the integrity of the repository
132
133 Help:
134
135 config show combined config settings from all hgrc files
136 help show help for a given topic or a help overview
105 version output version and copyright information
137 version output version and copyright information
106
138
107 additional help topics:
139 additional help topics:
@@ -133,55 +165,87 b' the extension is unknown.'
133 (use 'hg help -v' to show built-in aliases and global options)
165 (use 'hg help -v' to show built-in aliases and global options)
134
166
135 $ hg -q help
167 $ hg -q help
136 add add the specified files on the next commit
168 Repository creation:
137 addremove add all new files, delete all missing files
169
138 annotate show changeset information by line for each file
170 clone make a copy of an existing repository
139 archive create an unversioned archive of a repository revision
171 init create a new repository in the given directory
172
173 Remote repository management:
174
175 incoming show new changesets found in source
176 outgoing show changesets not found in the destination
177 paths show aliases for remote repositories
178 pull pull changes from the specified source
179 push push changes to the specified destination
180 serve start stand-alone webserver
181
182 Change creation:
183
184 commit commit the specified files or all outstanding changes
185
186 Change manipulation:
187
140 backout reverse effect of earlier changeset
188 backout reverse effect of earlier changeset
141 bisect subdivision search of changesets
189 graft copy changes from other branches onto the current branch
190 merge merge another revision into working directory
191
192 Change organization:
193
142 bookmarks create a new bookmark or list existing bookmarks
194 bookmarks create a new bookmark or list existing bookmarks
143 branch set or show the current branch name
195 branch set or show the current branch name
144 branches list repository named branches
196 branches list repository named branches
145 bundle create a bundle file
197 phase set or show the current phase name
198 tag add one or more tags for the current or given revision
199 tags list repository tags
200
201 File content management:
202
203 annotate show changeset information by line for each file
146 cat output the current or given revision of files
204 cat output the current or given revision of files
147 clone make a copy of an existing repository
148 commit commit the specified files or all outstanding changes
149 config show combined config settings from all hgrc files
150 copy mark files as copied for the next commit
205 copy mark files as copied for the next commit
151 diff diff repository (or selected files)
206 diff diff repository (or selected files)
152 export dump the header and diffs for one or more changesets
207 grep search revision history for a pattern in specified files
208
209 Change navigation:
210
211 bisect subdivision search of changesets
212 heads show branch heads
213 identify identify the working directory or specified revision
214 log show revision history of entire repository or files
215
216 Working directory management:
217
218 add add the specified files on the next commit
219 addremove add all new files, delete all missing files
153 files list tracked files
220 files list tracked files
154 forget forget the specified files on the next commit
221 forget forget the specified files on the next commit
155 graft copy changes from other branches onto the current branch
156 grep search revision history for a pattern in specified files
157 heads show branch heads
158 help show help for a given topic or a help overview
159 identify identify the working directory or specified revision
160 import import an ordered set of patches
161 incoming show new changesets found in source
162 init create a new repository in the given directory
163 log show revision history of entire repository or files
164 manifest output the current or given revision of the project manifest
165 merge merge another revision into working directory
166 outgoing show changesets not found in the destination
167 paths show aliases for remote repositories
168 phase set or show the current phase name
169 pull pull changes from the specified source
170 push push changes to the specified destination
171 recover roll back an interrupted transaction
172 remove remove the specified files on the next commit
222 remove remove the specified files on the next commit
173 rename rename files; equivalent of copy + remove
223 rename rename files; equivalent of copy + remove
174 resolve redo merges or set/view the merge status of files
224 resolve redo merges or set/view the merge status of files
175 revert restore files to their checkout state
225 revert restore files to their checkout state
176 root print the root (top) of the current working directory
226 root print the root (top) of the current working directory
177 serve start stand-alone webserver
178 status show changed files in the working directory
227 status show changed files in the working directory
179 summary summarize working directory state
228 summary summarize working directory state
180 tag add one or more tags for the current or given revision
229 update update working directory (or switch revisions)
181 tags list repository tags
230
231 Change import/export:
232
233 archive create an unversioned archive of a repository revision
234 bundle create a bundle file
235 export dump the header and diffs for one or more changesets
236 import import an ordered set of patches
182 unbundle apply one or more bundle files
237 unbundle apply one or more bundle files
183 update update working directory (or switch revisions)
238
239 Repository maintenance:
240
241 manifest output the current or given revision of the project manifest
242 recover roll back an interrupted transaction
184 verify verify the integrity of the repository
243 verify verify the integrity of the repository
244
245 Help:
246
247 config show combined config settings from all hgrc files
248 help show help for a given topic or a help overview
185 version output version and copyright information
249 version output version and copyright information
186
250
187 additional help topics:
251 additional help topics:
@@ -810,55 +874,87 b' Test that default list of commands omits'
810
874
811 list of commands:
875 list of commands:
812
876
813 add add the specified files on the next commit
877 Repository creation:
814 addremove add all new files, delete all missing files
878
815 annotate show changeset information by line for each file
879 clone make a copy of an existing repository
816 archive create an unversioned archive of a repository revision
880 init create a new repository in the given directory
881
882 Remote repository management:
883
884 incoming show new changesets found in source
885 outgoing show changesets not found in the destination
886 paths show aliases for remote repositories
887 pull pull changes from the specified source
888 push push changes to the specified destination
889 serve start stand-alone webserver
890
891 Change creation:
892
893 commit commit the specified files or all outstanding changes
894
895 Change manipulation:
896
817 backout reverse effect of earlier changeset
897 backout reverse effect of earlier changeset
818 bisect subdivision search of changesets
898 graft copy changes from other branches onto the current branch
899 merge merge another revision into working directory
900
901 Change organization:
902
819 bookmarks create a new bookmark or list existing bookmarks
903 bookmarks create a new bookmark or list existing bookmarks
820 branch set or show the current branch name
904 branch set or show the current branch name
821 branches list repository named branches
905 branches list repository named branches
822 bundle create a bundle file
906 phase set or show the current phase name
907 tag add one or more tags for the current or given revision
908 tags list repository tags
909
910 File content management:
911
912 annotate show changeset information by line for each file
823 cat output the current or given revision of files
913 cat output the current or given revision of files
824 clone make a copy of an existing repository
825 commit commit the specified files or all outstanding changes
826 config show combined config settings from all hgrc files
827 copy mark files as copied for the next commit
914 copy mark files as copied for the next commit
828 diff diff repository (or selected files)
915 diff diff repository (or selected files)
829 export dump the header and diffs for one or more changesets
916 grep search revision history for a pattern in specified files
917
918 Change navigation:
919
920 bisect subdivision search of changesets
921 heads show branch heads
922 identify identify the working directory or specified revision
923 log show revision history of entire repository or files
924
925 Working directory management:
926
927 add add the specified files on the next commit
928 addremove add all new files, delete all missing files
830 files list tracked files
929 files list tracked files
831 forget forget the specified files on the next commit
930 forget forget the specified files on the next commit
832 graft copy changes from other branches onto the current branch
833 grep search revision history for a pattern in specified files
834 heads show branch heads
835 help show help for a given topic or a help overview
836 identify identify the working directory or specified revision
837 import import an ordered set of patches
838 incoming show new changesets found in source
839 init create a new repository in the given directory
840 log show revision history of entire repository or files
841 manifest output the current or given revision of the project manifest
842 merge merge another revision into working directory
843 outgoing show changesets not found in the destination
844 paths show aliases for remote repositories
845 phase set or show the current phase name
846 pull pull changes from the specified source
847 push push changes to the specified destination
848 recover roll back an interrupted transaction
849 remove remove the specified files on the next commit
931 remove remove the specified files on the next commit
850 rename rename files; equivalent of copy + remove
932 rename rename files; equivalent of copy + remove
851 resolve redo merges or set/view the merge status of files
933 resolve redo merges or set/view the merge status of files
852 revert restore files to their checkout state
934 revert restore files to their checkout state
853 root print the root (top) of the current working directory
935 root print the root (top) of the current working directory
854 serve start stand-alone webserver
855 status show changed files in the working directory
936 status show changed files in the working directory
856 summary summarize working directory state
937 summary summarize working directory state
857 tag add one or more tags for the current or given revision
938 update update working directory (or switch revisions)
858 tags list repository tags
939
940 Change import/export:
941
942 archive create an unversioned archive of a repository revision
943 bundle create a bundle file
944 export dump the header and diffs for one or more changesets
945 import import an ordered set of patches
859 unbundle apply one or more bundle files
946 unbundle apply one or more bundle files
860 update update working directory (or switch revisions)
947
948 Repository maintenance:
949
950 manifest output the current or given revision of the project manifest
951 recover roll back an interrupted transaction
861 verify verify the integrity of the repository
952 verify verify the integrity of the repository
953
954 Help:
955
956 config show combined config settings from all hgrc files
957 help show help for a given topic or a help overview
862 version output version and copyright information
958 version output version and copyright information
863
959
864 enabled extensions:
960 enabled extensions:
@@ -73,29 +73,46 b' help'
73
73
74 list of commands:
74 list of commands:
75
75
76 Repository creation:
77
78 qclone clone main and patch repository at same time
79
80 Change creation:
81
82 qnew create a new patch
83 qrefresh update the current patch
84
85 Change manipulation:
86
87 qfold fold the named patches into the current patch
88
89 Change organization:
90
76 qapplied print the patches already applied
91 qapplied print the patches already applied
77 qclone clone main and patch repository at same time
78 qdelete remove patches from queue
92 qdelete remove patches from queue
79 qdiff diff of the current patch and subsequent modifications
80 qfinish move applied patches into repository history
93 qfinish move applied patches into repository history
81 qfold fold the named patches into the current patch
82 qgoto push or pop patches until named patch is at top of stack
94 qgoto push or pop patches until named patch is at top of stack
83 qguard set or print guards for a patch
95 qguard set or print guards for a patch
84 qheader print the header of the topmost or specified patch
96 qheader print the header of the topmost or specified patch
85 qimport import a patch or existing changeset
86 qnew create a new patch
87 qnext print the name of the next pushable patch
97 qnext print the name of the next pushable patch
88 qpop pop the current patch off the stack
98 qpop pop the current patch off the stack
89 qprev print the name of the preceding applied patch
99 qprev print the name of the preceding applied patch
90 qpush push the next patch onto the stack
100 qpush push the next patch onto the stack
91 qqueue manage multiple patch queues
101 qqueue manage multiple patch queues
92 qrefresh update the current patch
93 qrename rename a patch
102 qrename rename a patch
94 qselect set or print guarded patches to push
103 qselect set or print guarded patches to push
95 qseries print the entire series file
104 qseries print the entire series file
96 qtop print the name of the current patch
105 qtop print the name of the current patch
97 qunapplied print the patches not yet applied
106 qunapplied print the patches not yet applied
98
107
108 File content management:
109
110 qdiff diff of the current patch and subsequent modifications
111
112 Change import/export:
113
114 qimport import a patch or existing changeset
115
99 (use 'hg help -v mq' to show built-in aliases and global options)
116 (use 'hg help -v mq' to show built-in aliases and global options)
100
117
101 $ hg init a
118 $ hg init a
General Comments 0
You need to be logged in to leave comments. Login now