Mercurial > hg
annotate tests/test-help-hide.t @ 46368:bb3a5c0df06b
purge: move extension into core mercurial
The motivation is simple: it's nicer to avoid gating basic
functionality.
To reduce the risk of people shooting themselves in the feet, `--confirm` is now
the default, unless the extensions is loaded..
For review of the body of the purge command, use this instead of what
hg/phabricator will show (the block of code is modified, not just
moved):
Differential Revision: https://phab.mercurial-scm.org/D9820
author | Valentin Gatien-Baron <valentin.gatienbaron@gmail.com> |
---|---|
date | Mon, 18 Jan 2021 10:24:20 +0100 |
parents | d782cce137fd |
children | da4e6d7a8fdd |
rev | line source |
---|---|
40412 | 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) | |
43305
d782cce137fd
grep: update docs to reflect new --all-files default
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
42541
diff
changeset
|
43 grep search for a pattern in specified files |
40412 | 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 | |
46368
bb3a5c0df06b
purge: move extension into core mercurial
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents:
43305
diff
changeset
|
58 purge removes files not tracked by Mercurial |
40412 | 59 remove remove the specified files on the next commit |
60 rename rename files; equivalent of copy + remove | |
61 resolve redo merges or set/view the merge status of files | |
62 revert restore files to their checkout state | |
63 root print the root (top) of the current working directory | |
42541
3de4f17f4824
shelve: move shelve extension to core
Navaneeth Suresh <navaneeths1998@gmail.com>
parents:
40413
diff
changeset
|
64 shelve save and set aside changes from the working directory |
40412 | 65 status show changed files in the working directory |
66 summary summarize working directory state | |
42541
3de4f17f4824
shelve: move shelve extension to core
Navaneeth Suresh <navaneeths1998@gmail.com>
parents:
40413
diff
changeset
|
67 unshelve restore a shelved change to the working directory |
40412 | 68 update update working directory (or switch revisions) |
69 | |
70 Change import/export: | |
71 | |
72 archive create an unversioned archive of a repository revision | |
73 bundle create a bundle file | |
74 export dump the header and diffs for one or more changesets | |
75 import import an ordered set of patches | |
76 unbundle apply one or more bundle files | |
77 | |
78 Repository maintenance: | |
79 | |
80 manifest output the current or given revision of the project manifest | |
81 recover roll back an interrupted transaction | |
82 verify verify the integrity of the repository | |
83 | |
84 Help: | |
85 | |
86 config show combined config settings from all hgrc files | |
87 help show help for a given topic or a help overview | |
88 version output version and copyright information | |
89 | |
90 additional help topics: | |
91 | |
92 Mercurial identifiers: | |
93 | |
94 filesets Specifying File Sets | |
95 hgignore Syntax for Mercurial Ignore Files | |
96 patterns File Name Patterns | |
97 revisions Specifying Revisions | |
98 urls URL Paths | |
99 | |
100 Mercurial output: | |
101 | |
102 color Colorizing Outputs | |
103 dates Date Formats | |
104 diffs Diff Formats | |
105 templating Template Usage | |
106 | |
107 Mercurial configuration: | |
108 | |
109 config Configuration Files | |
110 environment Environment Variables | |
111 extensions Using Additional Features | |
112 flags Command-line flags | |
113 hgweb Configuring hgweb | |
114 merge-tools Merge Tools | |
115 pager Pager Support | |
116 | |
117 Concepts: | |
118 | |
119 bundlespec Bundle File Formats | |
120 glossary Glossary | |
121 phases Working with Phases | |
122 subrepos Subrepositories | |
123 | |
124 Miscellaneous: | |
125 | |
126 deprecated Deprecated Features | |
127 internals Technical implementation topics | |
128 scripting Using Mercurial from scripts and automation | |
129 | |
130 (use 'hg help -v' to show built-in aliases and global options) | |
40413 | 131 |
132 Test hiding some topics. | |
133 | |
134 $ hg --config help.hidden-topic.deprecated=true \ | |
135 > --config help.hidden-topic.internals=true \ | |
136 > --config help.hidden-topic.scripting=true help | |
137 Mercurial Distributed SCM | |
138 | |
139 list of commands: | |
140 | |
141 Repository creation: | |
142 | |
143 clone make a copy of an existing repository | |
144 init create a new repository in the given directory | |
145 | |
146 Remote repository management: | |
147 | |
148 incoming show new changesets found in source | |
149 outgoing show changesets not found in the destination | |
150 paths show aliases for remote repositories | |
151 pull pull changes from the specified source | |
152 push push changes to the specified destination | |
153 serve start stand-alone webserver | |
154 | |
155 Change creation: | |
156 | |
157 commit commit the specified files or all outstanding changes | |
158 | |
159 Change manipulation: | |
160 | |
161 backout reverse effect of earlier changeset | |
162 graft copy changes from other branches onto the current branch | |
163 merge merge another revision into working directory | |
164 | |
165 Change organization: | |
166 | |
167 bookmarks create a new bookmark or list existing bookmarks | |
168 branch set or show the current branch name | |
169 branches list repository named branches | |
170 phase set or show the current phase name | |
171 tag add one or more tags for the current or given revision | |
172 tags list repository tags | |
173 | |
174 File content management: | |
175 | |
176 annotate show changeset information by line for each file | |
177 cat output the current or given revision of files | |
178 copy mark files as copied for the next commit | |
179 diff diff repository (or selected files) | |
43305
d782cce137fd
grep: update docs to reflect new --all-files default
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
42541
diff
changeset
|
180 grep search for a pattern in specified files |
40413 | 181 |
182 Change navigation: | |
183 | |
184 bisect subdivision search of changesets | |
185 heads show branch heads | |
186 identify identify the working directory or specified revision | |
187 log show revision history of entire repository or files | |
188 | |
189 Working directory management: | |
190 | |
191 add add the specified files on the next commit | |
192 addremove add all new files, delete all missing files | |
193 files list tracked files | |
194 forget forget the specified files on the next commit | |
46368
bb3a5c0df06b
purge: move extension into core mercurial
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents:
43305
diff
changeset
|
195 purge removes files not tracked by Mercurial |
40413 | 196 remove remove the specified files on the next commit |
197 rename rename files; equivalent of copy + remove | |
198 resolve redo merges or set/view the merge status of files | |
199 revert restore files to their checkout state | |
200 root print the root (top) of the current working directory | |
42541
3de4f17f4824
shelve: move shelve extension to core
Navaneeth Suresh <navaneeths1998@gmail.com>
parents:
40413
diff
changeset
|
201 shelve save and set aside changes from the working directory |
40413 | 202 status show changed files in the working directory |
203 summary summarize working directory state | |
42541
3de4f17f4824
shelve: move shelve extension to core
Navaneeth Suresh <navaneeths1998@gmail.com>
parents:
40413
diff
changeset
|
204 unshelve restore a shelved change to the working directory |
40413 | 205 update update working directory (or switch revisions) |
206 | |
207 Change import/export: | |
208 | |
209 archive create an unversioned archive of a repository revision | |
210 bundle create a bundle file | |
211 export dump the header and diffs for one or more changesets | |
212 import import an ordered set of patches | |
213 unbundle apply one or more bundle files | |
214 | |
215 Repository maintenance: | |
216 | |
217 manifest output the current or given revision of the project manifest | |
218 recover roll back an interrupted transaction | |
219 verify verify the integrity of the repository | |
220 | |
221 Help: | |
222 | |
223 config show combined config settings from all hgrc files | |
224 help show help for a given topic or a help overview | |
225 version output version and copyright information | |
226 | |
227 additional help topics: | |
228 | |
229 Mercurial identifiers: | |
230 | |
231 filesets Specifying File Sets | |
232 hgignore Syntax for Mercurial Ignore Files | |
233 patterns File Name Patterns | |
234 revisions Specifying Revisions | |
235 urls URL Paths | |
236 | |
237 Mercurial output: | |
238 | |
239 color Colorizing Outputs | |
240 dates Date Formats | |
241 diffs Diff Formats | |
242 templating Template Usage | |
243 | |
244 Mercurial configuration: | |
245 | |
246 config Configuration Files | |
247 environment Environment Variables | |
248 extensions Using Additional Features | |
249 flags Command-line flags | |
250 hgweb Configuring hgweb | |
251 merge-tools Merge Tools | |
252 pager Pager Support | |
253 | |
254 Concepts: | |
255 | |
256 bundlespec Bundle File Formats | |
257 glossary Glossary | |
258 phases Working with Phases | |
259 subrepos Subrepositories | |
260 | |
261 (use 'hg help -v' to show built-in aliases and global options) |