##// END OF EJS Templates
zsh_completion: update some option usage flags ('+', '=' and ':')...
av6 -
r30080:33e8a5a0 default
parent child Browse files
Show More
@@ -371,7 +371,7 b' typeset -A _hg_cmd_globals'
371 371
372 372 # Common options
373 373 _hg_global_opts=(
374 '(--repository -R)'{-R+,--repository}'[repository root directory]:repository:_files -/'
374 '(--repository -R)'{-R+,--repository=}'[repository root directory]:repository:_files -/'
375 375 '--cwd[change working directory]:new working directory:_files -/'
376 376 '(--noninteractive -y)'{-y,--noninteractive}'[do not prompt, assume yes for any required answers]'
377 377 '(--verbose -v)'{-v,--verbose}'[enable additional output]'
@@ -390,8 +390,8 b' typeset -A _hg_cmd_globals'
390 390 )
391 391
392 392 _hg_pat_opts=(
393 '*'{-I+,--include}'[include names matching the given patterns]:dir:_files -W $(_hg_cmd root) -/'
394 '*'{-X+,--exclude}'[exclude names matching the given patterns]:dir:_files -W $(_hg_cmd root) -/')
393 '*'{-I+,--include=}'[include names matching the given patterns]:dir:_files -W $(_hg_cmd root) -/'
394 '*'{-X+,--exclude=}'[exclude names matching the given patterns]:dir:_files -W $(_hg_cmd root) -/')
395 395
396 396 _hg_clone_opts=(
397 397 $_hg_remote_opts
@@ -402,8 +402,8 b' typeset -A _hg_cmd_globals'
402 402 _hg_date_user_opts=(
403 403 '(--currentdate -D)'{-D,--currentdate}'[record the current date as commit date]'
404 404 '(--currentuser -U)'{-U,--currentuser}'[record the current user as committer]'
405 '(--date -d)'{-d+,--date}'[record the specified date as commit date]:date:'
406 '(--user -u)'{-u+,--user}'[record the specified user as committer]:user:')
405 '(--date -d)'{-d+,--date=}'[record the specified date as commit date]:date:'
406 '(--user -u)'{-u+,--user=}'[record the specified user as committer]:user:')
407 407
408 408 _hg_gitlike_opts=(
409 409 '(--git -g)'{-g,--git}'[use git extended diff format]')
@@ -414,7 +414,7 b' typeset -A _hg_cmd_globals'
414 414 '--nodates[omit dates from diff headers]')
415 415
416 416 _hg_mergetool_opts=(
417 '(--tool -t)'{-t+,--tool}'[specify merge tool]:tool:')
417 '(--tool -t)'{-t+,--tool=}'[specify merge tool]:tool:')
418 418
419 419 _hg_dryrun_opts=(
420 420 '(--dry-run -n)'{-n,--dry-run}'[do not perform actions, just print output]')
@@ -430,7 +430,7 b' typeset -A _hg_cmd_globals'
430 430
431 431 _hg_log_opts=(
432 432 $_hg_global_opts $_hg_style_opts $_hg_gitlike_opts
433 '(--limit -l)'{-l+,--limit}'[limit number of changes displayed]:'
433 '(--limit -l)'{-l+,--limit=}'[limit number of changes displayed]:'
434 434 '(--no-merges -M)'{-M,--no-merges}'[do not show merges]'
435 435 '(--patch -p)'{-p,--patch}'[show patch]'
436 436 '--stat[output diffstat-style summary of changes]'
@@ -438,16 +438,16 b' typeset -A _hg_cmd_globals'
438 438
439 439 _hg_commit_opts=(
440 440 '(-m --message -l --logfile --edit -e)'{-e,--edit}'[edit commit message]'
441 '(-e --edit -l --logfile --message -m)'{-m+,--message}'[use <text> as commit message]:message:'
442 '(-e --edit -m --message --logfile -l)'{-l+,--logfile}'[read the commit message from <file>]:log file:_files')
441 '(-e --edit -l --logfile --message -m)'{-m+,--message=}'[use <text> as commit message]:message:'
442 '(-e --edit -m --message --logfile -l)'{-l+,--logfile=}'[read the commit message from <file>]:log file:_files')
443 443
444 444 _hg_remote_opts=(
445 '(--ssh -e)'{-e+,--ssh}'[specify ssh command to use]:'
445 '(--ssh -e)'{-e+,--ssh=}'[specify ssh command to use]:'
446 446 '--remotecmd[specify hg command to run on the remote side]:')
447 447
448 448 _hg_branch_bmark_opts=(
449 '(--bookmark -B)'{-B+,--bookmark}'[specify bookmark(s)]:bookmark:_hg_bookmarks'
450 '(--branch -b)'{-b+,--branch}'[specify branch(es)]:branch:_hg_branches'
449 '(--bookmark -B)'{-B+,--bookmark=}'[specify bookmark(s)]:bookmark:_hg_bookmarks'
450 '(--branch -b)'{-b+,--branch=}'[specify branch(es)]:branch:_hg_branches'
451 451 )
452 452
453 453 _hg_subrepos_opts=(
@@ -464,13 +464,13 b' typeset -A _hg_cmd_globals'
464 464
465 465 _hg_cmd_addremove() {
466 466 _arguments -s -w : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \
467 '(--similarity -s)'{-s+,--similarity}'[guess renamed files by similarity (0<=s<=100)]:' \
467 '(--similarity -s)'{-s+,--similarity=}'[guess renamed files by similarity (0<=s<=100)]:' \
468 468 '*:unknown or missing files:_hg_addremove'
469 469 }
470 470
471 471 _hg_cmd_annotate() {
472 472 _arguments -s -w : $_hg_global_opts $_hg_pat_opts \
473 '(--rev -r)'{-r+,--rev}'[annotate the specified revision]:revision:_hg_labels' \
473 '(--rev -r)'{-r+,--rev=}'[annotate the specified revision]:revision:_hg_labels' \
474 474 '(--follow -f)'{-f,--follow}'[follow file copies and renames]' \
475 475 '(--text -a)'{-a,--text}'[treat all files as text]' \
476 476 '(--user -u)'{-u,--user}'[list the author]' \
@@ -483,21 +483,21 b' typeset -A _hg_cmd_globals'
483 483 _hg_cmd_archive() {
484 484 _arguments -s -w : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \
485 485 '--no-decode[do not pass files through decoders]' \
486 '(--prefix -p)'{-p+,--prefix}'[directory prefix for files in archive]:' \
487 '(--rev -r)'{-r+,--rev}'[revision to distribute]:revision:_hg_labels' \
488 '(--type -t)'{-t+,--type}'[type of distribution to create]:archive type:(files tar tbz2 tgz uzip zip)' \
486 '(--prefix -p)'{-p+,--prefix=}'[directory prefix for files in archive]:' \
487 '(--rev -r)'{-r+,--rev=}'[revision to distribute]:revision:_hg_labels' \
488 '(--type -t)'{-t+,--type=}'[type of distribution to create]:archive type:(files tar tbz2 tgz uzip zip)' \
489 489 '*:destination:_files'
490 490 }
491 491
492 492 _hg_cmd_backout() {
493 493 _arguments -s -w : $_hg_global_opts $_hg_mergetool_opts $_hg_pat_opts \
494 494 '--merge[merge with old dirstate parent after backout]' \
495 '(--date -d)'{-d+,--date}'[record datecode as commit date]:date code:' \
495 '(--date -d)'{-d+,--date=}'[record datecode as commit date]:date code:' \
496 496 '--parent[parent to choose when backing out merge]' \
497 '(--user -u)'{-u+,--user}'[record user as commiter]:user:' \
498 '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_labels' \
499 '(--message -m)'{-m+,--message}'[use <text> as commit message]:text:' \
500 '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files'
497 '(--user -u)'{-u+,--user=}'[record user as commiter]:user:' \
498 '(--rev -r)'{-r+,--rev=}'[revision]:revision:_hg_labels' \
499 '(--message -m)'{-m+,--message=}'[use <text> as commit message]:text:' \
500 '(--logfile -l)'{-l+,--logfile=}'[read commit message from <file>]:log file:_files'
501 501 }
502 502
503 503 _hg_cmd_bisect() {
@@ -507,7 +507,7 b' typeset -A _hg_cmd_globals'
507 507 '(--good -g --bad -b --skip -s --reset -r)'{-g,--good}'[mark changeset good]'::revision:_hg_labels \
508 508 '(--good -g --bad -b --skip -s --reset -r)'{-b,--bad}'[mark changeset bad]'::revision:_hg_labels \
509 509 '(--good -g --bad -b --skip -s --reset -r)'{-s,--skip}'[skip testing changeset]' \
510 '(--command -c --noupdate -U)'{-c+,--command}'[use command to check changeset state]':commands:_command_names \
510 '(--command -c --noupdate -U)'{-c+,--command=}'[use command to check changeset state]':commands:_command_names \
511 511 '(--command -c --noupdate -U)'{-U,--noupdate}'[do not update to target]'
512 512 }
513 513
@@ -515,9 +515,9 b' typeset -A _hg_cmd_globals'
515 515 _arguments -s -w : $_hg_global_opts \
516 516 '(--force -f)'{-f,--force}'[force]' \
517 517 '(--inactive -i)'{-i,--inactive}'[mark a bookmark inactive]' \
518 '(--rev -r --delete -d --rename -m)'{-r+,--rev}'[revision]:revision:_hg_labels' \
518 '(--rev -r --delete -d --rename -m)'{-r+,--rev=}'[revision]:revision:_hg_labels' \
519 519 '(--rev -r --delete -d --rename -m)'{-d,--delete}'[delete a given bookmark]' \
520 '(--rev -r --delete -d --rename -m)'{-m+,--rename}'[rename a given bookmark]:bookmark:_hg_bookmarks' \
520 '(--rev -r --delete -d --rename -m)'{-m+,--rename=}'[rename a given bookmark]:bookmark:_hg_bookmarks' \
521 521 ':bookmark:_hg_bookmarks'
522 522 }
523 523
@@ -537,8 +537,8 b' typeset -A _hg_cmd_globals'
537 537 _arguments -s -w : $_hg_global_opts $_hg_remote_opts \
538 538 '(--force -f)'{-f,--force}'[run even when remote repository is unrelated]' \
539 539 '(2)*--base[a base changeset to specify instead of a destination]:revision:_hg_labels' \
540 '(--branch -b)'{-b+,--branch}'[a specific branch to bundle]' \
541 '(--rev -r)'{-r+,--rev}'[changeset(s) to bundle]:' \
540 '(--branch -b)'{-b+,--branch=}'[a specific branch to bundle]:' \
541 '(--rev -r)'{-r+,--rev=}'[changeset(s) to bundle]:' \
542 542 '--all[bundle all changesets in the repository]' \
543 543 ':output file:_files' \
544 544 ':destination repository:_files -/'
@@ -546,17 +546,17 b' typeset -A _hg_cmd_globals'
546 546
547 547 _hg_cmd_cat() {
548 548 _arguments -s -w : $_hg_global_opts $_hg_pat_opts \
549 '(--output -o)'{-o+,--output}'[print output to file with formatted name]:filespec:' \
550 '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_labels' \
549 '(--output -o)'{-o+,--output=}'[print output to file with formatted name]:filespec:' \
550 '(--rev -r)'{-r+,--rev=}'[revision]:revision:_hg_labels' \
551 551 '--decode[apply any matching decode filter]' \
552 552 '*:file:_hg_files'
553 553 }
554 554
555 555 _hg_cmd_clone() {
556 556 _arguments -s -w : $_hg_global_opts $_hg_clone_opts \
557 '(--rev -r)'{-r+,--rev}'[a changeset you would like to have after cloning]:' \
558 '(--updaterev -u)'{-u+,--updaterev}'[revision, tag or branch to check out]' \
559 '(--branch -b)'{-b+,--branch}'[clone only the specified branch]' \
557 '(--rev -r)'{-r+,--rev=}'[a changeset you would like to have after cloning]:' \
558 '(--updaterev -u)'{-u+,--updaterev=}'[revision, tag or branch to check out]:' \
559 '(--branch -b)'{-b+,--branch=}'[clone only the specified branch]:' \
560 560 ':source repository:_hg_remote' \
561 561 ':destination:_hg_clone_dest'
562 562 }
@@ -564,10 +564,10 b' typeset -A _hg_cmd_globals'
564 564 _hg_cmd_commit() {
565 565 _arguments -s -w : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \
566 566 '(--addremove -A)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' \
567 '(--message -m)'{-m+,--message}'[use <text> as commit message]:text:' \
568 '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files' \
569 '(--date -d)'{-d+,--date}'[record datecode as commit date]:date code:' \
570 '(--user -u)'{-u+,--user}'[record user as commiter]:user:' \
567 '(--message -m)'{-m+,--message=}'[use <text> as commit message]:text:' \
568 '(--logfile -l)'{-l+,--logfile=}'[read commit message from <file>]:log file:_files' \
569 '(--date -d)'{-d+,--date=}'[record datecode as commit date]:date code:' \
570 '(--user -u)'{-u+,--user=}'[record user as commiter]:user:' \
571 571 '--amend[amend the parent of the working dir]' \
572 572 '--close-branch[mark a branch as closed]' \
573 573 '*:file:_hg_files'
@@ -584,12 +584,12 b' typeset -A _hg_cmd_globals'
584 584 typeset -A opt_args
585 585 _arguments -s -w : $_hg_global_opts $_hg_diff_opts $_hg_ignore_space_opts \
586 586 $_hg_pat_opts $_hg_subrepos_opts \
587 '*'{-r,--rev}'+[revision]:revision:_hg_revrange' \
587 '*'{-r+,--rev=}'[revision]:revision:_hg_revrange' \
588 588 '(--show-function -p)'{-p,--show-function}'[show which function each change is in]' \
589 '(--change -c)'{-c,--change}'[change made by revision]' \
589 '(--change -c)'{-c+,--change=}'[change made by revision]:' \
590 590 '(--text -a)'{-a,--text}'[treat all files as text]' \
591 591 '--reverse[produce a diff that undoes the changes]' \
592 '(--unified -U)'{-U,--unified}'[number of lines of context to show]' \
592 '(--unified -U)'{-U+,--unified=}'[number of lines of context to show]:' \
593 593 '--stat[output diffstat-style summary of changes]' \
594 594 '*:file:->diff_files'
595 595
@@ -606,9 +606,9 b' typeset -A _hg_cmd_globals'
606 606
607 607 _hg_cmd_export() {
608 608 _arguments -s -w : $_hg_global_opts $_hg_diff_opts \
609 '(--outout -o)'{-o+,--output}'[print output to file with formatted name]:filespec:' \
609 '(--outout -o)'{-o+,--output=}'[print output to file with formatted name]:filespec:' \
610 610 '--switch-parent[diff against the second parent]' \
611 '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_labels' \
611 '(--rev -r)'{-r+,--rev=}'[revision]:revision:_hg_labels' \
612 612 '*:revision:_hg_labels'
613 613 }
614 614
@@ -634,7 +634,7 b' typeset -A _hg_cmd_globals'
634 634 '(--ignore-case -i)'{-i,--ignore-case}'[ignore case when matching]' \
635 635 '(--files-with-matches -l)'{-l,--files-with-matches}'[print only filenames and revs that match]' \
636 636 '(--line-number -n)'{-n,--line-number}'[print matching line numbers]' \
637 '*'{-r+,--rev}'[search in given revision range]:revision:_hg_revrange' \
637 '*'{-r+,--rev=}'[search in given revision range]:revision:_hg_revrange' \
638 638 '(--user -u)'{-u,--user}'[print user who committed change]' \
639 639 '(--date -d)'{-d,--date}'[print date of a changeset]' \
640 640 '1:search pattern:' \
@@ -645,7 +645,7 b' typeset -A _hg_cmd_globals'
645 645 _arguments -s -w : $_hg_global_opts $_hg_style_opts \
646 646 '(--topo -t)'{-t,--topo}'[show topological heads only]' \
647 647 '(--closed -c)'{-c,--closed}'[show normal and closed branch heads]' \
648 '(--rev -r)'{-r+,--rev}'[show only heads which are descendants of rev]:revision:_hg_labels'
648 '(--rev -r)'{-r+,--rev=}'[show only heads which are descendants of rev]:revision:_hg_labels'
649 649 }
650 650
651 651 _hg_cmd_help() {
@@ -658,25 +658,25 b' typeset -A _hg_cmd_globals'
658 658
659 659 _hg_cmd_identify() {
660 660 _arguments -s -w : $_hg_global_opts $_hg_remote_opts \
661 '(--rev -r)'{-r+,--rev}'[identify the specified rev]:revision:_hg_labels' \
662 '(--num -n)'{-n+,--num}'[show local revision number]' \
663 '(--id -i)'{-i+,--id}'[show global revision id]' \
664 '(--branch -b)'{-b+,--branch}'[show branch]' \
665 '(--bookmark -B)'{-B+,--bookmark}'[show bookmarks]' \
666 '(--tags -t)'{-t+,--tags}'[show tags]'
661 '(--rev -r)'{-r+,--rev=}'[identify the specified rev]:revision:_hg_labels' \
662 '(--num -n)'{-n,--num}'[show local revision number]' \
663 '(--id -i)'{-i,--id}'[show global revision id]' \
664 '(--branch -b)'{-b,--branch}'[show branch]' \
665 '(--bookmark -B)'{-B,--bookmark}'[show bookmarks]' \
666 '(--tags -t)'{-t,--tags}'[show tags]'
667 667 }
668 668
669 669 _hg_cmd_import() {
670 670 _arguments -s -w : $_hg_global_opts $_hg_commit_opts \
671 '(--strip -p)'{-p+,--strip}'[directory strip option for patch (default: 1)]:count:' \
671 '(--strip -p)'{-p+,--strip=}'[directory strip option for patch (default: 1)]:count:' \
672 672 '(--force -f)'{-f,--force}'[skip check for outstanding uncommitted changes]' \
673 673 '--bypass[apply patch without touching the working directory]' \
674 674 '--no-commit[do not commit, just update the working directory]' \
675 675 '--exact[apply patch to the nodes from which it was generated]' \
676 676 '--import-branch[use any branch information in patch (implied by --exact)]' \
677 '(--date -d)'{-d+,--date}'[record datecode as commit date]:date code:' \
678 '(--user -u)'{-u+,--user}'[record user as commiter]:user:' \
679 '(--similarity -s)'{-s+,--similarity}'[guess renamed files by similarity (0<=s<=100)]:' \
677 '(--date -d)'{-d+,--date=}'[record datecode as commit date]:date code:' \
678 '(--user -u)'{-u+,--user=}'[record user as commiter]:user:' \
679 '(--similarity -s)'{-s+,--similarity=}'[guess renamed files by similarity (0<=s<=100)]:' \
680 680 '*:patch:_files'
681 681 }
682 682
@@ -684,7 +684,7 b' typeset -A _hg_cmd_globals'
684 684 _arguments -s -w : $_hg_log_opts $_hg_branch_bmark_opts $_hg_remote_opts \
685 685 $_hg_subrepos_opts \
686 686 '(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \
687 '(--rev -r)'{-r+,--rev}'[a specific revision up to which you would like to pull]:revision:_hg_labels' \
687 '(--rev -r)'{-r+,--rev=}'[a specific revision up to which you would like to pull]:revision:_hg_labels' \
688 688 '(--newest-first -n)'{-n,--newest-first}'[show newest record first]' \
689 689 '--bundle[file to store the bundles into]:bundle file:_files' \
690 690 ':source:_hg_remote'
@@ -697,7 +697,7 b' typeset -A _hg_cmd_globals'
697 697
698 698 _hg_cmd_locate() {
699 699 _arguments -s -w : $_hg_global_opts $_hg_pat_opts \
700 '(--rev -r)'{-r+,--rev}'[search repository as it stood at revision]:revision:_hg_labels' \
700 '(--rev -r)'{-r+,--rev=}'[search repository as it stood at revision]:revision:_hg_labels' \
701 701 '(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs]' \
702 702 '(--fullpath -f)'{-f,--fullpath}'[print complete paths]' \
703 703 '*:search pattern:_hg_files'
@@ -709,27 +709,27 b' typeset -A _hg_cmd_globals'
709 709 '(-f --follow)--follow-first[only follow the first parent of merge changesets]' \
710 710 '(--copies -C)'{-C,--copies}'[show copied files]' \
711 711 '(--keyword -k)'{-k+,--keyword}'[search for a keyword]:' \
712 '*'{-r,--rev}'[show the specified revision or revset]:revision:_hg_revrange' \
712 '*'{-r+,--rev=}'[show the specified revision or revset]:revision:_hg_revrange' \
713 713 '(--only-merges -m)'{-m,--only-merges}'[show only merges]' \
714 '(--prune -P)'{-P+,--prune}'[do not display revision or any of its ancestors]:revision:_hg_labels' \
715 '(--graph -G)'{-G+,--graph}'[show the revision DAG]' \
716 '(--branch -b)'{-b+,--branch}'[show changesets within the given named branch]:branch:_hg_branches' \
717 '(--user -u)'{-u+,--user}'[revisions committed by user]:user:' \
718 '(--date -d)'{-d+,--date}'[show revisions matching date spec]:date:' \
714 '(--prune -P)'{-P+,--prune=}'[do not display revision or any of its ancestors]:revision:_hg_labels' \
715 '(--graph -G)'{-G,--graph}'[show the revision DAG]' \
716 '(--branch -b)'{-b+,--branch=}'[show changesets within the given named branch]:branch:_hg_branches' \
717 '(--user -u)'{-u+,--user=}'[revisions committed by user]:user:' \
718 '(--date -d)'{-d+,--date=}'[show revisions matching date spec]:date:' \
719 719 '*:files:_hg_files'
720 720 }
721 721
722 722 _hg_cmd_manifest() {
723 723 _arguments -s -w : $_hg_global_opts \
724 724 '--all[list files from all revisions]' \
725 '(--rev -r)'{-r+,--rev}'[revision to display]:revision:_hg_labels' \
725 '(--rev -r)'{-r+,--rev=}'[revision to display]:revision:_hg_labels' \
726 726 ':revision:_hg_labels'
727 727 }
728 728
729 729 _hg_cmd_merge() {
730 730 _arguments -s -w : $_hg_global_opts $_hg_mergetool_opts \
731 731 '(--force -f)'{-f,--force}'[force a merge with outstanding changes]' \
732 '(--rev -r 1)'{-r,--rev}'[revision to merge]:revision:_hg_mergerevs' \
732 '(--rev -r 1)'{-r+,--rev=}'[revision to merge]:revision:_hg_mergerevs' \
733 733 '(--preview -P)'{-P,--preview}'[review revisions to merge (no merge is performed)]' \
734 734 ':revision:_hg_mergerevs'
735 735 }
@@ -738,14 +738,14 b' typeset -A _hg_cmd_globals'
738 738 _arguments -s -w : $_hg_log_opts $_hg_branch_bmark_opts $_hg_remote_opts \
739 739 $_hg_subrepos_opts \
740 740 '(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \
741 '*'{-r,--rev}'[a specific revision you would like to push]:revision:_hg_revrange' \
741 '*'{-r+,--rev=}'[a specific revision you would like to push]:revision:_hg_revrange' \
742 742 '(--newest-first -n)'{-n,--newest-first}'[show newest record first]' \
743 743 ':destination:_hg_remote'
744 744 }
745 745
746 746 _hg_cmd_parents() {
747 747 _arguments -s -w : $_hg_global_opts $_hg_style_opts \
748 '(--rev -r)'{-r+,--rev}'[show parents of the specified rev]:revision:_hg_labels' \
748 '(--rev -r)'{-r+,--rev=}'[show parents of the specified rev]:revision:_hg_labels' \
749 749 ':last modified file:_hg_files'
750 750 }
751 751
@@ -760,7 +760,7 b' typeset -A _hg_cmd_globals'
760 760 '(--draft -d)'{-d,--draft}'[set changeset phase to draft]' \
761 761 '(--secret -s)'{-s,--secret}'[set changeset phase to secret]' \
762 762 '(--force -f)'{-f,--force}'[allow to move boundary backward]' \
763 '(--rev -r)'{-r+,--rev}'[target revision]:revision:_hg_labels' \
763 '(--rev -r)'{-r+,--rev=}'[target revision]:revision:_hg_labels' \
764 764 ':revision:_hg_labels'
765 765 }
766 766
@@ -775,7 +775,7 b' typeset -A _hg_cmd_globals'
775 775 _hg_cmd_push() {
776 776 _arguments -s -w : $_hg_global_opts $_hg_branch_bmark_opts $_hg_remote_opts \
777 777 '(--force -f)'{-f,--force}'[force push]' \
778 '(--rev -r)'{-r+,--rev}'[a specific revision you would like to push]:revision:_hg_labels' \
778 '(--rev -r)'{-r+,--rev=}'[a specific revision you would like to push]:revision:_hg_labels' \
779 779 '--new-branch[allow pushing a new branch]' \
780 780 ':destination:_hg_remote'
781 781 }
@@ -819,9 +819,9 b' typeset -A _hg_cmd_globals'
819 819
820 820 _arguments -s -w : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \
821 821 '(--all -a :)'{-a,--all}'[revert all changes when no arguments given]' \
822 '(--rev -r)'{-r+,--rev}'[revision to revert to]:revision:_hg_labels' \
822 '(--rev -r)'{-r+,--rev=}'[revision to revert to]:revision:_hg_labels' \
823 823 '(--no-backup -C)'{-C,--no-backup}'[do not save backup copies of files]' \
824 '(--date -d)'{-d+,--date}'[tipmost revision matching date]:date code:' \
824 '(--date -d)'{-d+,--date=}'[tipmost revision matching date]:date code:' \
825 825 '*:file:->diff_files'
826 826
827 827 if [[ $state == 'diff_files' ]]
@@ -844,13 +844,13 b' typeset -A _hg_cmd_globals'
844 844
845 845 _hg_cmd_serve() {
846 846 _arguments -s -w : $_hg_global_opts \
847 '(--accesslog -A)'{-A+,--accesslog}'[name of access log file]:log file:_files' \
848 '(--errorlog -E)'{-E+,--errorlog}'[name of error log file]:log file:_files' \
847 '(--accesslog -A)'{-A+,--accesslog=}'[name of access log file]:log file:_files' \
848 '(--errorlog -E)'{-E+,--errorlog=}'[name of error log file]:log file:_files' \
849 849 '(--daemon -d)'{-d,--daemon}'[run server in background]' \
850 '(--port -p)'{-p+,--port}'[listen port]:listen port:' \
851 '(--address -a)'{-a+,--address}'[interface address]:interface address:' \
850 '(--port -p)'{-p+,--port=}'[listen port]:listen port:' \
851 '(--address -a)'{-a+,--address=}'[interface address]:interface address:' \
852 852 '--prefix[prefix path to serve from]:directory:_files' \
853 '(--name -n)'{-n+,--name}'[name to show in web pages]:repository name:' \
853 '(--name -n)'{-n+,--name=}'[name to show in web pages]:repository name:' \
854 854 '--web-conf[name of the hgweb config file]:webconf_file:_files' \
855 855 '--pid-file[name of file to write process ID to]:pid_file:_files' \
856 856 '--cmdserver[cmdserver mode]:mode:' \
@@ -863,7 +863,7 b' typeset -A _hg_cmd_globals'
863 863
864 864 _hg_cmd_showconfig() {
865 865 _arguments -s -w : $_hg_global_opts \
866 '(--untrusted -u)'{-u+,--untrusted}'[show untrusted configuration options]' \
866 '(--untrusted -u)'{-u,--untrusted}'[show untrusted configuration options]' \
867 867 ':config item:_hg_config'
868 868 }
869 869
@@ -893,10 +893,10 b' typeset -A _hg_cmd_globals'
893 893 _hg_cmd_tag() {
894 894 _arguments -s -w : $_hg_global_opts \
895 895 '(--local -l)'{-l,--local}'[make the tag local]' \
896 '(--message -m)'{-m+,--message}'[message for tag commit log entry]:message:' \
897 '(--date -d)'{-d+,--date}'[record datecode as commit date]:date code:' \
898 '(--user -u)'{-u+,--user}'[record user as commiter]:user:' \
899 '(--rev -r)'{-r+,--rev}'[revision to tag]:revision:_hg_labels' \
896 '(--message -m)'{-m+,--message=}'[message for tag commit log entry]:message:' \
897 '(--date -d)'{-d+,--date=}'[record datecode as commit date]:date code:' \
898 '(--user -u)'{-u+,--user=}'[record user as commiter]:user:' \
899 '(--rev -r)'{-r+,--rev=}'[revision to tag]:revision:_hg_labels' \
900 900 '(--force -f)'{-f,--force}'[force tag]' \
901 901 '--remove[remove a tag]' \
902 902 '(--edit -e)'{-e,--edit}'[edit commit message]' \
@@ -917,9 +917,9 b' typeset -A _hg_cmd_globals'
917 917 _hg_cmd_update() {
918 918 _arguments -s -w : $_hg_global_opts \
919 919 '(--clean -C)'{-C,--clean}'[overwrite locally modified files]' \
920 '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_labels' \
920 '(--rev -r)'{-r+,--rev=}'[revision]:revision:_hg_labels' \
921 921 '(--check -c)'{-c,--check}'[update across branches if no uncommitted changes]' \
922 '(--date -d)'{-d+,--date}'[tipmost revision matching date]' \
922 '(--date -d)'{-d+,--date=}'[tipmost revision matching date]:' \
923 923 ':revision:_hg_labels'
924 924 }
925 925
@@ -928,7 +928,7 b' typeset -A _hg_cmd_globals'
928 928 # HGK
929 929 _hg_cmd_view() {
930 930 _arguments -s -w : $_hg_global_opts \
931 '(--limit -l)'{-l+,--limit}'[limit number of changes displayed]:' \
931 '(--limit -l)'{-l+,--limit=}'[limit number of changes displayed]:' \
932 932 ':revision range:_hg_labels'
933 933 }
934 934
@@ -989,7 +989,7 b' typeset -A _hg_cmd_globals'
989 989
990 990 _hg_cmd_qclone() {
991 991 _arguments -s -w : $_hg_global_opts $_hg_remote_opts $_hg_clone_opts \
992 '(--patches -p)'{-p+,--patches}'[location of source patch repository]' \
992 '(--patches -p)'{-p+,--patches=}'[location of source patch repository]:' \
993 993 ':source repository:_hg_remote' \
994 994 ':destination:_hg_clone_dest'
995 995 }
@@ -997,7 +997,7 b' typeset -A _hg_cmd_globals'
997 997 _hg_cmd_qdelete() {
998 998 _arguments -s -w : $_hg_global_opts \
999 999 '(--keep -k)'{-k,--keep}'[keep patch file]' \
1000 '*'{-r+,--rev}'[stop managing a revision]:applied patch:_hg_revrange' \
1000 '*'{-r+,--rev=}'[stop managing a revision]:applied patch:_hg_revrange' \
1001 1001 '*:unapplied patch:_hg_qdeletable'
1002 1002 }
1003 1003
@@ -1046,7 +1046,7 b' typeset -A _hg_cmd_globals'
1046 1046 '(--existing -e)'{-e,--existing}'[import file in patch dir]' \
1047 1047 '(--name -n 2)'{-n+,--name}'[patch file name]:name:' \
1048 1048 '(--force -f)'{-f,--force}'[overwrite existing files]' \
1049 '*'{-r+,--rev}'[place existing revisions under mq control]:revision:_hg_revrange' \
1049 '*'{-r+,--rev=}'[place existing revisions under mq control]:revision:_hg_revrange' \
1050 1050 '(--push -P)'{-P,--push}'[qpush after importing]' \
1051 1051 '*:patch:_files'
1052 1052 }
@@ -1125,8 +1125,8 b' typeset -A _hg_cmd_globals'
1125 1125 '(--force -f)'{-f,--force}'[force removal, discard uncommitted changes, no backup]' \
1126 1126 '(--no-backup -n)'{-n,--no-backup}'[no backups]' \
1127 1127 '(--keep -k)'{-k,--keep}'[do not modify working copy during strip]' \
1128 '(--bookmark -B)'{-B+,--bookmark}'[remove revs only reachable from given bookmark]:bookmark:_hg_bookmarks' \
1129 '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_labels' \
1128 '(--bookmark -B)'{-B+,--bookmark=}'[remove revs only reachable from given bookmark]:bookmark:_hg_bookmarks' \
1129 '(--rev -r)'{-r+,--rev=}'[revision]:revision:_hg_labels' \
1130 1130 ':revision:_hg_labels'
1131 1131 }
1132 1132
@@ -1138,7 +1138,7 b' typeset -A _hg_cmd_globals'
1138 1138 '(--outgoing -o)'{-o,--outgoing}'[send changes not found in the target repository]' \
1139 1139 '(--bundle -b)'{-b,--bundle}'[send changes not in target as a binary bundle]' \
1140 1140 '--bundlename[name of the bundle attachment file (default: bundle)]:' \
1141 '*'{-r+,--rev}'[search in given revision range]:revision:_hg_revrange' \
1141 '*'{-r+,--rev=}'[search in given revision range]:revision:_hg_revrange' \
1142 1142 '--force[run even when remote repository is unrelated (with -b/--bundle)]' \
1143 1143 '*--base[a base changeset to specify instead of a destination (with -b/--bundle)]:revision:_hg_labels' \
1144 1144 '--intro[send an introduction email for a single patch]' \
@@ -1163,10 +1163,10 b' typeset -A _hg_cmd_globals'
1163 1163 # Rebase
1164 1164 _hg_cmd_rebase() {
1165 1165 _arguments -s -w : $_hg_global_opts $_hg_commit_opts $_hg_mergetool_opts \
1166 '*'{-r,--rev}'[rebase these revisions]:revision:_hg_revrange' \
1167 '(--source -s)'{-s+,--source}'[rebase from the specified changeset]:revision:_hg_labels' \
1168 '(--base -b)'{-b+,--base}'[rebase from the base of the specified changeset]:revision:_hg_labels' \
1169 '(--dest -d)'{-d+,--dest}'[rebase onto the specified changeset]:revision:_hg_labels' \
1166 '*'{-r+,--rev=}'[rebase these revisions]:revision:_hg_revrange' \
1167 '(--source -s)'{-s+,--source=}'[rebase from the specified changeset]:revision:_hg_labels' \
1168 '(--base -b)'{-b+,--base=}'[rebase from the base of the specified changeset]:revision:_hg_labels' \
1169 '(--dest -d)'{-d+,--dest=}'[rebase onto the specified changeset]:revision:_hg_labels' \
1170 1170 '--collapse[collapse the rebased changeset]' \
1171 1171 '--keep[keep original changeset]' \
1172 1172 '--keepbranches[keep original branch name]' \
@@ -1181,8 +1181,8 b' typeset -A _hg_cmd_globals'
1181 1181 '(--addremove -A)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' \
1182 1182 '--close-branch[mark a branch as closed, hiding it from the branch list]' \
1183 1183 '--amend[amend the parent of the working dir]' \
1184 '(--date -d)'{-d+,--date}'[record the specified date as commit date]:date:' \
1185 '(--user -u)'{-u+,--user}'[record the specified user as committer]:user:'
1184 '(--date -d)'{-d+,--date=}'[record the specified date as commit date]:date:' \
1185 '(--user -u)'{-u+,--user=}'[record the specified user as committer]:user:'
1186 1186 }
1187 1187
1188 1188 _hg_cmd_qrecord() {
@@ -1195,8 +1195,8 b' typeset -A _hg_cmd_globals'
1195 1195 _arguments -s -w : $_hg_global_opts \
1196 1196 '(--source-type -s)'{-s,--source-type}'[source repository type]' \
1197 1197 '(--dest-type -d)'{-d,--dest-type}'[destination repository type]' \
1198 '(--rev -r)'{-r+,--rev}'[import up to target revision]:revision:' \
1199 '(--authormap -A)'{-A+,--authormap}'[remap usernames using this file]:file:_files' \
1198 '(--rev -r)'{-r+,--rev=}'[import up to target revision]:revision:' \
1199 '(--authormap -A)'{-A+,--authormap=}'[remap usernames using this file]:file:_files' \
1200 1200 '--filemap[remap file names using contents of file]:file:_files' \
1201 1201 '--splicemap[splice synthesized history into place]:file:_files' \
1202 1202 '--branchmap[change branch names while converting]:file:_files' \
General Comments 0
You need to be logged in to leave comments. Login now