Mercurial > dotfiles
comparison dot_config/private_fish/completions/hg.fish @ 1042:aa5a077e8680
feat: override hg completions to allow full path completion on hg add
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Thu, 02 May 2024 07:53:01 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1041:979735a38885 | 1042:aa5a077e8680 |
---|---|
1 # fish completion for hg | |
2 | |
3 # Mercurial has a global switch to specify the path to the repository on which | |
4 # to run the hg command (-R or --repository). If that is on the commandline, | |
5 # this function echoes the given path and returns 0. Otherwise, it returns 1. | |
6 function __fish_hg_get_repo | |
7 set -l cmdline (commandline -p) | |
8 if set -l match (string match -r -- "(-R|--repository) +([^ ]+)" $cmdline) | |
9 echo $match[3] | |
10 return 0 | |
11 else | |
12 return 1 | |
13 end | |
14 end | |
15 | |
16 # Mercurial also has a global switch to specify a directory to which to switch | |
17 # before running the command (--cwd). If it is on the commandline, this | |
18 # function echoes the given path and returns 0. Otherwise, it returns 1. | |
19 function __fish_hg_get_cwd | |
20 set -l cmdline (commandline -p) | |
21 if set -l match (string match -r -- "--cwd +([^ ]+)" $cmdline) | |
22 echo $match[2] | |
23 return 0 | |
24 else | |
25 return 1 | |
26 end | |
27 end | |
28 | |
29 function __fish_hg | |
30 set -lx HGPLAIN 1 | |
31 if set -l repo (__fish_hg_get_repo) | |
32 set argv $argv -R $repo | |
33 end | |
34 if set -l cwd (__fish_hg_get_cwd) | |
35 set argv $argv --cwd $cwd | |
36 end | |
37 command hg $argv 2>/dev/null | |
38 end | |
39 | |
40 function __fish_hg_commands | |
41 set -l commands (__fish_hg debugcomplete) | |
42 for command in $commands | |
43 switch $command | |
44 case add | |
45 printf "$command\tadd the specified files on the next commit\n" | |
46 case addremove | |
47 printf "$command\tadd all new files, delete all missing files\n" | |
48 case annotate | |
49 printf "$command\tshow changeset information by line for each file\n" | |
50 case archive | |
51 printf "$command\tcreate an unversioned archive of a repository revision\n" | |
52 case backout | |
53 printf "$command\treverse effect of earlier changeset\n" | |
54 case bisect | |
55 printf "$command\tsubdivision search of changesets\n" | |
56 case bookmarks | |
57 printf "$command\tcreate a new bookmark or list existing bookmarks\n" | |
58 case branch | |
59 printf "$command\tset or show the current branch name\n" | |
60 case branches | |
61 printf "$command\tlist repository named branches\n" | |
62 case bundle | |
63 printf "$command\tcreate a bundle file\n" | |
64 case cat | |
65 printf "$command\toutput the current or given revision of files\n" | |
66 case churn | |
67 printf "$command\thistogram of changes to the repository\n" | |
68 case clone | |
69 printf "$command\tmake a copy of an existing repository\n" | |
70 case commit | |
71 printf "$command\tcommit the specified files or all outstanding changes\n" | |
72 case config | |
73 printf "$command\tshow combined config settings from all hgrc files\n" | |
74 case convert | |
75 printf "$command\tconvert a foreign SCM repository to a Mercurial one\n" | |
76 case copy | |
77 printf "$command\tmark files as copied for the next commit\n" | |
78 case diff | |
79 printf "$command\tdiff repository (or selected files)\n" | |
80 case email | |
81 printf "$command\tsend changesets by email\n" | |
82 case export | |
83 printf "$command\tdump the header and diffs for one or more changesets\n" | |
84 case extdiff | |
85 printf "$command\tuse external program to diff repository (or selected files)\n" | |
86 case files | |
87 printf "$command\tlist tracked files\n" | |
88 case forget | |
89 printf "$command\tforget the specified files on the next commit\n" | |
90 case graft | |
91 printf "$command\tcopy changes from other branches onto the current branch\n" | |
92 case grep | |
93 printf "$command\tsearch revision history for a pattern in specified files\n" | |
94 case heads | |
95 printf "$command\tshow branch heads\n" | |
96 case help | |
97 printf "$command\tshow help for a given topic or a help overview\n" | |
98 case histedit | |
99 printf "$command\tinteractively edit changeset history\n" | |
100 case identify | |
101 printf "$command\tidentify the working directory or specified revision\n" | |
102 case import | |
103 printf "$command\timport an ordered set of patches\n" | |
104 case incoming | |
105 printf "$command\tshow new changesets found in source\n" | |
106 case init | |
107 printf "$command\tcreate a new repository in the given directory\n" | |
108 case locate | |
109 printf "$command\tlocate files matching specific patterns\n" | |
110 case log | |
111 printf "$command\tshow revision history of entire repository or files\n" | |
112 case manifest | |
113 printf "$command\toutput the current or given revision of the project manifest\n" | |
114 case merge | |
115 printf "$command\tmerge another revision into working directory\n" | |
116 case outgoing | |
117 printf "$command\tshow changesets not found in the destination\n" | |
118 case parents | |
119 printf "$command\tshow the parents of the working directory or revision\n" | |
120 case paths | |
121 printf "$command\tshow aliases for remote repositories\n" | |
122 case phase | |
123 printf "$command\tset or show the current phase name\n" | |
124 case pull | |
125 printf "$command\tpull changes from the specified source\n" | |
126 case push | |
127 printf "$command\tpush changes to the specified destination\n" | |
128 case qapplied | |
129 printf "$command\tprint the patches already applied\n" | |
130 case qclone | |
131 printf "$command\tclone main and patch repository at same time\n" | |
132 case qcommit | |
133 # deprecated | |
134 case qdelete | |
135 printf "$command\tremove patches from queue\n" | |
136 case qdiff | |
137 printf "$command\tdiff of the current patch and subsequent modifications\n" | |
138 case qfinish | |
139 printf "$command\tmove applied patches into repository history\n" | |
140 case qfold | |
141 printf "$command\tfold the named patches into the current patch\n" | |
142 case qgoto | |
143 printf "$command\tpush or pop patches until named patch is at top of stack\n" | |
144 case qguard | |
145 printf "$command\t set or print guards for a patch\n" | |
146 case qheader | |
147 printf "$command\tprint the header of the topmost or specified patch\n" | |
148 case qimport | |
149 printf "$command\timport a patch or existing changeset\n" | |
150 case qinit | |
151 # deprecated | |
152 case qnew | |
153 printf "$command\tcreate a new patch\n" | |
154 case qnext | |
155 printf "$command\tprint the name of the next pushable patch\n" | |
156 case qpop | |
157 printf "$command\tpop the current patch off the stack\n" | |
158 case qprev | |
159 printf "$command\tprint the name of the preceding applied patch\n" | |
160 case qpush | |
161 printf "$command\tpush the next patch onto the stack\n" | |
162 case qqueue | |
163 printf "$command\tmanage multiple patch queues\n" | |
164 case qrecord | |
165 printf "$command\tinteractively record a new patch\n" | |
166 case qrefresh | |
167 printf "$command\tupdate the current patch\n" | |
168 case qrename | |
169 printf "$command\trename a patch\n" | |
170 case qrestore | |
171 # deprecated | |
172 case qsave | |
173 # deprecated | |
174 case qselect | |
175 printf "$command\tset or print guarded patches to push\n" | |
176 case qseries | |
177 printf "$command\tprint the entire series file\n" | |
178 case qtop | |
179 printf "$command\tprint the name of the current patch\n" | |
180 case qunapplied | |
181 printf "$command\tprint the patches not yet applied\n" | |
182 case rebase | |
183 printf "$command\tmove changeset (and descendants) to a different branch\n" | |
184 case record | |
185 printf "$command\tinteractively select changes to commit\n" | |
186 case recover | |
187 printf "$command\troll back an interrupted transaction\n" | |
188 case remove | |
189 printf "$command\tremove the specified files on the next commit\n" | |
190 case rename | |
191 printf "$command\trename files; equivalent of copy + remove\n" | |
192 case resolve | |
193 printf "$command\tredo merges or set/view the merge status of files\n" | |
194 case revert | |
195 printf "$command\trestore files to their checkout state\n" | |
196 case rollback | |
197 # deprecated | |
198 case root | |
199 printf "$command\tprint the root (top) of the current working directory\n" | |
200 case serve | |
201 printf "$command\tstart stand-alone webserver\n" | |
202 case shelve | |
203 printf "$command\tsave and set aside changes from the working directory\n" | |
204 case status | |
205 printf "$command\tshow changed files in the working directory\n" | |
206 case strip | |
207 printf "$command\tstrip changesets and all their descendants from the repository\n" | |
208 case summary | |
209 printf "$command\tsummarize working directory state\n" | |
210 case tag | |
211 printf "$command\tadd one or more tags for the current or given revision\n" | |
212 case tags | |
213 printf "$command\tlist repository tags\n" | |
214 case tip | |
215 # deprecated | |
216 case unbundle | |
217 printf "$command\tapply one or more bundle files\n" | |
218 case unshelve | |
219 printf "$command\trestore a shelved change to the working directory\n" | |
220 case update | |
221 printf "$command\tupdate working directory (or switch revisions)\n" | |
222 case verify | |
223 printf "$command\tverify the integrity of the repository\n" | |
224 case version | |
225 printf "$command\toutput version and copyright information\n" | |
226 case view | |
227 printf "$command\tstart interactive history viewer\n" | |
228 case "*" | |
229 printf "$command\n" | |
230 end | |
231 end | |
232 end | |
233 | |
234 function __fish_hg_labels | |
235 if set -l labels (__fish_hg debuglabelcomplete) | |
236 printf "%s\tlabel\n" $labels | |
237 else | |
238 __fish_hg_branches | |
239 __fish_hg_bookmarks | |
240 for line in (__fish_hg tags) | |
241 set -l parts (string split " " -m 1 $line) | |
242 printf "%s\ttag\n" $parts[1] | |
243 end | |
244 end | |
245 end | |
246 | |
247 function __fish_hg_help_topics | |
248 set -l commands (__fish_hg debugcomplete) | |
249 printf "%s\tcommand\n" $commands | |
250 for line in (__fish_hg help | string match -re '^ [a-zA-Z]') | |
251 set -l parts (string trim $line | string split " " -m 1) | |
252 set -l topic $parts[1] | |
253 if not contains $topic $commands | |
254 printf "%s\thelp topic\n" $topic | |
255 end | |
256 end | |
257 end | |
258 | |
259 function __fish_hg_config_entries | |
260 for line in (__fish_hg config) | |
261 set -l parts (string split = -m 1 $line) | |
262 printf "%s\tconfig entry\n" $parts[1] | |
263 end | |
264 end | |
265 | |
266 function __fish_hg_patches | |
267 printf "%s\tpatch\n" (__fish_hg qseries) | |
268 end | |
269 | |
270 function __fish_hg_patch_queues | |
271 for line in (__fish_hg qqueue) | |
272 set -l parts (string split "(" -m 1 $line) | |
273 set -l queue (string trim $parts[1]) | |
274 printf "%s\tpatch queue\n" $queue | |
275 end | |
276 end | |
277 | |
278 function __fish_hg_status | |
279 set -l token (commandline -ct) | |
280 __fish_hg status -n $argv "glob:$token**" | |
281 end | |
282 | |
283 function __fish_hg_locate | |
284 __fish_hg locate $argv | |
285 end | |
286 | |
287 function __fish_hg_bookmarks | |
288 set -l bookmarks (__fish_hg bookmarks) | |
289 if string match -q -- "no bookmarks set" "$bookmarks[1]" | |
290 return | |
291 end | |
292 for line in $bookmarks | |
293 # Bookmarks can contain lots of different characters, including spaces, | |
294 # but they can't contain colons. So we use that to split the line. | |
295 set -l parts (string sub -s 4 $line | string split ":" -m 1) | |
296 set -l parts (string split " " -r -m 1 $parts[1]) | |
297 set -l bookmark (string trim $parts[1]) | |
298 printf "%s\tbookmark\n" $bookmark | |
299 end | |
300 end | |
301 | |
302 function __fish_hg_branches | |
303 for line in (__fish_hg branches) | |
304 # Like with bookmarks, branches can't contain colons, so we use that for | |
305 # splitting. | |
306 set -l parts (string split ":" -m 1 $line) | |
307 set -l parts (string split " " -r -m 1 $parts[1]) | |
308 set -l branch (string trim $parts[1]) | |
309 printf "%s\tbranch\n" $branch | |
310 end | |
311 end | |
312 | |
313 function __fish_hg_merge_tools | |
314 for tool in internal:dump internal:fail internal:forcedump internal:local internal:merge internal:merge-local internal:merge-other internal:merge3 internal:other internal:prompt internal:tagmerge internal:union | |
315 printf "$tool\tmerge tool\n" | |
316 end | |
317 for line in (__fish_hg config merge-tools) | |
318 set -l parts (string split "." -m 2 $line) | |
319 printf "%s\tmerge tool\n" $parts[2] | |
320 end | |
321 end | |
322 | |
323 function __fish_hg_sources | |
324 for line in (__fish_hg paths) | |
325 set -l parts (string split = $line) | |
326 printf "%s\tsource\n" (string trim $parts[1]) | |
327 end | |
328 end | |
329 | |
330 function __fish_hg_shelves | |
331 printf "%s\tshelve\n" (__fish_hg shelve -ql) | |
332 end | |
333 | |
334 function __fish_hg_mq_enabled | |
335 if set -l line (__fish_hg config extensions.hgext.mq) | |
336 set -l parts (string split "=" -m 1 $line) | |
337 not string match -r -q -- "^!" $parts[2] | |
338 return | |
339 else | |
340 return 1 | |
341 end | |
342 end | |
343 | |
344 function __fish_hg_get_command | |
345 set -l cmdline (commandline -poc) | |
346 set -e cmdline[1] | |
347 set -l lasttoken "" | |
348 for token in $cmdline | |
349 # if the last token was a switch that takes an argument, we just skip | |
350 # the current token | |
351 if string match -r -q -- "-R|--repository|--cwd|--config|--encoding|--encodingmode|--color|--pager" $lasttoken | |
352 set lasttoken "" | |
353 continue | |
354 end | |
355 # if the current token is a switch of any kind, we can skip it | |
356 if string match -q -- "-*" $token | |
357 set lasttoken $token | |
358 continue | |
359 end | |
360 # if we get to here, then we assume that the token is an hg command | |
361 echo $token | |
362 return 0 | |
363 end | |
364 # no hg command was found | |
365 return 1 | |
366 end | |
367 | |
368 function __fish_hg_using_command --argument-names cmd | |
369 if set -l token (__fish_hg_get_command) | |
370 string match -q -- $token $cmd | |
371 return | |
372 else | |
373 return 1 | |
374 end | |
375 end | |
376 | |
377 function __fish_hg_needs_command | |
378 not __fish_hg_get_command >/dev/null | |
379 end | |
380 | |
381 # global options | |
382 complete -c hg -s R -l repository -x -d "repository root directory or name of overlay bundle file" | |
383 complete -c hg -l cwd -x -a "(__fish_complete_directories (commandline -ct))" -d "change working directory" | |
384 complete -c hg -s y -l noninteractive -d "do not prompt, automatically pick the first choice for all prompts" | |
385 complete -c hg -s q -l quiet -d "suppress output" | |
386 complete -c hg -s v -l verbose -d "enable additional output" | |
387 complete -c hg -l config -x -a "(__fish_hg_config_entries)" -d "set/override config option" | |
388 complete -c hg -l debug -d "enable debugging output" | |
389 complete -c hg -l debugger -d "start debugger" | |
390 complete -c hg -l encoding -x -d "set the charset encoding" | |
391 complete -c hg -l encodingmode -x -d "set the charset encoding mode" | |
392 complete -c hg -l traceback -d "always print a traceback on exception" | |
393 complete -c hg -l time -d "time how long the command takes" | |
394 complete -c hg -l profile -d "print command execution profile" | |
395 complete -c hg -l version -d "output version information and exit" | |
396 complete -c hg -s h -l help -d "display help and exit" | |
397 complete -c hg -l hidden -d "consider hidden changesets" | |
398 complete -c hg -l color -x -a "true false always auto never debug" -d "when to colorize" | |
399 complete -c hg -l pager -x -a "true false always auto never" -d "when to paginate" | |
400 | |
401 # subcommands | |
402 complete -c hg -n __fish_hg_needs_command -x -a "(__fish_hg_commands)" | |
403 | |
404 # hg add | |
405 complete -c hg -n "__fish_hg_using_command add" -a "(__fish_hg_status -u)" | |
406 complete -c hg -n "__fish_hg_using_command add" -s I -l include -x -d "include names matching the given patterns" | |
407 complete -c hg -n "__fish_hg_using_command add" -s X -l exclude -x -d "exclude names matching the given patterns" | |
408 complete -c hg -n "__fish_hg_using_command add" -s S -l subrepos -d "recurse into subrepositories" | |
409 complete -c hg -n "__fish_hg_using_command add" -s n -l dry-run -d "do not perform actions, just print output" | |
410 complete -c hg -n "__fish_hg_using_command add; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
411 | |
412 # hg addremove | |
413 for cmd in addr addre addrem addremo addremov addremove | |
414 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -ud)" | |
415 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l similarity -x -d "guess renamed files by similarity (0<=s<=100)" | |
416 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" | |
417 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
418 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
419 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" | |
420 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
421 end | |
422 | |
423 # hg annotate | |
424 for cmd in an ann anno annot annota annotat annotate bl bla blam blame | |
425 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_status -cmdr)" | |
426 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "annotate the specified revision" | |
427 complete -c hg -n "__fish_hg_using_command $cmd" -l no-follow -d "don't follow copies and renames" | |
428 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l text -d "treat all files as text" | |
429 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -d "list the author (long with -v)" | |
430 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l file -d "list the filename" | |
431 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -d "list the date (short with -q)" | |
432 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l number -d "list the revision number (default)" | |
433 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l changeset -d "list the changeset" | |
434 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l line-number -d "show line number at the first appearance" | |
435 complete -c hg -n "__fish_hg_using_command $cmd" -s w -l ignore-all-space -d "ignore white space when comparing lines" | |
436 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l ignore-space-change -d "ignore changes in the amount of white space" | |
437 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l ignore-blank-lines -d "ignore changes whose lines are all blank" | |
438 complete -c hg -n "__fish_hg_using_command $cmd" -s Z -l ignore-space-at-eol -d "ignore changes in whitespace at EOL" | |
439 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
440 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
441 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
442 end | |
443 | |
444 # hg archive | |
445 for cmd in ar arc arch archi archiv archive | |
446 complete -c hg -n "__fish_hg_using_command $cmd" -l no-decode -d "do not pass files through decoders" | |
447 complete -c hg -n "__fish_hg_using_command $cmd" -s p -l prefix -x -d "directory prefix for files in archive" | |
448 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to distribute" | |
449 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l type -x -a "files tar tbz2 tgz uzip zip" -d "type of distribution to create" | |
450 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" | |
451 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
452 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
453 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
454 end | |
455 | |
456 # hg backout | |
457 for cmd in ba bac back backo backou backout | |
458 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" | |
459 complete -c hg -n "__fish_hg_using_command $cmd" -l merge -d "merge with old dirstate parent after backout" | |
460 complete -c hg -n "__fish_hg_using_command $cmd" -l no-commit -d "do not commit" | |
461 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to backout" | |
462 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" | |
463 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" | |
464 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
465 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
466 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" | |
467 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -r -d "read commit message from file" | |
468 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "record the specified date as commit date" | |
469 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "record the specified user as committer" | |
470 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
471 end | |
472 | |
473 # hg bisect | |
474 for cmd in bi bis bise bisec bisect | |
475 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_labels)" | |
476 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l reset -d "reset bisect state" | |
477 complete -c hg -n "__fish_hg_using_command $cmd" -s g -l good -d "mark changeset good" | |
478 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l bad -d "mark changeset bad" | |
479 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l skip -d "skip testing changeset" | |
480 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l extend -d "extend the bisect range" | |
481 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l command -x -d "use command to check changeset state" | |
482 complete -c hg -n "__fish_hg_using_command $cmd" -s U -l noupdate -d "do not update to target" | |
483 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
484 end | |
485 | |
486 # hg bookmarks | |
487 for cmd in bo boo book bookm bookma bookmar bookmark bookmarks | |
488 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_bookmarks)" | |
489 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d force | |
490 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision for bookmark action" | |
491 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l delete -d "delete a given bookmark" | |
492 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l rename -x -a "(__fish_hg_bookmarks)" -d "rename a given bookmark" | |
493 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l inactive -d "mark a bookmark inactive" | |
494 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
495 end | |
496 | |
497 # hg branch | |
498 complete -c hg -n "__fish_hg_using_command branch" -f -a "(__fish_hg_branches)" | |
499 complete -c hg -n "__fish_hg_using_command branch" -s f -l force -d "set branch name even if it shadows an existing branch" | |
500 complete -c hg -n "__fish_hg_using_command branch" -s C -l clean -d "reset branch name to parent branch name" | |
501 complete -c hg -n "__fish_hg_using_command branch; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
502 | |
503 # hg branches | |
504 for cmd in branche branches | |
505 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l closed -d "show normal and closed branches" | |
506 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
507 end | |
508 | |
509 # hg bundle | |
510 for cmd in bu bun bund bundl bundle | |
511 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "run even when the destination is unrelated" | |
512 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "a changeset intended to be added to the destination" | |
513 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -a "(__fish_hg_branches)" -d "a specific branch you would like to bundle" | |
514 complete -c hg -n "__fish_hg_using_command $cmd" -l base -x -a "(__fish_hg_labels)" -d "a base changeset assumed to be available at the destination" | |
515 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l all -d "bundle all changesets in the repository" | |
516 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l type -x -d "bundle compression type to use (default: bzip2)" | |
517 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" | |
518 complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" | |
519 complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" | |
520 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
521 end | |
522 | |
523 # hg cat | |
524 for cmd in ca cat | |
525 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_status -cmrd)" | |
526 complete -c hg -n "__fish_hg_using_command $cmd" -s o -l output -x -d "print output to file with formatted name" | |
527 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "print the given revision" | |
528 complete -c hg -n "__fish_hg_using_command $cmd" -l decode -d "apply any matching decode filter" | |
529 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
530 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
531 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
532 end | |
533 | |
534 # hg clone | |
535 for cmd in cl clo clon clone | |
536 complete -c hg -n "__fish_hg_using_command $cmd" -r -a "(__fish_hg_sources)" | |
537 complete -c hg -n "__fish_hg_using_command $cmd" -s U -l noupdate -d "the clone will include an empty working directory (only a repository)" | |
538 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l updaterev -x -d "revision, tag, or branch to check out" | |
539 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -d "do not clone everything, but include this changeset and its ancestors" | |
540 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -d "do not clone everything, but include this branch's changesets and their ancestors" | |
541 complete -c hg -n "__fish_hg_using_command $cmd" -l pull -d "use pull protocol to copy metadata" | |
542 complete -c hg -n "__fish_hg_using_command $cmd" -l stream -d "clone with minimal data processing" | |
543 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" | |
544 complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" | |
545 complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" | |
546 end | |
547 | |
548 # hg commit | |
549 for cmd in com comm commi commit ci | |
550 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -amr)" | |
551 complete -c hg -n "__fish_hg_using_command $cmd" -s A -l addremove -d "mark new/missing files as added/removed before committing" | |
552 complete -c hg -n "__fish_hg_using_command $cmd" -l close-branch -d "mark a branch head as closed" | |
553 complete -c hg -n "__fish_hg_using_command $cmd" -l amend -d "amend the parent of the working directory" | |
554 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l secret -d "use the secret phase for committing" | |
555 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" | |
556 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l interactive -d "use interactive mode" | |
557 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
558 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
559 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" | |
560 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -r -d "read commit message from file" | |
561 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "record the specified date as commit date" | |
562 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "record the specified user as committer" | |
563 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" | |
564 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
565 end | |
566 | |
567 # hg config | |
568 for cmd in conf confi config sh sho show showc showco showcon showconf showconfi showconfig | |
569 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_config_entries)" | |
570 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l untrusted -d "show untrusted configuration options" | |
571 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "edit user config" | |
572 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l local -d "edit repository config" | |
573 complete -c hg -n "__fish_hg_using_command $cmd" -s g -l global -d "edit global config" | |
574 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
575 end | |
576 | |
577 # hg convert | |
578 for cmd in conv conve conver convert | |
579 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l source-type -x -a "hg cvs darcs git svn mtn gnuarch bzr p4" -d "source repository type" | |
580 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l dest-type -x -a "hg svn" -d "destination repository type" | |
581 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -d "import up to this source revision" | |
582 complete -c hg -n "__fish_hg_using_command $cmd" -s A -l authormap -r -d "remap usernames using this file" | |
583 complete -c hg -n "__fish_hg_using_command $cmd" -l filemap -r -d "remap file names using contents of file" | |
584 complete -c hg -n "__fish_hg_using_command $cmd" -l full -d "apply filemap changes by converting all files again" | |
585 complete -c hg -n "__fish_hg_using_command $cmd" -l splicemap -r -d "splice synthesized history into place" | |
586 complete -c hg -n "__fish_hg_using_command $cmd" -l branchmap -r -d "change branch names while converting" | |
587 complete -c hg -n "__fish_hg_using_command $cmd" -l branchsort -d "try to sort changesets by branches" | |
588 complete -c hg -n "__fish_hg_using_command $cmd" -l datesort -d "try to sort changesets by date" | |
589 complete -c hg -n "__fish_hg_using_command $cmd" -l sourcesort -d "preserve source changesets order" | |
590 complete -c hg -n "__fish_hg_using_command $cmd" -l closesort -d "try to reorder closed revisions" | |
591 end | |
592 | |
593 # hg copy | |
594 for cmd in cop copy cp | |
595 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_status -cmrd)" | |
596 complete -c hg -n "__fish_hg_using_command $cmd" -s A -l after -d "record a copy that has already occurred" | |
597 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "forcibly copy over an existing managed file" | |
598 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
599 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
600 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" | |
601 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
602 end | |
603 | |
604 # hg diff | |
605 for cmd in d di dif diff | |
606 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -amr)" | |
607 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d revision | |
608 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l change -x -a "(__fish_hg_labels)" -d "change made by revision" | |
609 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l text -d "treat all files as text" | |
610 complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" | |
611 complete -c hg -n "__fish_hg_using_command $cmd" -l binary -d "generate binary diffs in git mode (default)" | |
612 complete -c hg -n "__fish_hg_using_command $cmd" -l nodates -d "omit dates from diff headers" | |
613 complete -c hg -n "__fish_hg_using_command $cmd" -l noprefix -d "omit a/ and b/ prefixes from filenames" | |
614 complete -c hg -n "__fish_hg_using_command $cmd" -s p -l show-function -d "show which function each change is in" | |
615 complete -c hg -n "__fish_hg_using_command $cmd" -l reverse -d "produce a diff that undoes the changes" | |
616 complete -c hg -n "__fish_hg_using_command $cmd" -s w -l ignore-all-space -d "ignore white space when comparing lines" | |
617 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l ignore-space-change -d "ignore changes in the amount of white space" | |
618 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l ignore-blank-lines -d "ignore changes whose lines are all blank" | |
619 complete -c hg -n "__fish_hg_using_command $cmd" -s Z -l ignore-space-at-eol -d "ignore changes in whitespace at EOL" | |
620 complete -c hg -n "__fish_hg_using_command $cmd" -s U -l unified -x -d "number of lines of context to show" | |
621 complete -c hg -n "__fish_hg_using_command $cmd" -l stat -d "output diffstat-style summary of changes" | |
622 complete -c hg -n "__fish_hg_using_command $cmd" -l root -x -d "produce diffs relative to subdirectory" | |
623 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
624 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
625 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" | |
626 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
627 end | |
628 | |
629 # hg email | |
630 for cmd in em ema emai email | |
631 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_labels)" | |
632 complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" | |
633 complete -c hg -n "__fish_hg_using_command $cmd" -l plain -d "omit hg patch header" | |
634 complete -c hg -n "__fish_hg_using_command $cmd" -s o -l outgoing -d "send changes not found in the target repository" | |
635 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l bundle -d "send changes not in target as a binary bundle" | |
636 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmark -x -a "(__fish_hg_bookmarks)" -d "send changes only reachable by given bookmark" | |
637 complete -c hg -n "__fish_hg_using_command $cmd" -l bundlename -x -d "name of the bundle attachment file" | |
638 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "a revision to send" | |
639 complete -c hg -n "__fish_hg_using_command $cmd" -l force -d "run even when remote repository is unrelated (with -b/--bundle)" | |
640 complete -c hg -n "__fish_hg_using_command $cmd" -l base -x -a "(__fish_hg_labels)" -d "a base changeset to specify instead of a destination (with -b/--bundle)" | |
641 complete -c hg -n "__fish_hg_using_command $cmd" -l intro -d "send an introduction email for a single patch" | |
642 complete -c hg -n "__fish_hg_using_command $cmd" -l body -d "send patches as inline message text (default)" | |
643 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l attach -d "send patches as attachments" | |
644 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l inline -d "send patches as inline attachments" | |
645 complete -c hg -n "__fish_hg_using_command $cmd" -l bcc -x -d "email addresses of blind carbon copy recipients" | |
646 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l cc -x -d "email addresses of copy recipients" | |
647 complete -c hg -n "__fish_hg_using_command $cmd" -l confirm -d "ask for confirmation before sending" | |
648 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l diffstat -d "add diffstat output to messages" | |
649 complete -c hg -n "__fish_hg_using_command $cmd" -l date -x -d "use the given date as the sending date" | |
650 complete -c hg -n "__fish_hg_using_command $cmd" -l desc -x -d "use the given file as the series description" | |
651 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l from -x -d "email address of sender" | |
652 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l test -d "print messages that would be sent" | |
653 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l mbox -r -d "write messages to mbox file instead of sending them" | |
654 complete -c hg -n "__fish_hg_using_command $cmd" -l reply-to -x -d "email addresses replies should be sent to" | |
655 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l subject -x -d "subject of first message (intro or single patch)" | |
656 complete -c hg -n "__fish_hg_using_command $cmd" -l in-reply-to -x -d "message identifier to reply to" | |
657 complete -c hg -n "__fish_hg_using_command $cmd" -l flag -x -d "flags to add in subject prefixes" | |
658 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l to -x -d "email addresses of recipients" | |
659 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" | |
660 complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" | |
661 complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" | |
662 end | |
663 | |
664 # hg export | |
665 for cmd in exp expo expor export | |
666 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_labels)" | |
667 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmark -x -a "(__fish_hg_bookmarks)" -d "export changes only reachable by given bookmark" | |
668 complete -c hg -n "__fish_hg_using_command $cmd" -s o -l output -x -d "print output to file with formatted name" | |
669 complete -c hg -n "__fish_hg_using_command $cmd" -l switch-parent -d "diff against the second parent" | |
670 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revisions to export" | |
671 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l text -d "treat all files as text" | |
672 complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" | |
673 complete -c hg -n "__fish_hg_using_command $cmd" -l binary -d "generate binary diffs in git mode (default)" | |
674 complete -c hg -n "__fish_hg_using_command $cmd" -l nodates -d "omit dates from diff headers" | |
675 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
676 end | |
677 | |
678 # hg files | |
679 for cmd in fi fil file files | |
680 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "search the repository as it is in REV" | |
681 complete -c hg -n "__fish_hg_using_command $cmd" -s 0 -l print0 -d "end filenames with NUL, for use with xargs" | |
682 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
683 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
684 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" | |
685 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
686 end | |
687 | |
688 # hg forget | |
689 for cmd in fo for forg forge forget | |
690 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_status -ca)" | |
691 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l interactive -d "use interactive mode" | |
692 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
693 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
694 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" | |
695 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
696 end | |
697 | |
698 # hg graft | |
699 for cmd in gra graf graft | |
700 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" | |
701 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revisions to graft" | |
702 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l continue -d "resume interrupted graft" | |
703 complete -c hg -n "__fish_hg_using_command $cmd" -l stop -d "stop interrupted graft" | |
704 complete -c hg -n "__fish_hg_using_command $cmd" -l abort -d "abort interrupted graft" | |
705 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" | |
706 complete -c hg -n "__fish_hg_using_command $cmd" -l log -d "append graft info to log message" | |
707 complete -c hg -n "__fish_hg_using_command $cmd" -l no-commit -d "don't commit, just apply the changes in working directory" | |
708 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "force graft" | |
709 complete -c hg -n "__fish_hg_using_command $cmd" -s D -l currentdate -d "record the current date as commit date" | |
710 complete -c hg -n "__fish_hg_using_command $cmd" -s U -l currentuser -d "record the current user as committer" | |
711 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "record the specified date as commit date" | |
712 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "record the specified user as committer" | |
713 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" | |
714 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" | |
715 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
716 end | |
717 | |
718 # hg grep | |
719 for cmd in gre grep | |
720 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -cmrd)" | |
721 complete -c hg -n "__fish_hg_using_command $cmd" -s 0 -l print0 -d "end fields with NUL" | |
722 complete -c hg -n "__fish_hg_using_command $cmd" -l all -d "print all revisions that match" | |
723 complete -c hg -n "__fish_hg_using_command $cmd" -l diff -d "print all revisions when the term was introduced or removed" | |
724 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l text -d "treat all files as text" | |
725 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l follow -d "follow changeset history, or file history across copies and renames" | |
726 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l ignore-case -d "ignore case when matching" | |
727 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l files-with-matches -d "print only filenames and revisions that match" | |
728 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l line-number -d "print matching line numbers" | |
729 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "only search files changed within revision range" | |
730 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -d "list the author (long with -v)" | |
731 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -d "list the date (short with -q)" | |
732 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
733 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
734 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
735 end | |
736 | |
737 # hg heads | |
738 for cmd in hea head heads | |
739 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" | |
740 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "show only heads which are descendants of STARTREV" | |
741 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l topo -d "show topological heads only" | |
742 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l closed -d "show normal and closed branch heads" | |
743 complete -c hg -n "__fish_hg_using_command $cmd" -s T -l template -x -d "display with template" | |
744 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
745 end | |
746 | |
747 # hg help | |
748 for cmd in hel help | |
749 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_help_topics)" | |
750 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l extension -d "show only help for extensions" | |
751 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l command -d "show only help for commands" | |
752 complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keyword -d "show topics matching keyword" | |
753 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l system -x -d "show help for specific platform(s)" | |
754 end | |
755 | |
756 # hg histedit | |
757 for cmd in histe histed histedi histedit | |
758 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" | |
759 complete -c hg -n "__fish_hg_using_command $cmd" -l commands -r -d "read history edits from the specified file" | |
760 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l continue -d "continue an edit already in progress" | |
761 complete -c hg -n "__fish_hg_using_command $cmd" -l edit-plan -d "edit remaining actions list" | |
762 complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "don't strip old nodes after edit is complete" | |
763 complete -c hg -n "__fish_hg_using_command $cmd" -l abort -d "abort an edit in progress" | |
764 complete -c hg -n "__fish_hg_using_command $cmd" -s o -l outgoing -d "changesets not found in destination" | |
765 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "force outgoing even for unrelated repositories" | |
766 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "first revision to be edited" | |
767 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
768 end | |
769 | |
770 # hg identify | |
771 for cmd in id ide iden ident identi identif identify | |
772 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_sources)" | |
773 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "identify the specified revision" | |
774 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l num -d "show local revision number" | |
775 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l id -d "show global revision id" | |
776 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -d "show branch" | |
777 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tags -d "show tags" | |
778 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmarks -d "show bookmarks" | |
779 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" | |
780 complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" | |
781 complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" | |
782 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
783 end | |
784 | |
785 # hg import | |
786 for cmd in im imp impo impor import patc patch | |
787 complete -c hg -n "__fish_hg_using_command $cmd" -s p -l strip -x -d "directory strip option for patch" | |
788 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" | |
789 complete -c hg -n "__fish_hg_using_command $cmd" -l no-commit -d "don't commit, just update the working directory" | |
790 complete -c hg -n "__fish_hg_using_command $cmd" -l bypass -d "apply patch without touching the working directory" | |
791 complete -c hg -n "__fish_hg_using_command $cmd" -l partial -d "commit even if some hunks fail" | |
792 complete -c hg -n "__fish_hg_using_command $cmd" -l exact -d "abort if patch would apply lossily" | |
793 complete -c hg -n "__fish_hg_using_command $cmd" -l prefix -r -d "apply patch to subdirectory" | |
794 complete -c hg -n "__fish_hg_using_command $cmd" -l import-branch -d "use any branch information in patch (implied by --exact)" | |
795 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" | |
796 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -r -d "read commit message from file" | |
797 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "record the specified date as commit date" | |
798 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "record the specified user as committer" | |
799 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l similarity -x -d "guess renamed files by similarity (0<=s<=100)" | |
800 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
801 end | |
802 | |
803 # hg incoming | |
804 for cmd in inc inco incom incomi incomin incoming in | |
805 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_sources)" | |
806 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "run even if remote repository is unrelated" | |
807 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l newest-first -d "show newest record first" | |
808 complete -c hg -n "__fish_hg_using_command $cmd" -l bundle -r -d "file to store the bundles into" | |
809 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -d "a remote changeset intended to be added" | |
810 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmarks -d "compare bookmarks" | |
811 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -d "a specific branch you would like to pull" | |
812 complete -c hg -n "__fish_hg_using_command $cmd" -s p -l patch -d "show patch" | |
813 complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" | |
814 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l limit -x -d "limit number of changes displayed" | |
815 complete -c hg -n "__fish_hg_using_command $cmd" -s M -l no-merges -d "do not show merges" | |
816 complete -c hg -n "__fish_hg_using_command $cmd" -l stat -d "output diffstat-style summary of changes" | |
817 complete -c hg -n "__fish_hg_using_command $cmd" -s G -l graph -d "show the revision DAG" | |
818 complete -c hg -n "__fish_hg_using_command $cmd" -s T -l template -x -d "display with template" | |
819 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" | |
820 complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" | |
821 complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" | |
822 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" | |
823 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
824 end | |
825 | |
826 # hg init | |
827 for cmd in ini init | |
828 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" | |
829 complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" | |
830 complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" | |
831 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
832 end | |
833 | |
834 # hg locate | |
835 for cmd in loc loca locat locate | |
836 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "search the repository as it is in REV" | |
837 complete -c hg -n "__fish_hg_using_command $cmd" -s 0 -l print0 -d "end filenames with NUL, for use with xargs" | |
838 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l fullpath -d "print complete paths from the filesystem root" | |
839 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
840 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
841 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
842 end | |
843 | |
844 # hg log | |
845 for cmd in log histo histor history | |
846 complete -c hg -n "__fish_hg_using_command "$cmd -f -a "(__fish_hg_status -cmrd)" | |
847 complete -c hg -n "__fish_hg_using_command "$cmd -s f -l follow -d "follow changeset history, or file history across copies and renames" | |
848 complete -c hg -n "__fish_hg_using_command "$cmd -s d -l date -x -d "show revisions matching date spec" | |
849 complete -c hg -n "__fish_hg_using_command "$cmd -s C -l copies -d "show copied files" | |
850 complete -c hg -n "__fish_hg_using_command "$cmd -s k -l keyword -x -d "do case-insensitive search for a given text" | |
851 complete -c hg -n "__fish_hg_using_command "$cmd -s r -l rev -x -a "(__fish_hg_labels)" -d "show the specified revision or revset" | |
852 complete -c hg -n "__fish_hg_using_command "$cmd -l removed -d "include revisions where files were removed" | |
853 complete -c hg -n "__fish_hg_using_command "$cmd -s u -l user -x -d "revisions committed by user" | |
854 complete -c hg -n "__fish_hg_using_command "$cmd -s b -l branch -x -a "(__fish_hg_branches)" -d "show changesets within the given named branch" | |
855 complete -c hg -n "__fish_hg_using_command "$cmd -s P -l prune -x -a "(__fish_hg_labels)" -d "do not display revision or any of its ancestors" | |
856 complete -c hg -n "__fish_hg_using_command "$cmd -s p -l patch -d "show patch" | |
857 complete -c hg -n "__fish_hg_using_command "$cmd -s g -l git -d "use git extended diff format" | |
858 complete -c hg -n "__fish_hg_using_command "$cmd -s l -l limit -x -d "limit number of changes displayed" | |
859 complete -c hg -n "__fish_hg_using_command "$cmd -s M -l no-merges -d "do not show merges" | |
860 complete -c hg -n "__fish_hg_using_command "$cmd -l stat -d "output diffstat-style summary of changes" | |
861 complete -c hg -n "__fish_hg_using_command "$cmd -s G -l graph -d "show the revision DAG" | |
862 complete -c hg -n "__fish_hg_using_command "$cmd -s T -l template -x -d "display with template" | |
863 complete -c hg -n "__fish_hg_using_command "$cmd -s I -l include -x -d "include names matching the given patterns" | |
864 complete -c hg -n "__fish_hg_using_command "$cmd -s X -l exclude -x -d "exclude names matching the given patterns" | |
865 complete -c hg -n "__fish_hg_using_command "$cmd"; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
866 end | |
867 | |
868 # hg manifest | |
869 for cmd in ma man mani manif manife manifes manifest | |
870 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to display" | |
871 complete -c hg -n "__fish_hg_using_command $cmd" -l all -d "list files from all revisions" | |
872 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
873 end | |
874 | |
875 # hg merge | |
876 for cmd in me mer merg merge | |
877 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_labels)" | |
878 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to merge" | |
879 complete -c hg -n "__fish_hg_using_command $cmd" -s P -l preview -d "review revisions to merge (no merge is performed)" | |
880 complete -c hg -n "__fish_hg_using_command $cmd" -l abort -d "abort the ongoing merge" | |
881 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" | |
882 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
883 end | |
884 | |
885 # hg outgoing | |
886 for cmd in o ou out outg outgo outgoi outgoin outgoing | |
887 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_sources)" | |
888 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "run even when the destination is unrelated" | |
889 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "a changeset intended to be included in the destination" | |
890 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l newest-first -d "show newest record first" | |
891 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmarks -d "compare bookmarks" | |
892 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -a "(__fish_hg_branches)" -d "a specific branch you would like to push" | |
893 complete -c hg -n "__fish_hg_using_command $cmd" -s p -l patch -d "show patch" | |
894 complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" | |
895 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l limit -x -d "limit number of changes displayed" | |
896 complete -c hg -n "__fish_hg_using_command $cmd" -s M -l no-merges -d "do not show merges" | |
897 complete -c hg -n "__fish_hg_using_command $cmd" -l stat -d "output diffstat-style summary of changes" | |
898 complete -c hg -n "__fish_hg_using_command $cmd" -s G -l graph -d "show the revision DAG" | |
899 complete -c hg -n "__fish_hg_using_command $cmd" -s T -l template -x -d "display with template" | |
900 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" | |
901 complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" | |
902 complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" | |
903 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" | |
904 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
905 end | |
906 | |
907 # hg parents | |
908 for cmd in par pare paren parent parents | |
909 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -cmrd)" | |
910 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "show parents of the specified revision" | |
911 complete -c hg -n "__fish_hg_using_command $cmd" -s T -l template -x -d "display with template" | |
912 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
913 end | |
914 | |
915 # hg paths | |
916 for cmd in path paths | |
917 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
918 end | |
919 | |
920 # hg phase | |
921 for cmd in ph pha phas phase | |
922 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" | |
923 complete -c hg -n "__fish_hg_using_command $cmd" -s p -l public -d "set changeset phase to public" | |
924 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l draft -d "set changeset phase to draft" | |
925 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l secret -d "set changeset phase to secret" | |
926 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "allow to move boundary backward" | |
927 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "target revision" | |
928 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
929 end | |
930 | |
931 # hg pull | |
932 for cmd in pul pull | |
933 complete -c hg -n "__fish_hg_using_command $cmd" -r -a "(__fish_hg_sources)" | |
934 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l update -d "update to new branch head if new descendants were pulled" | |
935 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "run even when remote repository is unrelated" | |
936 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -d "a remote changeset intended to be added" | |
937 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmark -x -d "bookmark to pull" | |
938 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -d "a specific branch you would like to pull" | |
939 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" | |
940 complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" | |
941 complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" | |
942 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
943 end | |
944 | |
945 # hg push | |
946 for cmd in pus push | |
947 complete -c hg -n "__fish_hg_using_command $cmd" -r -a "(__fish_hg_sources)" | |
948 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "force push" | |
949 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "a changeset intended to be included in the destination" | |
950 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmark -x -a "(__fish_hg_bookmarks)" -d "bookmark to push" | |
951 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -a "(__fish_hg_branches)" -d "a specific branch you would like to push" | |
952 complete -c hg -n "__fish_hg_using_command $cmd" -l new-branch -d "allow pushing a new branch" | |
953 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" | |
954 complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" | |
955 complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" | |
956 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
957 end | |
958 | |
959 # hg qapplied | |
960 for cmd in qa qap qapp qappl qappli qapplie qapplied | |
961 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" | |
962 complete -c hg -n "__fish_hg_using_command $cmd" -s 1 -l last -d "show only the preceding applied patch" | |
963 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" | |
964 end | |
965 | |
966 # hg qclone | |
967 for cmd in qcl qclo qclon qclone | |
968 complete -c hg -n "__fish_hg_using_command $cmd" -r -a "(__fish_hg_sources)" | |
969 complete -c hg -n "__fish_hg_using_command $cmd" -l pull -d "use pull protocol to copy metadata" | |
970 complete -c hg -n "__fish_hg_using_command $cmd" -s U -l noupdate -d "do not update the new working directories" | |
971 complete -c hg -n "__fish_hg_using_command $cmd" -l uncompressed -d "use uncompressed transfer (fast over LAN)" | |
972 complete -c hg -n "__fish_hg_using_command $cmd" -s p -l patches -d "location of source patch repository" | |
973 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" | |
974 complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" | |
975 complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" | |
976 end | |
977 | |
978 # hg qdelete | |
979 for cmd in qde qdel qdele qdelet qdelete qrem qremo qremov qremove qrm | |
980 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" | |
981 complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "keep patch file" | |
982 end | |
983 | |
984 # hg qdiff | |
985 for cmd in qdi qdif qdiff | |
986 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -mrd --rev .^)" | |
987 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l text -d "treat all files as text" | |
988 complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" | |
989 complete -c hg -n "__fish_hg_using_command $cmd" -l binary -d "generate binary diffs in git mode (default)" | |
990 complete -c hg -n "__fish_hg_using_command $cmd" -l nodates -d "omit dates from diff headers" | |
991 complete -c hg -n "__fish_hg_using_command $cmd" -l noprefix -d "omit a/ and b/ prefixes from filenames" | |
992 complete -c hg -n "__fish_hg_using_command $cmd" -s p -l show-function -d "show which function each change is in" | |
993 complete -c hg -n "__fish_hg_using_command $cmd" -l reverse -d "produce a diff that undoes the changes" | |
994 complete -c hg -n "__fish_hg_using_command $cmd" -s w -l ignore-all-space -d "ignore white space when comparing lines" | |
995 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l ignore-space-change -d "ignore changes in the amount of white space" | |
996 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l ignore-blank-lines -d "ignore changes whose lines are all blank" | |
997 complete -c hg -n "__fish_hg_using_command $cmd" -s Z -l ignore-space-at-eol -d "ignore changes in whitespace at EOL" | |
998 complete -c hg -n "__fish_hg_using_command $cmd" -s U -l unified -x -d "number of lines of context to show" | |
999 complete -c hg -n "__fish_hg_using_command $cmd" -l stat -d "output diffstat-style summary of changes" | |
1000 complete -c hg -n "__fish_hg_using_command $cmd" -l root -x -d "produce diffs relative to subdirectory" | |
1001 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
1002 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
1003 end | |
1004 | |
1005 # hg qfinish | |
1006 for cmd in qfi qfin qfini qfinis qfinish | |
1007 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels; __fish_hg_patches)" | |
1008 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l applied -d "finish all applied changesets" | |
1009 end | |
1010 | |
1011 # hg qfold | |
1012 for cmd in qfo qfol qfold | |
1013 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" | |
1014 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" | |
1015 complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "keep folded patch files" | |
1016 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" | |
1017 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -r -d "read commit message from file" | |
1018 end | |
1019 | |
1020 # hg qgoto | |
1021 for cmd in qgo qgot qgoto | |
1022 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" | |
1023 complete -c hg -n "__fish_hg_using_command $cmd" -l keep-changes -d "tolerate non-conflicting local changes" | |
1024 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "overwrite any local changes" | |
1025 complete -c hg -n "__fish_hg_using_command $cmd" -l no-backup -d "do not save backup copies of files" | |
1026 end | |
1027 | |
1028 # hg qguard | |
1029 for cmd in qgu qgua qguar qguard | |
1030 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" | |
1031 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l list -d "list all patches and guards" | |
1032 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l none -d "drop all guards" | |
1033 end | |
1034 | |
1035 # hg qheader | |
1036 for cmd in qh qhe qhea qhead qheade qheader | |
1037 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" | |
1038 end | |
1039 | |
1040 # hg qimport | |
1041 for cmd in qim qimp qimpo qimpor qimport | |
1042 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l existing -d "import file in patch directory" | |
1043 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l name -x -d "name of patch file" | |
1044 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "overwrite existing files" | |
1045 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "place existing revisions under mq control" | |
1046 complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" | |
1047 complete -c hg -n "__fish_hg_using_command $cmd" -s P -l push -d "qpush after importing" | |
1048 end | |
1049 | |
1050 # hg qnew | |
1051 complete -c hg -n "__fish_hg_using_command qnew" -s e -l edit -d "invoke editor on commit messages" | |
1052 complete -c hg -n "__fish_hg_using_command qnew" -s g -l git -d "use git extended diff format" | |
1053 complete -c hg -n "__fish_hg_using_command qnew" -s U -l currentuser -d "add \"From: <current user>\" to patch" | |
1054 complete -c hg -n "__fish_hg_using_command qnew" -s u -l user -x -d "add \"From: <USER>\" to patch" | |
1055 complete -c hg -n "__fish_hg_using_command qnew" -s D -l currentdate -d "add \"Date: <current date>\" to patch" | |
1056 complete -c hg -n "__fish_hg_using_command qnew" -s d -l date -x -d "add \"Date: <DATE>\" to patch" | |
1057 complete -c hg -n "__fish_hg_using_command qnew" -s I -l include -x -d "include names matching the given patterns" | |
1058 complete -c hg -n "__fish_hg_using_command qnew" -s X -l exclude -x -d "exclude names matching the given patterns" | |
1059 complete -c hg -n "__fish_hg_using_command qnew" -s m -l message -x -d "use text as commit message" | |
1060 complete -c hg -n "__fish_hg_using_command qnew" -s l -l logfile -r -d "read commit message from file" | |
1061 complete -c hg -n "__fish_hg_using_command qnew" -s i -l interactive -d "interactively record a new patch" | |
1062 | |
1063 # hg qnext | |
1064 for cmd in qnex qnext | |
1065 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" | |
1066 end | |
1067 | |
1068 # hg qpop | |
1069 for cmd in qpo qpop | |
1070 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_patches)" | |
1071 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l all -d "pop all patches" | |
1072 complete -c hg -n "__fish_hg_using_command $cmd" -l keep-changes -d "tolerate non-conflicting local changes" | |
1073 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "forget any local changes to patched files" | |
1074 complete -c hg -n "__fish_hg_using_command $cmd" -l no-backup -d "do not save backup copies of files" | |
1075 end | |
1076 | |
1077 # hg qprev | |
1078 for cmd in qpr qpre qprev | |
1079 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" | |
1080 end | |
1081 | |
1082 # hg qpush | |
1083 for cmd in qpu qpus qpush | |
1084 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_patches)" | |
1085 complete -c hg -n "__fish_hg_using_command $cmd" -l keep-changes -d "tolerate non-conflicting local changes" | |
1086 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "apply on top of local changes" | |
1087 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l exact -d "apply the target patch to its recorded parent" | |
1088 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l list -d "list patch name in commit text" | |
1089 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l all -d "apply all patches" | |
1090 complete -c hg -n "__fish_hg_using_command $cmd" -l move -d "reorder patch series and apply only the patch" | |
1091 complete -c hg -n "__fish_hg_using_command $cmd" -l no-backup -d "do not save backup copies of files" | |
1092 end | |
1093 | |
1094 # hg qqueue | |
1095 for cmd in qq qqu qque qqueu qqueue | |
1096 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patch_queues)" | |
1097 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l list -d "list all available queues" | |
1098 complete -c hg -n "__fish_hg_using_command $cmd" -l active -d "print name of active queue" | |
1099 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l create -d "create new queue" | |
1100 complete -c hg -n "__fish_hg_using_command $cmd" -l rename -d "rename active queue" | |
1101 complete -c hg -n "__fish_hg_using_command $cmd" -l delete -d "delete reference to queue" | |
1102 complete -c hg -n "__fish_hg_using_command $cmd" -l purge -d "delete queue, and remove patch dir" | |
1103 end | |
1104 | |
1105 # hg qrecord | |
1106 for cmd in qrec qreco qrecor qrecord | |
1107 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -amr)" | |
1108 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "edit commit message" | |
1109 complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" | |
1110 complete -c hg -n "__fish_hg_using_command $cmd" -s U -l currentuser -d "add \"From: <current user>\" to patch" | |
1111 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "add \"From: <USER>\" to patch" | |
1112 complete -c hg -n "__fish_hg_using_command $cmd" -s D -l currentdate -d "add \"Date: <current date>\" to patch" | |
1113 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "add \"Date: <DATE>\" to patch" | |
1114 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
1115 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
1116 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" | |
1117 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -x -d "read commit message from file" | |
1118 complete -c hg -n "__fish_hg_using_command $cmd" -s w -l ignore-all-space -d "ignore white space when comparing lines" | |
1119 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l ignore-space-change -d "ignore changes in the amount of white space" | |
1120 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l ignore-blank-lines -d "ignore changes whose lines are all blank" | |
1121 end | |
1122 | |
1123 # hg qrefresh | |
1124 for cmd in qref qrefr qrefre qrefres qrefresh | |
1125 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -amr)" | |
1126 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" | |
1127 complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" | |
1128 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l short -d "refresh only files already in the patch and specified files" | |
1129 complete -c hg -n "__fish_hg_using_command $cmd" -s U -l currentuser -d "add/update author field in patch with current user" | |
1130 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "add/update author field in patch with given user" | |
1131 complete -c hg -n "__fish_hg_using_command $cmd" -s D -l currentdate -d "add/update date field in patch with current date" | |
1132 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "add/update date field in patch with given date" | |
1133 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
1134 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
1135 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" | |
1136 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -r -d "read commit message from file" | |
1137 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l interactive -d "interactively select changes to refresh" | |
1138 end | |
1139 | |
1140 # hg qrename | |
1141 for cmd in qren qrena qrenam qrename qm qmv | |
1142 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" | |
1143 end | |
1144 | |
1145 # hg qselect | |
1146 for cmd in qsel qsele qselec qselect | |
1147 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l none -d "disable all guards" | |
1148 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l series -d "list all guards in series file" | |
1149 complete -c hg -n "__fish_hg_using_command $cmd" -l pop -d "pop to before first guarded applied patch" | |
1150 complete -c hg -n "__fish_hg_using_command $cmd" -l reapply -d "pop, then reapply patches" | |
1151 end | |
1152 | |
1153 # hg qseries | |
1154 for cmd in qser qseri qserie qseries | |
1155 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l missing -d "print patches not in series" | |
1156 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" | |
1157 end | |
1158 | |
1159 # hg qtop | |
1160 for cmd in qt qto qtop | |
1161 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" | |
1162 end | |
1163 | |
1164 # hg qunapplied | |
1165 for cmd in qu qun quna qunap qunapp qunappl qunappli qunapplie qunapplied | |
1166 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" | |
1167 complete -c hg -n "__fish_hg_using_command $cmd" -s 1 -l first -d "show only the preceding applied patch" | |
1168 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" | |
1169 end | |
1170 | |
1171 # hg rebase | |
1172 for cmd in reb reba rebas rebase | |
1173 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l source -x -a "(__fish_hg_labels)" -d "rebase the specified changeset and descendants" | |
1174 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l base -x -a "(__fish_hg_labels)" -d "rebase everything from branching point of specified changeset" | |
1175 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "rebase these revisions" | |
1176 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l dest -x -a "(__fish_hg_labels)" -d "rebase onto the specified changeset" | |
1177 complete -c hg -n "__fish_hg_using_command $cmd" -l collapse -d "collapse the rebased changesets" | |
1178 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as collapse commit message" | |
1179 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" | |
1180 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -r -d "read collapse commit message from file" | |
1181 complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "keep original changesets" | |
1182 complete -c hg -n "__fish_hg_using_command $cmd" -l keepbranches -d "keep original branch names" | |
1183 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" | |
1184 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l continue -d "continue an interrupted rebase" | |
1185 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l abort -d "abort an interrupted rebase" | |
1186 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" | |
1187 complete -c hg -n "__fish_hg_using_command $cmd" -l confirm -d "ask before applying actions" | |
1188 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1189 end | |
1190 | |
1191 # hg record | |
1192 for cmd in recor record | |
1193 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -amr)" | |
1194 complete -c hg -n "__fish_hg_using_command $cmd" -s A -l addremove -d "mark new/missing files as added/removed before committing" | |
1195 complete -c hg -n "__fish_hg_using_command $cmd" -l close-branch -d "mark a branch as closed, hiding it from the branch list" | |
1196 complete -c hg -n "__fish_hg_using_command $cmd" -l amend -d "amend the parent of the working dir" | |
1197 complete -c hg -n "__fish_hg_using_command $cmd" -s s -l secret -d "use the secret phase for committing" | |
1198 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
1199 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
1200 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" | |
1201 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -x -d "read commit message from file" | |
1202 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "record the specified date as commit date" | |
1203 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "record the specified user as committer" | |
1204 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" | |
1205 complete -c hg -n "__fish_hg_using_command $cmd" -s w -l ignore-all-space -d "ignore white space when comparing lines" | |
1206 complete -c hg -n "__fish_hg_using_command $cmd" -s b -l ignore-space-change -d "ignore changes in the amount of white space" | |
1207 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l ignore-blank-lines -d "ignore changes whose lines are all blank" | |
1208 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1209 end | |
1210 | |
1211 # hg recover | |
1212 for cmd in recov recove recover | |
1213 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1214 end | |
1215 | |
1216 # hg remove | |
1217 for cmd in rem remo remov remove rm | |
1218 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_status -c)" | |
1219 complete -c hg -n "__fish_hg_using_command $cmd" -s A -l after -d "record delete for missing files" | |
1220 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "forget added files, delete modified files" | |
1221 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" | |
1222 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
1223 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
1224 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" | |
1225 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1226 end | |
1227 | |
1228 # hg rename | |
1229 for cmd in ren rena renam rename mo mov move mv | |
1230 complete -c hg -n "__fish_hg_using_command $cmd" -r -a "(__fish_hg_status -cam)" | |
1231 complete -c hg -n "__fish_hg_using_command $cmd" -s A -l after -d "record a rename that has already occurred" | |
1232 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "forcibly copy over an existing managed file" | |
1233 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
1234 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
1235 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" | |
1236 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1237 end | |
1238 | |
1239 # hg resolve | |
1240 for cmd in res reso resol resolv resolve | |
1241 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_locate 'set:unresolved()')" | |
1242 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l all -d "select all unresolved files" | |
1243 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l list -d "list state of files needing merge" | |
1244 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l mark -x -a "(__fish_hg_locate 'set:unresolved()')" -d "mark files as resolved" | |
1245 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l unmark -x -a "(__fish_hg_locate 'set:resolved()')" -d "mark files as unresolved" | |
1246 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l no-status -d "hide status prefix" | |
1247 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" | |
1248 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
1249 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
1250 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1251 end | |
1252 | |
1253 # hg revert | |
1254 for cmd in rev reve rever revert | |
1255 complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -camrd)" | |
1256 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l all -d "revert all changes when no arguments given" | |
1257 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "tipmost revision matching date" | |
1258 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revert to the specified revision" | |
1259 complete -c hg -n "__fish_hg_using_command $cmd" -s C -l no-backup -d "do not save backup copies of files" | |
1260 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l interactive -d "interactively select the changes" | |
1261 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
1262 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
1263 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" | |
1264 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1265 end | |
1266 | |
1267 # hg root | |
1268 for cmd in roo root | |
1269 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1270 end | |
1271 | |
1272 # hg serve | |
1273 for cmd in se ser serv serve | |
1274 complete -c hg -n "__fish_hg_using_command $cmd" -s A -l accesslog -r -d "name of access log file to write to" | |
1275 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l daemon -d "run server in background" | |
1276 complete -c hg -n "__fish_hg_using_command $cmd" -l daemon-postexec -x -d "used internally by daemon mode" | |
1277 complete -c hg -n "__fish_hg_using_command $cmd" -s E -l errorlog -r -d "name of error log file to write to" | |
1278 complete -c hg -n "__fish_hg_using_command $cmd" -s p -l port -x -d "port to listen on (default: 8000)" | |
1279 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l address -x -d "address to listen on (default: all interfaces)" | |
1280 complete -c hg -n "__fish_hg_using_command $cmd" -l prefix -x -d "prefix path to serve from (default: server root)" | |
1281 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l name -x -d "name to show in web pages (default: working directory)" | |
1282 complete -c hg -n "__fish_hg_using_command $cmd" -l web-conf -r -d "name of the hgweb config file (see 'hg help hgweb')" | |
1283 complete -c hg -n "__fish_hg_using_command $cmd" -l pid-file -r -d "name of file to write process ID to" | |
1284 complete -c hg -n "__fish_hg_using_command $cmd" -l stdio -d "for remote clients" | |
1285 complete -c hg -n "__fish_hg_using_command $cmd" -l cmdserver -x -d "for remote clients" | |
1286 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l templates -x -d "web templates to use" | |
1287 complete -c hg -n "__fish_hg_using_command $cmd" -l style -x -d "template style to use" | |
1288 complete -c hg -n "__fish_hg_using_command $cmd" -s 6 -l ipv6 -d "use IPv6 in addition to IPv4" | |
1289 complete -c hg -n "__fish_hg_using_command $cmd" -l certificate -r -d "SSL certificate file" | |
1290 complete -c hg -n "__fish_hg_using_command $cmd" -l print-url -d "start and print only the URL" | |
1291 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" | |
1292 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1293 end | |
1294 | |
1295 # hg shelve | |
1296 for cmd in she shel shelv shelve | |
1297 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_status -amrd)" | |
1298 complete -c hg -n "__fish_hg_using_command $cmd" -s A -l addremove -d "mark new/missing files as added/removed before shelving" | |
1299 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l unknown -d "store unknown files in the shelve" | |
1300 complete -c hg -n "__fish_hg_using_command $cmd" -l cleanup -d "delete all shelved changes" | |
1301 complete -c hg -n "__fish_hg_using_command $cmd" -l date -x -d "shelve with the specified commit date" | |
1302 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l delete -d "delete the named shelved change(s)" | |
1303 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" | |
1304 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l list -d "list current shelves" | |
1305 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as shelve message" | |
1306 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l name -x -d "use the given name for the shelved commit" | |
1307 complete -c hg -n "__fish_hg_using_command $cmd" -s p -l patch -d "output patches for changes (provide the names of the shelved changes as positional arguments)" | |
1308 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l interactive -d "interactive mode, only works while creating a shelve" | |
1309 complete -c hg -n "__fish_hg_using_command $cmd" -l stat -d "output diffstat-style summary of changes (provide the names of the shelved changes as positional arguments)" | |
1310 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
1311 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
1312 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1313 end | |
1314 | |
1315 # hg status | |
1316 for cmd in st sta stat statu status | |
1317 complete -c hg -n "__fish_hg_using_command $cmd" -s A -l all -d "show status of all files" | |
1318 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l modified -d "show only modified files" | |
1319 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l added -d "show only added files" | |
1320 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l removed -d "show only removed files" | |
1321 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l deleted -d "show only deleted (but tracked) files" | |
1322 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l clean -d "show only files without changes" | |
1323 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l unknown -d "show only unknown (not tracked) files" | |
1324 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l ignored -d "show only ignored files" | |
1325 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l no-status -d "hide status prefix" | |
1326 complete -c hg -n "__fish_hg_using_command $cmd" -s C -l copies -d "show source of copied files" | |
1327 complete -c hg -n "__fish_hg_using_command $cmd" -s 0 -l print0 -d "end filenames with NUL, for use with xargs" | |
1328 complete -c hg -n "__fish_hg_using_command $cmd" -l rev -x -a "(__fish_hg_labels)" -d "show difference from revision" | |
1329 complete -c hg -n "__fish_hg_using_command $cmd" -l change -x -a "(__fish_hg_labels)" -d "list the changed files of a revision" | |
1330 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" | |
1331 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" | |
1332 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" | |
1333 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1334 end | |
1335 | |
1336 # hg strip | |
1337 for cmd in str stri strip | |
1338 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" | |
1339 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "strip specified revision" | |
1340 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "force removal of changesets, discard uncommitted changes (no backup)" | |
1341 complete -c hg -n "__fish_hg_using_command $cmd" -l no-backup -d "do not save backup bundle" | |
1342 complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "do not modify working directory during strip" | |
1343 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmark -x -a "(__fish_hg_bookmarks)" -d "remove revs only reachable from given bookmark" | |
1344 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1345 end | |
1346 | |
1347 # hg summary | |
1348 for cmd in su sum summ summa summar summary | |
1349 complete -c hg -n "__fish_hg_using_command $cmd" -l remote -d "check for push and pull" | |
1350 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1351 end | |
1352 | |
1353 # hg tag | |
1354 complete -c hg -n "__fish_hg_using_command tag" -s f -l force -d "force tag" | |
1355 complete -c hg -n "__fish_hg_using_command tag" -s l -l local -d "make the tag local" | |
1356 complete -c hg -n "__fish_hg_using_command tag" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to tag" | |
1357 complete -c hg -n "__fish_hg_using_command tag" -l remove -d "remove a tag" | |
1358 complete -c hg -n "__fish_hg_using_command tag" -s e -l edit -d "invoke editor on commit messages" | |
1359 complete -c hg -n "__fish_hg_using_command tag" -s m -l message -x -d "use <text> as commit message" | |
1360 complete -c hg -n "__fish_hg_using_command tag" -s d -l date -x -d "record the specified date as commit date" | |
1361 complete -c hg -n "__fish_hg_using_command tag" -s u -l user -x -d "record the specified user as committer" | |
1362 complete -c hg -n "__fish_hg_using_command tag; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1363 | |
1364 # hg tags | |
1365 complete -c hg -n "__fish_hg_using_command tags; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1366 | |
1367 # hg unbundle | |
1368 for cmd in un unb unbu unbun unbund unbundl unbundle | |
1369 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l update -d "update to new branch head if changesets were unbundled" | |
1370 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1371 end | |
1372 | |
1373 # hg unshelve | |
1374 for cmd in uns unsh unshe unshel unshelv unshelve | |
1375 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_shelves)" | |
1376 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l abort -d "abort an incomplete unshelve operation" | |
1377 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l continue -d "continue an incomplete unshelve operation" | |
1378 complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "keep shelve after unshelving" | |
1379 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l name -x -a "(__fish_hg_shelves)" -d "restore shelved change with given name" | |
1380 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" | |
1381 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1382 end | |
1383 | |
1384 # hg update | |
1385 for cmd in up upd upda updat update che chec check checko checkou checkout co | |
1386 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" | |
1387 complete -c hg -n "__fish_hg_using_command $cmd" -s C -l clean -d "discard uncommitted changes (no backup)" | |
1388 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l check -d "require clean working directory" | |
1389 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l merge -d "merge uncommitted changes" | |
1390 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "tipmost revision matching date" | |
1391 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d revision | |
1392 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" | |
1393 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1394 end | |
1395 | |
1396 # hg verify | |
1397 for cmd in veri verif verify | |
1398 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" | |
1399 end |