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