Read about our upcoming Code of Conduct on this issue

test-completion.t 10.7 KB
Newer Older
1
2
Show all commands except debug commands
  $ hg debugcomplete
3
  abort
4
5
6
7
8
9
  add
  addremove
  annotate
  archive
  backout
  bisect
10
  bookmarks
11
12
13
14
15
16
  branch
  branches
  bundle
  cat
  clone
  commit
17
  config
18
  continue
19
20
21
  copy
  diff
  export
22
  files
23
  forget
24
  graft
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  grep
  heads
  help
  identify
  import
  incoming
  init
  locate
  log
  manifest
  merge
  outgoing
  parents
  paths
39
  phase
40
41
42
43
44
45
46
47
48
49
  pull
  push
  recover
  remove
  rename
  resolve
  revert
  rollback
  root
  serve
50
  shelve
51
52
53
54
55
56
  status
  summary
  tag
  tags
  tip
  unbundle
57
  unshelve
58
59
60
61
62
63
  update
  verify
  version

Show all commands that start with "a"
  $ hg debugcomplete a
64
  abort
65
66
67
68
69
70
71
72
73
74
75
76
  add
  addremove
  annotate
  archive

Do not show debug commands if there are other candidates
  $ hg debugcomplete d
  diff

Show debug commands if there are no other candidates
  $ hg debugcomplete debug
  debugancestor
77
  debugantivirusrunning
78
  debugapplystreamclonebundle
79
  debugbackupbundle
80
  debugbuilddag
81
  debugbundle
82
  debugcapabilities
83
  debugcheckstate
84
  debugcolor
85
86
87
  debugcommands
  debugcomplete
  debugconfig
88
  debugcreatestreamclonebundle
89
90
91
  debugdag
  debugdata
  debugdate
92
  debugdeltachain
93
  debugdirstate
94
  debugdiscovery
95
  debugdownload
96
  debugextensions
97
  debugfileset
98
  debugformat
99
  debugfsinfo
100
  debuggetbundle
101
  debugignore
102
103
  debugindex
  debugindexdot
104
  debugindexstats
105
  debuginstall
106
  debugknown
107
  debuglabelcomplete
108
  debuglocks
109
  debugmanifestfulltextcache
110
  debugmergestate
111
  debugnamecomplete
112
  debugnodemap
113
  debugobsolete
114
115
  debugp1copies
  debugp2copies
116
  debugpathcomplete
117
  debugpathcopies
118
  debugpeer
119
  debugpickmergetool
120
  debugpushkey
Matt Mackall's avatar
Matt Mackall committed
121
  debugpvec
122
  debugrebuilddirstate
123
  debugrebuildfncache
124
  debugrename
125
  debugrequires
Sune Foldager's avatar
Sune Foldager committed
126
  debugrevlog
127
  debugrevlogindex
128
  debugrevspec
129
  debugserve
130
  debugsetparents
131
  debugsidedata
132
  debugssl
133
  debugsub
134
  debugsuccessorssets
135
  debugtagscache
136
  debugtemplate
137
138
  debuguigetpass
  debuguiprompt
139
  debugupdatecaches
140
  debugupgraderepo
141
  debugwalk
142
  debugwhyunstable
143
  debugwireargs
144
  debugwireproto
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161

Do not show the alias of a debug command if there are other candidates
(this should hide rawcommit)
  $ hg debugcomplete r
  recover
  remove
  rename
  resolve
  revert
  rollback
  root
Show the alias of a debug command if there are no other candidates
  $ hg debugcomplete rawc
  

Show the global options
  $ hg debugcomplete --options | sort
162
  --color
163
164
165
166
167
168
169
  --config
  --cwd
  --debug
  --debugger
  --encoding
  --encodingmode
  --help
170
  --hidden
171
  --noninteractive
172
  --pager
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
  --profile
  --quiet
  --repository
  --time
  --traceback
  --verbose
  --version
  -R
  -h
  -q
  -v
  -y

Show the options for the "serve" command
  $ hg debugcomplete --options serve | sort
  --accesslog
  --address
  --certificate
191
  --cmdserver
192
  --color
193
194
195
  --config
  --cwd
  --daemon
196
  --daemon-postexec
197
198
199
200
201
202
  --debug
  --debugger
  --encoding
  --encodingmode
  --errorlog
  --help
203
  --hidden
204
205
206
  --ipv6
  --name
  --noninteractive
207
  --pager
208
209
210
  --pid-file
  --port
  --prefix
Nicola Spanti's avatar
Nicola Spanti committed
211
  --print-url
212
213
214
215
216
  --profile
  --quiet
  --repository
  --stdio
  --style
217
  --subrepos
218
219
220
221
222
223
224
225
226
227
  --templates
  --time
  --traceback
  --verbose
  --version
  --web-conf
  -6
  -A
  -E
  -R
228
  -S
229
230
231
232
233
234
235
236
237
238
239
240
241
  -a
  -d
  -h
  -n
  -p
  -q
  -t
  -v
  -y

