##// END OF EJS Templates
tests: update debugcomplete output
Matt Mackall -
r12326:9d932e8e default
parent child Browse files
Show More
@@ -1,251 +1,251 b''
1 1 Show all commands except debug commands
2 2 $ hg debugcomplete
3 3 add
4 4 addremove
5 5 annotate
6 6 archive
7 7 backout
8 8 bisect
9 9 branch
10 10 branches
11 11 bundle
12 12 cat
13 13 clone
14 14 commit
15 15 copy
16 16 diff
17 17 export
18 18 forget
19 19 grep
20 20 heads
21 21 help
22 22 identify
23 23 import
24 24 incoming
25 25 init
26 26 locate
27 27 log
28 28 manifest
29 29 merge
30 30 outgoing
31 31 parents
32 32 paths
33 33 pull
34 34 push
35 35 recover
36 36 remove
37 37 rename
38 38 resolve
39 39 revert
40 40 rollback
41 41 root
42 42 serve
43 43 showconfig
44 44 status
45 45 summary
46 46 tag
47 47 tags
48 48 tip
49 49 unbundle
50 50 update
51 51 verify
52 52 version
53 53
54 54 Show all commands that start with "a"
55 55 $ hg debugcomplete a
56 56 add
57 57 addremove
58 58 annotate
59 59 archive
60 60
61 61 Do not show debug commands if there are other candidates
62 62 $ hg debugcomplete d
63 63 diff
64 64
65 65 Show debug commands if there are no other candidates
66 66 $ hg debugcomplete debug
67 67 debugancestor
68 68 debugbuilddag
69 69 debugcheckstate
70 70 debugcommands
71 71 debugcomplete
72 72 debugconfig
73 73 debugdag
74 74 debugdata
75 75 debugdate
76 76 debugfsinfo
77 77 debugindex
78 78 debugindexdot
79 79 debuginstall
80 80 debugpushkey
81 81 debugrebuildstate
82 82 debugrename
83 83 debugrevspec
84 84 debugsetparents
85 85 debugstate
86 86 debugsub
87 87 debugwalk
88 88
89 89 Do not show the alias of a debug command if there are other candidates
90 90 (this should hide rawcommit)
91 91 $ hg debugcomplete r
92 92 recover
93 93 remove
94 94 rename
95 95 resolve
96 96 revert
97 97 rollback
98 98 root
99 99 Show the alias of a debug command if there are no other candidates
100 100 $ hg debugcomplete rawc
101 101
102 102
103 103 Show the global options
104 104 $ hg debugcomplete --options | sort
105 105 --config
106 106 --cwd
107 107 --debug
108 108 --debugger
109 109 --encoding
110 110 --encodingmode
111 111 --help
112 112 --noninteractive
113 113 --profile
114 114 --quiet
115 115 --repository
116 116 --time
117 117 --traceback
118 118 --verbose
119 119 --version
120 120 -R
121 121 -h
122 122 -q
123 123 -v
124 124 -y
125 125
126 126 Show the options for the "serve" command
127 127 $ hg debugcomplete --options serve | sort
128 128 --accesslog
129 129 --address
130 130 --certificate
131 131 --config
132 132 --cwd
133 133 --daemon
134 134 --daemon-pipefds
135 135 --debug
136 136 --debugger
137 137 --encoding
138 138 --encodingmode
139 139 --errorlog
140 140 --help
141 141 --ipv6
142 142 --name
143 143 --noninteractive
144 144 --pid-file
145 145 --port
146 146 --prefix
147 147 --profile
148 148 --quiet
149 149 --repository
150 150 --stdio
151 151 --style
152 152 --templates
153 153 --time
154 154 --traceback
155 155 --verbose
156 156 --version
157 157 --web-conf
158 158 -6
159 159 -A
160 160 -E
161 161 -R
162 162 -a
163 163 -d
164 164 -h
165 165 -n
166 166 -p
167 167 -q
168 168 -t
169 169 -v
170 170 -y
171 171
172 172 Show an error if we use --options with an ambiguous abbreviation
173 173 $ hg debugcomplete --options s
174 174 hg: command 's' is ambiguous:
175 175 serve showconfig status summary
176 176 [255]
177 177
178 178 Show all commands + options
179 179 $ hg debugcommands
180 180 add: include, exclude, subrepos, dry-run
181 181 annotate: rev, follow, no-follow, text, user, file, date, number, changeset, line-number, include, exclude
182 182 clone: noupdate, updaterev, rev, branch, pull, uncompressed, ssh, remotecmd
183 183 commit: addremove, close-branch, include, exclude, message, logfile, date, user
184 184 diff: rev, change, text, git, nodates, show-function, reverse, ignore-all-space, ignore-space-change, ignore-blank-lines, unified, stat, include, exclude, subrepos
185 185 export: output, switch-parent, rev, text, git, nodates
186 186 forget: include, exclude
187 187 init: ssh, remotecmd
188 188 log: follow, follow-first, date, copies, keyword, rev, removed, only-merges, user, only-branch, branch, prune, patch, git, limit, no-merges, stat, style, template, include, exclude
189 189 merge: force, rev, preview
190 190 pull: update, force, rev, branch, ssh, remotecmd
191 191 push: force, rev, branch, new-branch, ssh, remotecmd
192 192 remove: after, force, include, exclude
193 193 serve: accesslog, daemon, daemon-pipefds, errorlog, port, address, prefix, name, web-conf, webdir-conf, pid-file, stdio, templates, style, ipv6, certificate
194 194 status: all, modified, added, removed, deleted, clean, unknown, ignored, no-status, copies, print0, rev, change, include, exclude, subrepos
195 195 summary: remote
196 196 update: clean, check, date, rev
197 197 addremove: similarity, include, exclude, dry-run
198 archive: no-decode, prefix, rev, type, include, exclude
198 archive: no-decode, prefix, rev, type, subrepos, include, exclude
199 199 backout: merge, parent, rev, include, exclude, message, logfile, date, user
200 200 bisect: reset, good, bad, skip, command, noupdate
201 201 branch: force, clean
202 202 branches: active, closed
203 203 bundle: force, rev, branch, base, all, type, ssh, remotecmd
204 204 cat: output, rev, decode, include, exclude
205 205 copy: after, force, include, exclude, dry-run
206 206 debugancestor:
207 207 debugbuilddag: mergeable-file, appended-file, overwritten-file, new-file
208 208 debugcheckstate:
209 209 debugcommands:
210 210 debugcomplete: options
211 211 debugdag: tags, branches, dots, spaces
212 212 debugdata:
213 213 debugdate: extended
214 214 debugfsinfo:
215 215 debugindex:
216 216 debugindexdot:
217 217 debuginstall:
218 218 debugpushkey:
219 219 debugrebuildstate: rev
220 220 debugrename: rev
221 221 debugrevspec:
222 222 debugsetparents:
223 223 debugstate: nodates
224 224 debugsub: rev
225 225 debugwalk: include, exclude
226 226 grep: print0, all, follow, ignore-case, files-with-matches, line-number, rev, user, date, include, exclude
227 227 heads: rev, topo, active, closed, style, template
228 228 help:
229 229 identify: rev, num, id, branch, tags
230 230 import: strip, base, force, no-commit, exact, import-branch, message, logfile, date, user, similarity
231 231 incoming: force, newest-first, bundle, rev, branch, patch, git, limit, no-merges, stat, style, template, ssh, remotecmd, subrepos
232 232 locate: rev, print0, fullpath, include, exclude
233 233 manifest: rev
234 234 outgoing: force, rev, newest-first, branch, patch, git, limit, no-merges, stat, style, template, ssh, remotecmd, subrepos
235 235 parents: rev, style, template
236 236 paths:
237 237 recover:
238 238 rename: after, force, include, exclude, dry-run
239 239 resolve: all, list, mark, unmark, no-status, include, exclude
240 240 revert: all, date, rev, no-backup, include, exclude, dry-run
241 241 rollback: dry-run
242 242 root:
243 243 showconfig: untrusted
244 244 tag: force, local, rev, remove, edit, message, date, user
245 245 tags:
246 246 tip: patch, git, style, template
247 247 unbundle: update
248 248 verify:
249 249 version:
250 250
251 251 $ exit 0
General Comments 0
You need to be logged in to leave comments. Login now