Mercurial > hg
annotate tests/test-help-hide.t @ 50583:833a4e881a7a
safehasattr: pass attribute name as string instead of bytes
This is a step toward replacing `util.safehasattr` usage with plain `hasattr`.
The builtin function behave poorly in Python2 but this was fixed in Python3.
These change are done one by one as they tend to have a small odd to trigger
puzzling breackage.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 02 Feb 2023 17:28:15 +0100 |
parents | 7ccd31fda132 |
children | 752c5a5b73c6 |
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 | |
48532
7ccd31fda132
docs: add documentation about Rust
Raphaël Gomès <rgomes@octobus.net>
parents:
47017
diff
changeset
|
116 rust Rust in Mercurial |
40412 | 117 |
118 Concepts: | |
119 | |
120 bundlespec Bundle File Formats | |
47017
da4e6d7a8fdd
help: add topic about evolution, based on text from evolve extension
Martin von Zweigbergk <martinvonz@google.com>
parents:
46368
diff
changeset
|
121 evolution Safely rewriting history (EXPERIMENTAL) |
40412 | 122 glossary Glossary |
123 phases Working with Phases | |
124 subrepos Subrepositories | |
125 | |
126 Miscellaneous: | |
127 | |
128 deprecated Deprecated Features | |
129 internals Technical implementation topics | |
130 scripting Using Mercurial from scripts and automation | |
131 | |
132 (use 'hg help -v' to show built-in aliases and global options) | |
40413 | 133 |
134 Test hiding some topics. | |
135 | |
136 $ hg --config help.hidden-topic.deprecated=true \ | |
137 > --config help.hidden-topic.internals=true \ | |
138 > --config help.hidden-topic.scripting=true help | |
139 Mercurial Distributed SCM | |
140 | |
141 list of commands: | |
142 | |
143 Repository creation: | |
144 | |
145 clone make a copy of an existing repository | |
146 init create a new repository in the given directory | |
147 | |
148 Remote repository management: | |
149 | |
150 incoming show new changesets found in source | |
151 outgoing show changesets not found in the destination | |
152 paths show aliases for remote repositories | |
153 pull pull changes from the specified source | |
154 push push changes to the specified destination | |
155 serve start stand-alone webserver | |
156 | |
157 Change creation: | |
158 | |
159 commit commit the specified files or all outstanding changes | |
160 | |
161 Change manipulation: | |
162 | |
163 backout reverse effect of earlier changeset | |
164 graft copy changes from other branches onto the current branch | |
165 merge merge another revision into working directory | |
166 | |
167 Change organization: | |
168 | |
169 bookmarks create a new bookmark or list existing bookmarks | |
170 branch set or show the current branch name | |
171 branches list repository named branches | |
172 phase set or show the current phase name | |
173 tag add one or more tags for the current or given revision | |
174 tags list repository tags | |
175 | |
176 File content management: | |
177 | |
178 annotate show changeset information by line for each file | |
179 cat output the current or given revision of files | |
180 copy mark files as copied for the next commit | |
181 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
|
182 grep search for a pattern in specified files |
40413 | 183 |
184 Change navigation: | |
185 | |
186 bisect subdivision search of changesets | |
187 heads show branch heads | |
188 identify identify the working directory or specified revision | |
189 log show revision history of entire repository or files | |
190 | |
191 Working directory management: | |
192 | |
193 add add the specified files on the next commit | |
194 addremove add all new files, delete all missing files | |
195 files list tracked files | |
196 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
|
197 purge removes files not tracked by Mercurial |
40413 | 198 remove remove the specified files on the next commit |
199 rename rename files; equivalent of copy + remove | |
200 resolve redo merges or set/view the merge status of files | |
201 revert restore files to their checkout state | |
202 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
|
203 shelve save and set aside changes from the working directory |
40413 | 204 status show changed files in the working directory |
205 summary summarize working directory state | |
42541
3de4f17f4824
shelve: move shelve extension to core
Navaneeth Suresh <navaneeths1998@gmail.com>
parents:
40413
diff
changeset
|
206 unshelve restore a shelved change to the working directory |
40413 | 207 update update working directory (or switch revisions) |
208 | |
209 Change import/export: | |
210 | |
211 archive create an unversioned archive of a repository revision | |
212 bundle create a bundle file | |
213 export dump the header and diffs for one or more changesets | |
214 import import an ordered set of patches | |
215 unbundle apply one or more bundle files | |
216 | |
217 Repository maintenance: | |
218 | |
219 manifest output the current or given revision of the project manifest | |
220 recover roll back an interrupted transaction | |
221 verify verify the integrity of the repository | |
222 | |
223 Help: | |
224 | |
225 config show combined config settings from all hgrc files | |
226 help show help for a given topic or a help overview | |
227 version output version and copyright information | |
228 | |
229 additional help topics: | |
230 | |
231 Mercurial identifiers: | |
232 | |
233 filesets Specifying File Sets | |
234 hgignore Syntax for Mercurial Ignore Files | |
235 patterns File Name Patterns | |
236 revisions Specifying Revisions | |
237 urls URL Paths | |
238 | |
239 Mercurial output: | |
240 | |
241 color Colorizing Outputs | |
242 dates Date Formats | |
243 diffs Diff Formats | |
244 templating Template Usage | |
245 | |
246 Mercurial configuration: | |
247 | |
248 config Configuration Files | |
249 environment Environment Variables | |
250 extensions Using Additional Features | |
251 flags Command-line flags | |
252 hgweb Configuring hgweb | |
253 merge-tools Merge Tools | |
254 pager Pager Support | |
48532
7ccd31fda132
docs: add documentation about Rust
Raphaël Gomès <rgomes@octobus.net>
parents:
47017
diff
changeset
|
255 rust Rust in Mercurial |
40413 | 256 |
257 Concepts: | |
258 | |
259 bundlespec Bundle File Formats | |
47017
da4e6d7a8fdd
help: add topic about evolution, based on text from evolve extension
Martin von Zweigbergk <martinvonz@google.com>
parents:
46368
diff
changeset
|
260 evolution Safely rewriting history (EXPERIMENTAL) |
40413 | 261 glossary Glossary |
262 phases Working with Phases | |
263 subrepos Subrepositories | |
264 | |
265 (use 'hg help -v' to show built-in aliases and global options) |