Mercurial > hg > mercurial-crew-with-dirclash
comparison contrib/zsh_completion @ 3489:0e80552e1275
zsh: add --style and --template opts
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 24 Oct 2006 11:10:04 -0700 |
parents | 40fabb2a64b8 |
children | 72b9a3b8bb1d |
comparison
equal
deleted
inserted
replaced
3488:40fabb2a64b8 | 3489:0e80552e1275 |
---|---|
39 includeExclude=( | 39 includeExclude=( |
40 '*-I-[include names matching the given patterns]:dir:_files -W $(hg root) -/' | 40 '*-I-[include names matching the given patterns]:dir:_files -W $(hg root) -/' |
41 '*--include-[include names matching the given patterns]:dir:_files -W $(hg root) -/' | 41 '*--include-[include names matching the given patterns]:dir:_files -W $(hg root) -/' |
42 '*-X-[exclude names matching the given patterns]:dir:_files -W $(hg root) -/' | 42 '*-X-[exclude names matching the given patterns]:dir:_files -W $(hg root) -/' |
43 '*--exclude-[exclude names matching the given patterns]:dir:_files -W $(hg root) -/') | 43 '*--exclude-[exclude names matching the given patterns]:dir:_files -W $(hg root) -/') |
44 | |
45 styleOpts=( | |
46 '--style[display using template map file]:' | |
47 '--template[display with template]:') | |
44 | 48 |
45 commitMessage=( | 49 commitMessage=( |
46 '(-m --message -l --logfile --edit)-e[edit commit message]' | 50 '(-m --message -l --logfile --edit)-e[edit commit message]' |
47 '(-m --message -l --logfile -e)--edit[edit commit message]' | 51 '(-m --message -l --logfile -e)--edit[edit commit message]' |
48 '(-e --edit -l --logfile --message)-m[use <text> as commit message]:message:' | 52 '(-e --edit -l --logfile --message)-m[use <text> as commit message]:message:' |
236 '(-f)--fullpath[print complete paths]' \ | 240 '(-f)--fullpath[print complete paths]' \ |
237 '*:search pattern:' | 241 '*:search pattern:' |
238 ;; | 242 ;; |
239 | 243 |
240 (log|history) | 244 (log|history) |
241 _arguments $includeExclude \ | 245 _arguments $includeExclude $styleOpts \ |
242 '*-r[show the specified revision or range]:revision:->tags' \ | 246 '*-r[show the specified revision or range]:revision:->tags' \ |
243 '*--rev[show the specified revision or range]:revision:->tags' \ | 247 '*--rev[show the specified revision or range]:revision:->tags' \ |
244 '(--no-merges -M --only-merges)-m[show only merge revisions]' \ | 248 '(--no-merges -M --only-merges)-m[show only merge revisions]' \ |
245 '(--no-merges -M -m)--only-merges[show only merge revisions]' \ | 249 '(--no-merges -M -m)--only-merges[show only merge revisions]' \ |
246 '(--only-merges -m --no-merges)-M[do not show merge revisions]' \ | 250 '(--only-merges -m --no-merges)-M[do not show merge revisions]' \ |
323 (unbundle) | 327 (unbundle) |
324 _arguments '*:changegroup .hg file:_files -g \*.hg' | 328 _arguments '*:changegroup .hg file:_files -g \*.hg' |
325 ;; | 329 ;; |
326 | 330 |
327 (incoming) | 331 (incoming) |
328 _arguments \ | 332 _arguments $styleOpts \ |
329 '(--patch)-p[show patch]' \ | 333 '(--patch)-p[show patch]' \ |
330 '(-p)--patch[show patch]' \ | 334 '(-p)--patch[show patch]' \ |
331 '(--no-merges)-M[do not show merge revisions]' \ | 335 '(--no-merges)-M[do not show merge revisions]' \ |
332 '(-M)--no-merges[do not show merge revisions]' \ | 336 '(-M)--no-merges[do not show merge revisions]' \ |
333 '(--newest-first)-n[show newest record first]' \ | 337 '(--newest-first)-n[show newest record first]' \ |
357 '*:local repo:_files -/' | 361 '*:local repo:_files -/' |
358 _wanted source expl 'source repository' compadd -a repos | 362 _wanted source expl 'source repository' compadd -a repos |
359 ;; | 363 ;; |
360 | 364 |
361 (outgoing) | 365 (outgoing) |
362 _arguments \ | 366 _arguments $styleOpts \ |
363 '(--patch)-p[show patch]' \ | 367 '(--patch)-p[show patch]' \ |
364 '(-p)--patch[show patch]' \ | 368 '(-p)--patch[show patch]' \ |
365 '(--no-merges)-M[do not show merge revisions]' \ | 369 '(--no-merges)-M[do not show merge revisions]' \ |
366 '(-M)--no-merges[do not show merge revisions]' \ | 370 '(-M)--no-merges[do not show merge revisions]' \ |
367 '(--newest-first)-n[show newest record first]' \ | 371 '(--newest-first)-n[show newest record first]' \ |
415 (help) | 419 (help) |
416 _wanted commands expl 'hg command' compadd -a subcmds | 420 _wanted commands expl 'hg command' compadd -a subcmds |
417 ;; | 421 ;; |
418 | 422 |
419 (heads) | 423 (heads) |
420 _arguments \ | 424 _arguments $styleOpts \ |
421 '(--branches)-b[find branch info]' \ | 425 '(--branches)-b[find branch info]' \ |
422 '(-b)--branches[find branch info]' | 426 '(-b)--branches[find branch info]' |
423 ;; | 427 ;; |
424 | 428 |
425 (paths) | 429 (paths) |
433 (manifest) | 437 (manifest) |
434 _arguments '*:revision:->tags' | 438 _arguments '*:revision:->tags' |
435 ;; | 439 ;; |
436 | 440 |
437 (par*) | 441 (par*) |
438 _arguments \ | 442 _arguments $styleOpts \ |
439 '(--rev 1)-r[show parents of the specified rev]:revision:->tags' \ | 443 '(--rev 1)-r[show parents of the specified rev]:revision:->tags' \ |
440 '(-r 1)--rev[show parents of the specified rev]:revision:->tags' \ | 444 '(-r 1)--rev[show parents of the specified rev]:revision:->tags' \ |
441 '::revision:->tags' | 445 '::revision:->tags' |
442 ;; | 446 ;; |
443 | 447 |