Show an error if we use --options with an ambiguous abbreviation
  $ hg debugcomplete --options s
  hg: command 's' is ambiguous:
242
      serve shelve showconfig status summary
243
  [255]
244
245
246

Show all commands + options
  $ hg debugcommands
247
  abort: dry-run
248
  add: include, exclude, subrepos, dry-run
249
  addremove: similarity, subrepos, include, exclude, dry-run
250
  annotate: rev, follow, no-follow, text, user, file, date, number, changeset, line-number, skip, ignore-all-space, ignore-space-change, ignore-blank-lines, ignore-space-at-eol, include, exclude, template
251
  archive: no-decode, prefix, rev, type, subrepos, include, exclude
252
  backout: merge, commit, no-commit, parent, rev, edit, tool, include, exclude, message, logfile, date, user
253
  bisect: reset, good, bad, skip, extend, command, noupdate
254
  bookmarks: force, rev, delete, rename, inactive, list, template
255
  branch: force, clean, rev
256
  branches: active, closed, rev, template
257
  bundle: force, rev, branch, base, all, type, ssh, remotecmd, insecure
Yuya Nishihara's avatar
Yuya Nishihara committed
258
  cat: output, rev, decode, include, exclude, template
259
  clone: noupdate, updaterev, rev, branch, pull, uncompressed, stream, ssh, remotecmd, insecure
260
  commit: addremove, close-branch, amend, secret, edit, force-close-branch, interactive, include, exclude, message, logfile, date, user, subrepos
261
  config: untrusted, edit, local, global, template
262
  continue: dry-run
263
  copy: forget, after, at-rev, force, include, exclude, dry-run
264
  debugancestor: 
265
  debugantivirusrunning: 
266
  debugapplystreamclonebundle: 
267
  debugbackupbundle: recover, patch, git, limit, no-merges, stat, graph, style, template
268
  debugbuilddag: mergeable-file, overwritten-file, new-file
269
  debugbundle: all, part-type, spec
270
  debugcapabilities: 
271
  debugcheckstate: 
272
  debugcolor: style
273
274
  debugcommands: 
  debugcomplete: options
275
  debugcreatestreamclonebundle: 
276
  debugdag: tags, branches, dots, spaces
277
  debugdata: changelog, manifest, dir
278
  debugdate: extended
279
  debugdeltachain: changelog, manifest, dir, template
280
  debugdirstate: nodates, dates, datesort
281
  debugdiscovery: old, nonheads, rev, seed, ssh, remotecmd, insecure
282
  debugdownload: output
283
  debugextensions: template
284
  debugfileset: rev, all-files, show-matcher, show-stage
285
  debugformat: template
286
  debugfsinfo: 
287
  debuggetbundle: head, common, type
288
  debugignore: 
289
  debugindex: changelog, manifest, dir, template
290
  debugindexdot: changelog, manifest, dir
291
  debugindexstats: 
timeless's avatar
timeless committed
292
  debuginstall: template
293
  debugknown: 
294
  debuglabelcomplete: 
295
  debuglocks: force-lock, force-wlock, set-lock, set-wlock
296
  debugmanifestfulltextcache: clear, add
297
  debugmergestate: style, template
298
  debugnamecomplete: 
299
  debugnodemap: dump-new, dump-disk, check, metadata
300
  debugobsolete: flags, record-parents, rev, exclusive, index, delete, date, user, template
301
302
  debugp1copies: rev
  debugp2copies: rev
303
  debugpathcomplete: full, normal, added, removed
304
  debugpathcopies: include, exclude
305
  debugpeer: 
306
  debugpickmergetool: rev, changedelete, include, exclude, tool
307
  debugpushkey: 
Matt Mackall's avatar
Matt Mackall committed
308
  debugpvec: 
309
  debugrebuilddirstate: rev, minimal
310
  debugrebuildfncache: 
311
  debugrename: rev
312
  debugrequires: 
313
  debugrevlog: changelog, manifest, dir, dump
314
  debugrevlogindex: changelog, manifest, dir, format
315
  debugrevspec: optimize, show-revs, show-set, show-stage, no-optimized, verify-optimized
316
  debugserve: sshstdio, logiofd, logiofile
317
  debugsetparents: 
318
  debugsidedata: changelog, manifest, dir
319
  debugssl: 
320
  debugsub: rev
321
  debugsuccessorssets: closest
322
  debugtagscache: 
323
  debugtemplate: rev, define
324
325
  debuguigetpass: prompt
  debuguiprompt: prompt
326
  debugupdatecaches: 
327
  debugupgraderepo: optimize, run, backup, changelog, manifest
328
  debugwalk: include, exclude
329
  debugwhyunstable: 
Benoit Boissinot's avatar
Benoit Boissinot committed
330
  debugwireargs: three, four, five, ssh, remotecmd, insecure
331
  debugwireproto: localssh, peer, noreadstderr, nologhandshake, ssh, remotecmd, insecure
