Show More
@@ -1,318 +1,336 b'' | |||||
1 | Show all commands except debug commands |
|
1 | Show all commands except debug commands | |
2 | $ hg debugcomplete |
|
2 | $ hg debugcomplete | |
3 | add |
|
3 | add | |
4 | addremove |
|
4 | addremove | |
5 | annotate |
|
5 | annotate | |
6 | archive |
|
6 | archive | |
7 | backout |
|
7 | backout | |
8 | bisect |
|
8 | bisect | |
9 | bookmarks |
|
9 | bookmarks | |
10 | branch |
|
10 | branch | |
11 | branches |
|
11 | branches | |
12 | bundle |
|
12 | bundle | |
13 | cat |
|
13 | cat | |
14 | clone |
|
14 | clone | |
15 | commit |
|
15 | commit | |
16 | copy |
|
16 | copy | |
17 | diff |
|
17 | diff | |
18 | export |
|
18 | export | |
19 | forget |
|
19 | forget | |
20 | graft |
|
20 | graft | |
21 | grep |
|
21 | grep | |
22 | heads |
|
22 | heads | |
23 | help |
|
23 | help | |
24 | identify |
|
24 | identify | |
25 | import |
|
25 | import | |
26 | incoming |
|
26 | incoming | |
27 | init |
|
27 | init | |
28 | locate |
|
28 | locate | |
29 | log |
|
29 | log | |
30 | manifest |
|
30 | manifest | |
31 | merge |
|
31 | merge | |
32 | outgoing |
|
32 | outgoing | |
33 | parents |
|
33 | parents | |
34 | paths |
|
34 | paths | |
35 | phase |
|
35 | phase | |
36 | pull |
|
36 | pull | |
37 | push |
|
37 | push | |
38 | recover |
|
38 | recover | |
39 | remove |
|
39 | remove | |
40 | rename |
|
40 | rename | |
41 | resolve |
|
41 | resolve | |
42 | revert |
|
42 | revert | |
43 | rollback |
|
43 | rollback | |
44 | root |
|
44 | root | |
45 | serve |
|
45 | serve | |
46 | showconfig |
|
46 | showconfig | |
47 | status |
|
47 | status | |
48 | summary |
|
48 | summary | |
49 | tag |
|
49 | tag | |
50 | tags |
|
50 | tags | |
51 | tip |
|
51 | tip | |
52 | unbundle |
|
52 | unbundle | |
53 | update |
|
53 | update | |
54 | verify |
|
54 | verify | |
55 | version |
|
55 | version | |
56 |
|
56 | |||
57 | Show all commands that start with "a" |
|
57 | Show all commands that start with "a" | |
58 | $ hg debugcomplete a |
|
58 | $ hg debugcomplete a | |
59 | add |
|
59 | add | |
60 | addremove |
|
60 | addremove | |
61 | annotate |
|
61 | annotate | |
62 | archive |
|
62 | archive | |
63 |
|
63 | |||
64 | Do not show debug commands if there are other candidates |
|
64 | Do not show debug commands if there are other candidates | |
65 | $ hg debugcomplete d |
|
65 | $ hg debugcomplete d | |
66 | diff |
|
66 | diff | |
67 |
|
67 | |||
68 | Show debug commands if there are no other candidates |
|
68 | Show debug commands if there are no other candidates | |
69 | $ hg debugcomplete debug |
|
69 | $ hg debugcomplete debug | |
70 | debugancestor |
|
70 | debugancestor | |
71 | debugbuilddag |
|
71 | debugbuilddag | |
72 | debugbundle |
|
72 | debugbundle | |
73 | debugcheckstate |
|
73 | debugcheckstate | |
74 | debugcommands |
|
74 | debugcommands | |
75 | debugcomplete |
|
75 | debugcomplete | |
76 | debugconfig |
|
76 | debugconfig | |
77 | debugdag |
|
77 | debugdag | |
78 | debugdata |
|
78 | debugdata | |
79 | debugdate |
|
79 | debugdate | |
80 | debugdiscovery |
|
80 | debugdiscovery | |
81 | debugfileset |
|
81 | debugfileset | |
82 | debugfsinfo |
|
82 | debugfsinfo | |
83 | debuggetbundle |
|
83 | debuggetbundle | |
84 | debugignore |
|
84 | debugignore | |
85 | debugindex |
|
85 | debugindex | |
86 | debugindexdot |
|
86 | debugindexdot | |
87 | debuginstall |
|
87 | debuginstall | |
88 | debugknown |
|
88 | debugknown | |
89 | debuglabelcomplete |
|
89 | debuglabelcomplete | |
90 | debugobsolete |
|
90 | debugobsolete | |
91 | debugpathcomplete |
|
91 | debugpathcomplete | |
92 | debugpushkey |
|
92 | debugpushkey | |
93 | debugpvec |
|
93 | debugpvec | |
94 | debugrebuildstate |
|
94 | debugrebuildstate | |
95 | debugrename |
|
95 | debugrename | |
96 | debugrevlog |
|
96 | debugrevlog | |
97 | debugrevspec |
|
97 | debugrevspec | |
98 | debugsetparents |
|
98 | debugsetparents | |
99 | debugstate |
|
99 | debugstate | |
100 | debugsub |
|
100 | debugsub | |
101 | debugsuccessorssets |
|
101 | debugsuccessorssets | |
102 | debugwalk |
|
102 | debugwalk | |
103 | debugwireargs |
|
103 | debugwireargs | |
104 |
|
104 | |||
105 | Do not show the alias of a debug command if there are other candidates |
|
105 | Do not show the alias of a debug command if there are other candidates | |
106 | (this should hide rawcommit) |
|
106 | (this should hide rawcommit) | |
107 | $ hg debugcomplete r |
|
107 | $ hg debugcomplete r | |
108 | recover |
|
108 | recover | |
109 | remove |
|
109 | remove | |
110 | rename |
|
110 | rename | |
111 | resolve |
|
111 | resolve | |
112 | revert |
|
112 | revert | |
113 | rollback |
|
113 | rollback | |
114 | root |
|
114 | root | |
115 | Show the alias of a debug command if there are no other candidates |
|
115 | Show the alias of a debug command if there are no other candidates | |
116 | $ hg debugcomplete rawc |
|
116 | $ hg debugcomplete rawc | |
117 |
|
117 | |||
118 |
|
118 | |||
119 | Show the global options |
|
119 | Show the global options | |
120 | $ hg debugcomplete --options | sort |
|
120 | $ hg debugcomplete --options | sort | |
121 | --config |
|
121 | --config | |
122 | --cwd |
|
122 | --cwd | |
123 | --debug |
|
123 | --debug | |
124 | --debugger |
|
124 | --debugger | |
125 | --encoding |
|
125 | --encoding | |
126 | --encodingmode |
|
126 | --encodingmode | |
127 | --help |
|
127 | --help | |
128 | --hidden |
|
128 | --hidden | |
129 | --noninteractive |
|
129 | --noninteractive | |
130 | --profile |
|
130 | --profile | |
131 | --quiet |
|
131 | --quiet | |
132 | --repository |
|
132 | --repository | |
133 | --time |
|
133 | --time | |
134 | --traceback |
|
134 | --traceback | |
135 | --verbose |
|
135 | --verbose | |
136 | --version |
|
136 | --version | |
137 | -R |
|
137 | -R | |
138 | -h |
|
138 | -h | |
139 | -q |
|
139 | -q | |
140 | -v |
|
140 | -v | |
141 | -y |
|
141 | -y | |
142 |
|
142 | |||
143 | Show the options for the "serve" command |
|
143 | Show the options for the "serve" command | |
144 | $ hg debugcomplete --options serve | sort |
|
144 | $ hg debugcomplete --options serve | sort | |
145 | --accesslog |
|
145 | --accesslog | |
146 | --address |
|
146 | --address | |
147 | --certificate |
|
147 | --certificate | |
148 | --cmdserver |
|
148 | --cmdserver | |
149 | --config |
|
149 | --config | |
150 | --cwd |
|
150 | --cwd | |
151 | --daemon |
|
151 | --daemon | |
152 | --daemon-pipefds |
|
152 | --daemon-pipefds | |
153 | --debug |
|
153 | --debug | |
154 | --debugger |
|
154 | --debugger | |
155 | --encoding |
|
155 | --encoding | |
156 | --encodingmode |
|
156 | --encodingmode | |
157 | --errorlog |
|
157 | --errorlog | |
158 | --help |
|
158 | --help | |
159 | --hidden |
|
159 | --hidden | |
160 | --ipv6 |
|
160 | --ipv6 | |
161 | --name |
|
161 | --name | |
162 | --noninteractive |
|
162 | --noninteractive | |
163 | --pid-file |
|
163 | --pid-file | |
164 | --port |
|
164 | --port | |
165 | --prefix |
|
165 | --prefix | |
166 | --profile |
|
166 | --profile | |
167 | --quiet |
|
167 | --quiet | |
168 | --repository |
|
168 | --repository | |
169 | --stdio |
|
169 | --stdio | |
170 | --style |
|
170 | --style | |
171 | --templates |
|
171 | --templates | |
172 | --time |
|
172 | --time | |
173 | --traceback |
|
173 | --traceback | |
174 | --verbose |
|
174 | --verbose | |
175 | --version |
|
175 | --version | |
176 | --web-conf |
|
176 | --web-conf | |
177 | -6 |
|
177 | -6 | |
178 | -A |
|
178 | -A | |
179 | -E |
|
179 | -E | |
180 | -R |
|
180 | -R | |
181 | -a |
|
181 | -a | |
182 | -d |
|
182 | -d | |
183 | -h |
|
183 | -h | |
184 | -n |
|
184 | -n | |
185 | -p |
|
185 | -p | |
186 | -q |
|
186 | -q | |
187 | -t |
|
187 | -t | |
188 | -v |
|
188 | -v | |
189 | -y |
|
189 | -y | |
190 |
|
190 | |||
191 | Show an error if we use --options with an ambiguous abbreviation |
|
191 | Show an error if we use --options with an ambiguous abbreviation | |
192 | $ hg debugcomplete --options s |
|
192 | $ hg debugcomplete --options s | |
193 | hg: command 's' is ambiguous: |
|
193 | hg: command 's' is ambiguous: | |
194 | serve showconfig status summary |
|
194 | serve showconfig status summary | |
195 | [255] |
|
195 | [255] | |
196 |
|
196 | |||
197 | Show all commands + options |
|
197 | Show all commands + options | |
198 | $ hg debugcommands |
|
198 | $ hg debugcommands | |
199 | add: include, exclude, subrepos, dry-run |
|
199 | add: include, exclude, subrepos, dry-run | |
200 | annotate: rev, follow, no-follow, text, user, file, date, number, changeset, line-number, ignore-all-space, ignore-space-change, ignore-blank-lines, include, exclude |
|
200 | annotate: rev, follow, no-follow, text, user, file, date, number, changeset, line-number, ignore-all-space, ignore-space-change, ignore-blank-lines, include, exclude | |
201 | clone: noupdate, updaterev, rev, branch, pull, uncompressed, ssh, remotecmd, insecure |
|
201 | clone: noupdate, updaterev, rev, branch, pull, uncompressed, ssh, remotecmd, insecure | |
202 | commit: addremove, close-branch, amend, include, exclude, message, logfile, date, user, subrepos |
|
202 | commit: addremove, close-branch, amend, include, exclude, message, logfile, date, user, subrepos | |
203 | diff: rev, change, text, git, nodates, show-function, reverse, ignore-all-space, ignore-space-change, ignore-blank-lines, unified, stat, include, exclude, subrepos |
|
203 | diff: rev, change, text, git, nodates, show-function, reverse, ignore-all-space, ignore-space-change, ignore-blank-lines, unified, stat, include, exclude, subrepos | |
204 | export: output, switch-parent, rev, text, git, nodates |
|
204 | export: output, switch-parent, rev, text, git, nodates | |
205 | forget: include, exclude |
|
205 | forget: include, exclude | |
206 | init: ssh, remotecmd, insecure |
|
206 | init: ssh, remotecmd, insecure | |
207 | log: follow, follow-first, date, copies, keyword, rev, removed, only-merges, user, only-branch, branch, prune, patch, git, limit, no-merges, stat, graph, style, template, include, exclude |
|
207 | log: follow, follow-first, date, copies, keyword, rev, removed, only-merges, user, only-branch, branch, prune, patch, git, limit, no-merges, stat, graph, style, template, include, exclude | |
208 | merge: force, rev, preview, tool |
|
208 | merge: force, rev, preview, tool | |
209 | pull: update, force, rev, bookmark, branch, ssh, remotecmd, insecure |
|
209 | pull: update, force, rev, bookmark, branch, ssh, remotecmd, insecure | |
210 | push: force, rev, bookmark, branch, new-branch, ssh, remotecmd, insecure |
|
210 | push: force, rev, bookmark, branch, new-branch, ssh, remotecmd, insecure | |
211 | remove: after, force, include, exclude |
|
211 | remove: after, force, include, exclude | |
212 | serve: accesslog, daemon, daemon-pipefds, errorlog, port, address, prefix, name, web-conf, webdir-conf, pid-file, stdio, cmdserver, templates, style, ipv6, certificate |
|
212 | serve: accesslog, daemon, daemon-pipefds, errorlog, port, address, prefix, name, web-conf, webdir-conf, pid-file, stdio, cmdserver, templates, style, ipv6, certificate | |
213 | status: all, modified, added, removed, deleted, clean, unknown, ignored, no-status, copies, print0, rev, change, include, exclude, subrepos |
|
213 | status: all, modified, added, removed, deleted, clean, unknown, ignored, no-status, copies, print0, rev, change, include, exclude, subrepos | |
214 | summary: remote |
|
214 | summary: remote | |
215 | update: clean, check, date, rev |
|
215 | update: clean, check, date, rev | |
216 | addremove: similarity, include, exclude, dry-run |
|
216 | addremove: similarity, include, exclude, dry-run | |
217 | archive: no-decode, prefix, rev, type, subrepos, include, exclude |
|
217 | archive: no-decode, prefix, rev, type, subrepos, include, exclude | |
218 | backout: merge, parent, rev, tool, include, exclude, message, logfile, date, user |
|
218 | backout: merge, parent, rev, tool, include, exclude, message, logfile, date, user | |
219 | bisect: reset, good, bad, skip, extend, command, noupdate |
|
219 | bisect: reset, good, bad, skip, extend, command, noupdate | |
220 | bookmarks: force, rev, delete, rename, inactive |
|
220 | bookmarks: force, rev, delete, rename, inactive | |
221 | branch: force, clean |
|
221 | branch: force, clean | |
222 | branches: active, closed |
|
222 | branches: active, closed | |
223 | bundle: force, rev, branch, base, all, type, ssh, remotecmd, insecure |
|
223 | bundle: force, rev, branch, base, all, type, ssh, remotecmd, insecure | |
224 | cat: output, rev, decode, include, exclude |
|
224 | cat: output, rev, decode, include, exclude | |
225 | copy: after, force, include, exclude, dry-run |
|
225 | copy: after, force, include, exclude, dry-run | |
226 | debugancestor: |
|
226 | debugancestor: | |
227 | debugbuilddag: mergeable-file, overwritten-file, new-file |
|
227 | debugbuilddag: mergeable-file, overwritten-file, new-file | |
228 | debugbundle: all |
|
228 | debugbundle: all | |
229 | debugcheckstate: |
|
229 | debugcheckstate: | |
230 | debugcommands: |
|
230 | debugcommands: | |
231 | debugcomplete: options |
|
231 | debugcomplete: options | |
232 | debugdag: tags, branches, dots, spaces |
|
232 | debugdag: tags, branches, dots, spaces | |
233 | debugdata: changelog, manifest |
|
233 | debugdata: changelog, manifest | |
234 | debugdate: extended |
|
234 | debugdate: extended | |
235 | debugdiscovery: old, nonheads, ssh, remotecmd, insecure |
|
235 | debugdiscovery: old, nonheads, ssh, remotecmd, insecure | |
236 | debugfileset: rev |
|
236 | debugfileset: rev | |
237 | debugfsinfo: |
|
237 | debugfsinfo: | |
238 | debuggetbundle: head, common, type |
|
238 | debuggetbundle: head, common, type | |
239 | debugignore: |
|
239 | debugignore: | |
240 | debugindex: changelog, manifest, format |
|
240 | debugindex: changelog, manifest, format | |
241 | debugindexdot: |
|
241 | debugindexdot: | |
242 | debuginstall: |
|
242 | debuginstall: | |
243 | debugknown: |
|
243 | debugknown: | |
244 | debuglabelcomplete: |
|
244 | debuglabelcomplete: | |
245 | debugobsolete: flags, date, user |
|
245 | debugobsolete: flags, date, user | |
246 | debugpathcomplete: full, normal, added, removed |
|
246 | debugpathcomplete: full, normal, added, removed | |
247 | debugpushkey: |
|
247 | debugpushkey: | |
248 | debugpvec: |
|
248 | debugpvec: | |
249 | debugrebuildstate: rev |
|
249 | debugrebuildstate: rev | |
250 | debugrename: rev |
|
250 | debugrename: rev | |
251 | debugrevlog: changelog, manifest, dump |
|
251 | debugrevlog: changelog, manifest, dump | |
252 | debugrevspec: |
|
252 | debugrevspec: | |
253 | debugsetparents: |
|
253 | debugsetparents: | |
254 | debugstate: nodates, datesort |
|
254 | debugstate: nodates, datesort | |
255 | debugsub: rev |
|
255 | debugsub: rev | |
256 | debugsuccessorssets: |
|
256 | debugsuccessorssets: | |
257 | debugwalk: include, exclude |
|
257 | debugwalk: include, exclude | |
258 | debugwireargs: three, four, five, ssh, remotecmd, insecure |
|
258 | debugwireargs: three, four, five, ssh, remotecmd, insecure | |
259 | graft: rev, continue, edit, log, currentdate, currentuser, date, user, tool, dry-run |
|
259 | graft: rev, continue, edit, log, currentdate, currentuser, date, user, tool, dry-run | |
260 | grep: print0, all, text, follow, ignore-case, files-with-matches, line-number, rev, user, date, include, exclude |
|
260 | grep: print0, all, text, follow, ignore-case, files-with-matches, line-number, rev, user, date, include, exclude | |
261 | heads: rev, topo, active, closed, style, template |
|
261 | heads: rev, topo, active, closed, style, template | |
262 | help: extension, command, keyword |
|
262 | help: extension, command, keyword | |
263 | identify: rev, num, id, branch, tags, bookmarks, ssh, remotecmd, insecure |
|
263 | identify: rev, num, id, branch, tags, bookmarks, ssh, remotecmd, insecure | |
264 | import: strip, base, edit, force, no-commit, bypass, exact, import-branch, message, logfile, date, user, similarity |
|
264 | import: strip, base, edit, force, no-commit, bypass, exact, import-branch, message, logfile, date, user, similarity | |
265 | incoming: force, newest-first, bundle, rev, bookmarks, branch, patch, git, limit, no-merges, stat, graph, style, template, ssh, remotecmd, insecure, subrepos |
|
265 | incoming: force, newest-first, bundle, rev, bookmarks, branch, patch, git, limit, no-merges, stat, graph, style, template, ssh, remotecmd, insecure, subrepos | |
266 | locate: rev, print0, fullpath, include, exclude |
|
266 | locate: rev, print0, fullpath, include, exclude | |
267 | manifest: rev, all |
|
267 | manifest: rev, all | |
268 | outgoing: force, rev, newest-first, bookmarks, branch, patch, git, limit, no-merges, stat, graph, style, template, ssh, remotecmd, insecure, subrepos |
|
268 | outgoing: force, rev, newest-first, bookmarks, branch, patch, git, limit, no-merges, stat, graph, style, template, ssh, remotecmd, insecure, subrepos | |
269 | parents: rev, style, template |
|
269 | parents: rev, style, template | |
270 | paths: |
|
270 | paths: | |
271 | phase: public, draft, secret, force, rev |
|
271 | phase: public, draft, secret, force, rev | |
272 | recover: |
|
272 | recover: | |
273 | rename: after, force, include, exclude, dry-run |
|
273 | rename: after, force, include, exclude, dry-run | |
274 | resolve: all, list, mark, unmark, no-status, tool, include, exclude |
|
274 | resolve: all, list, mark, unmark, no-status, tool, include, exclude | |
275 | revert: all, date, rev, no-backup, include, exclude, dry-run |
|
275 | revert: all, date, rev, no-backup, include, exclude, dry-run | |
276 | rollback: dry-run, force |
|
276 | rollback: dry-run, force | |
277 | root: |
|
277 | root: | |
278 | showconfig: untrusted |
|
278 | showconfig: untrusted | |
279 | tag: force, local, rev, remove, edit, message, date, user |
|
279 | tag: force, local, rev, remove, edit, message, date, user | |
280 | tags: |
|
280 | tags: | |
281 | tip: patch, git, style, template |
|
281 | tip: patch, git, style, template | |
282 | unbundle: update |
|
282 | unbundle: update | |
283 | verify: |
|
283 | verify: | |
284 | version: |
|
284 | version: | |
285 |
|
285 | |||
286 | $ hg init a |
|
286 | $ hg init a | |
287 | $ cd a |
|
287 | $ cd a | |
288 | $ echo fee > fee |
|
288 | $ echo fee > fee | |
289 | $ hg ci -q -Amfee |
|
289 | $ hg ci -q -Amfee | |
|
290 | $ hg tag fee | |||
290 | $ mkdir fie |
|
291 | $ mkdir fie | |
291 | $ echo dead > fie/dead |
|
292 | $ echo dead > fie/dead | |
292 | $ echo live > fie/live |
|
293 | $ echo live > fie/live | |
293 | $ hg bookmark fo |
|
294 | $ hg bookmark fo | |
294 | $ hg branch fie |
|
295 | $ hg branch -q fie | |
295 | $ hg ci -q -Amfie |
|
296 | $ hg ci -q -Amfie | |
296 | $ echo fo > fo |
|
297 | $ echo fo > fo | |
297 | $ hg branch default |
|
298 | $ hg branch -qf default | |
298 | $ hg ci -q -Amfo |
|
299 | $ hg ci -q -Amfo | |
299 | $ echo Fum > Fum |
|
300 | $ echo Fum > Fum | |
300 | $ hg ci -q -AmFum |
|
301 | $ hg ci -q -AmFum | |
301 | $ hg bookmark Fum |
|
302 | $ hg bookmark Fum | |
302 |
|
303 | |||
303 | Test debugpathcomplete |
|
304 | Test debugpathcomplete | |
304 |
|
305 | |||
305 | $ hg debugpathcomplete f |
|
306 | $ hg debugpathcomplete f | |
|
307 | fee | |||
|
308 | fie/ | |||
|
309 | fo | |||
306 | $ hg debugpathcomplete -f f |
|
310 | $ hg debugpathcomplete -f f | |
|
311 | fee | |||
|
312 | fie/dead | |||
|
313 | fie/live | |||
|
314 | fo | |||
307 |
|
315 | |||
308 | $ hg rm Fum |
|
316 | $ hg rm Fum | |
309 | $ hg debugpathcomplete -r F |
|
317 | $ hg debugpathcomplete -r F | |
|
318 | Fum | |||
310 |
|
319 | |||
311 | If one directory and no files match, give an ambiguous answer |
|
320 | If one directory and no files match, give an ambiguous answer | |
312 |
|
321 | |||
313 | $ hg debugpathcomplete fi |
|
322 | $ hg debugpathcomplete fi | |
|
323 | fie/ | |||
|
324 | fie/. | |||
314 |
|
325 | |||
315 | Test debuglabelcomplete |
|
326 | Test debuglabelcomplete | |
316 |
|
327 | |||
317 | $ hg debuglabelcomplete |
|
328 | $ hg debuglabelcomplete | |
|
329 | Fum | |||
|
330 | default | |||
|
331 | fee | |||
|
332 | fo | |||
|
333 | tip | |||
318 | $ hg debuglabelcomplete f |
|
334 | $ hg debuglabelcomplete f | |
|
335 | fee | |||
|
336 | fo |
General Comments 0
You need to be logged in to leave comments.
Login now