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