Show More
@@ -0,0 +1,127 b'' | |||||
|
1 | Test hiding some commands (which also happens to hide an entire category). | |||
|
2 | ||||
|
3 | $ hg --config help.hidden-command.clone=true \ | |||
|
4 | > --config help.hidden-command.init=true help | |||
|
5 | Mercurial Distributed SCM | |||
|
6 | ||||
|
7 | list of commands: | |||
|
8 | ||||
|
9 | Remote repository management: | |||
|
10 | ||||
|
11 | incoming show new changesets found in source | |||
|
12 | outgoing show changesets not found in the destination | |||
|
13 | paths show aliases for remote repositories | |||
|
14 | pull pull changes from the specified source | |||
|
15 | push push changes to the specified destination | |||
|
16 | serve start stand-alone webserver | |||
|
17 | ||||
|
18 | Change creation: | |||
|
19 | ||||
|
20 | commit commit the specified files or all outstanding changes | |||
|
21 | ||||
|
22 | Change manipulation: | |||
|
23 | ||||
|
24 | backout reverse effect of earlier changeset | |||
|
25 | graft copy changes from other branches onto the current branch | |||
|
26 | merge merge another revision into working directory | |||
|
27 | ||||
|
28 | Change organization: | |||
|
29 | ||||
|
30 | bookmarks create a new bookmark or list existing bookmarks | |||
|
31 | branch set or show the current branch name | |||
|
32 | branches list repository named branches | |||
|
33 | phase set or show the current phase name | |||
|
34 | tag add one or more tags for the current or given revision | |||
|
35 | tags list repository tags | |||
|
36 | ||||
|
37 | File content management: | |||
|
38 | ||||
|
39 | annotate show changeset information by line for each file | |||
|
40 | cat output the current or given revision of files | |||
|
41 | copy mark files as copied for the next commit | |||
|
42 | diff diff repository (or selected files) | |||
|
43 | grep search revision history for a pattern in specified files | |||
|
44 | ||||
|
45 | Change navigation: | |||
|
46 | ||||
|
47 | bisect subdivision search of changesets | |||
|
48 | heads show branch heads | |||
|
49 | identify identify the working directory or specified revision | |||
|
50 | log show revision history of entire repository or files | |||
|
51 | ||||
|
52 | Working directory management: | |||
|
53 | ||||
|
54 | add add the specified files on the next commit | |||
|
55 | addremove add all new files, delete all missing files | |||
|
56 | files list tracked files | |||
|
57 | forget forget the specified files on the next commit | |||
|
58 | remove remove the specified files on the next commit | |||
|
59 | rename rename files; equivalent of copy + remove | |||
|
60 | resolve redo merges or set/view the merge status of files | |||
|
61 | revert restore files to their checkout state | |||
|
62 | root print the root (top) of the current working directory | |||
|
63 | status show changed files in the working directory | |||
|
64 | summary summarize working directory state | |||
|
65 | update update working directory (or switch revisions) | |||
|
66 | ||||
|
67 | Change import/export: | |||
|
68 | ||||
|
69 | archive create an unversioned archive of a repository revision | |||
|
70 | bundle create a bundle file | |||
|
71 | export dump the header and diffs for one or more changesets | |||
|
72 | import import an ordered set of patches | |||
|
73 | unbundle apply one or more bundle files | |||
|
74 | ||||
|
75 | Repository maintenance: | |||
|
76 | ||||
|
77 | manifest output the current or given revision of the project manifest | |||
|
78 | recover roll back an interrupted transaction | |||
|
79 | verify verify the integrity of the repository | |||
|
80 | ||||
|
81 | Help: | |||
|
82 | ||||
|
83 | config show combined config settings from all hgrc files | |||
|
84 | help show help for a given topic or a help overview | |||
|
85 | version output version and copyright information | |||
|
86 | ||||
|
87 | additional help topics: | |||
|
88 | ||||
|
89 | Mercurial identifiers: | |||
|
90 | ||||
|
91 | filesets Specifying File Sets | |||
|
92 | hgignore Syntax for Mercurial Ignore Files | |||
|
93 | patterns File Name Patterns | |||
|
94 | revisions Specifying Revisions | |||
|
95 | urls URL Paths | |||
|
96 | ||||
|
97 | Mercurial output: | |||
|
98 | ||||
|
99 | color Colorizing Outputs | |||
|
100 | dates Date Formats | |||
|
101 | diffs Diff Formats | |||
|
102 | templating Template Usage | |||
|
103 | ||||
|
104 | Mercurial configuration: | |||
|
105 | ||||
|
106 | config Configuration Files | |||
|
107 | environment Environment Variables | |||
|
108 | extensions Using Additional Features | |||
|
109 | flags Command-line flags | |||
|
110 | hgweb Configuring hgweb | |||
|
111 | merge-tools Merge Tools | |||
|
112 | pager Pager Support | |||
|
113 | ||||
|
114 | Concepts: | |||
|
115 | ||||
|
116 | bundlespec Bundle File Formats | |||
|
117 | glossary Glossary | |||
|
118 | phases Working with Phases | |||
|
119 | subrepos Subrepositories | |||
|
120 | ||||
|
121 | Miscellaneous: | |||
|
122 | ||||
|
123 | deprecated Deprecated Features | |||
|
124 | internals Technical implementation topics | |||
|
125 | scripting Using Mercurial from scripts and automation | |||
|
126 | ||||
|
127 | (use 'hg help -v' to show built-in aliases and global options) |
@@ -699,6 +699,10 b" coreconfigitem('fsmonitor', 'warn_when_u" | |||||
699 | coreconfigitem('fsmonitor', 'warn_update_file_count', |
|
699 | coreconfigitem('fsmonitor', 'warn_update_file_count', | |
700 | default=50000, |
|
700 | default=50000, | |
701 | ) |
|
701 | ) | |
|
702 | coreconfigitem('help', 'hidden-command\..*', | |||
|
703 | default=False, | |||
|
704 | generic=True, | |||
|
705 | ) | |||
702 | coreconfigitem('hooks', '.*', |
|
706 | coreconfigitem('hooks', '.*', | |
703 | default=dynamicdefault, |
|
707 | default=dynamicdefault, | |
704 | generic=True, |
|
708 | generic=True, |
@@ -194,6 +194,8 b' def filtercmd(ui, cmd, kw, doc):' | |||||
194 | return True |
|
194 | return True | |
195 | if not ui.verbose and doc and any(w in doc for w in _exclkeywords): |
|
195 | if not ui.verbose and doc and any(w in doc for w in _exclkeywords): | |
196 | return True |
|
196 | return True | |
|
197 | if ui.configbool('help', 'hidden-command.%s' % cmd): | |||
|
198 | return True | |||
197 | return False |
|
199 | return False | |
198 |
|
200 | |||
199 | def topicmatch(ui, commands, kw): |
|
201 | def topicmatch(ui, commands, kw): |
General Comments 0
You need to be logged in to leave comments.
Login now