332
333
  diff: rev, change, text, git, binary, nodates, noprefix, show-function, reverse, ignore-all-space, ignore-space-change, ignore-blank-lines, ignore-space-at-eol, unified, stat, root, include, exclude, subrepos
  export: bookmark, output, switch-parent, rev, text, git, binary, nodates, template
334
  files: rev, print0, include, exclude, template, subrepos
335
  forget: interactive, include, exclude, dry-run
336
  graft: rev, base, continue, stop, abort, edit, log, no-commit, force, currentdate, currentuser, date, user, tool, dry-run
337
  grep: print0, all, diff, text, follow, ignore-case, files-with-matches, line-number, rev, all-files, user, date, template, include, exclude
338
  heads: rev, topo, active, closed, style, template
339
  help: extension, command, keyword, system
Matt Harbison's avatar
Matt Harbison committed
340
  identify: rev, num, id, branch, tags, bookmarks, ssh, remotecmd, insecure, template
Denis Laxalde's avatar
Denis Laxalde committed
341
  import: strip, base, secret, edit, force, no-commit, bypass, partial, exact, prefix, import-branch, message, logfile, date, user, similarity
342
  incoming: force, newest-first, bundle, rev, bookmarks, branch, patch, git, limit, no-merges, stat, graph, style, template, ssh, remotecmd, insecure, subrepos
343
  init: ssh, remotecmd, insecure
344
  locate: rev, print0, fullpath, include, exclude
345
  log: follow, follow-first, date, copies, keyword, rev, line-range, removed, only-merges, user, only-branch, branch, prune, patch, git, limit, no-merges, stat, graph, style, template, include, exclude
346
  manifest: rev, all, template
347
  merge: force, rev, preview, abort, tool
348
  outgoing: force, rev, newest-first, bookmarks, branch, patch, git, limit, no-merges, stat, graph, style, template, ssh, remotecmd, insecure, subrepos
349
  parents: rev, style, template
350
  paths: template
351
  phase: public, draft, secret, force, rev
352
  pull: update, force, confirm, rev, bookmark, branch, ssh, remotecmd, insecure
353
  push: force, rev, bookmark, branch, new-branch, pushvars, publish, ssh, remotecmd, insecure
354
  recover: verify
355
  remove: after, force, subrepos, include, exclude, dry-run
356
  rename: after, at-rev, force, include, exclude, dry-run
357
  resolve: all, list, mark, unmark, no-status, re-merge, tool, include, exclude, template
358
  revert: all, date, rev, no-backup, interactive, include, exclude, dry-run
359
  rollback: dry-run, force
360
  root: template
361
  serve: accesslog, daemon, daemon-postexec, errorlog, port, address, prefix, name, web-conf, webdir-conf, pid-file, stdio, cmdserver, templates, style, ipv6, certificate, print-url, subrepos
362
  shelve: addremove, unknown, cleanup, date, delete, edit, keep, list, message, name, patch, interactive, stat, include, exclude
363
364
  status: all, modified, added, removed, deleted, clean, unknown, ignored, no-status, terse, copies, print0, rev, change, include, exclude, subrepos, template
  summary: remote
365
  tag: force, local, rev, remove, edit, message, date, user
366
  tags: template
367
368
  tip: patch, git, style, template
  unbundle: update
369
  unshelve: abort, continue, interactive, keep, name, tool, date
370
  update: clean, check, merge, date, rev, tool
371
  verify: full
372
  version: template
373
374
375
376
377

  $ hg init a
  $ cd a
  $ echo fee > fee
  $ hg ci -q -Amfee
378
  $ hg tag fee
379
380
381
382
  $ mkdir fie
  $ echo dead > fie/dead
  $ echo live > fie/live
  $ hg bookmark fo
383
  $ hg branch -q fie
384
385
  $ hg ci -q -Amfie
  $ echo fo > fo
386
  $ hg branch -qf default
387
388
389
390
391
392
393
394
  $ hg ci -q -Amfo
  $ echo Fum > Fum
  $ hg ci -q -AmFum
  $ hg bookmark Fum

Test debugpathcomplete

  $ hg debugpathcomplete f
395
  fee
396
  fie
397
  fo
398
  $ hg debugpathcomplete -f f
399
400
401
402
  fee
  fie/dead
  fie/live
  fo
403
404
405

  $ hg rm Fum
  $ hg debugpathcomplete -r F
406
  Fum
407

408
Test debugnamecomplete
409

410
  $ hg debugnamecomplete
411
412
413
  Fum
  default
  fee
414
  fie
415
416
  fo
  tip
417
  $ hg debugnamecomplete f
418
  fee
419
  fie
420
  fo
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435

Test debuglabelcomplete, a deprecated name for debugnamecomplete that is still
used for completions in some shells.

  $ hg debuglabelcomplete
  Fum
  default
  fee
  fie
  fo
  tip
  $ hg debuglabelcomplete f
  fee
  fie
  fo