Show More
@@ -508,6 +508,7 b' typeset -A _hg_cmd_globals' | |||
|
508 | 508 | _hg_cmd_bisect() { |
|
509 | 509 | _arguments -s -w : $_hg_global_opts \ |
|
510 | 510 | '(-)'{-r,--reset}'[reset bisect state]' \ |
|
511 | '(--extend -e)'{-e,--extend}'[extend the bisect range]' \ | |
|
511 | 512 | '(--good -g --bad -b --skip -s --reset -r)'{-g,--good}'[mark changeset good]'::revision:_hg_labels \ |
|
512 | 513 | '(--good -g --bad -b --skip -s --reset -r)'{-b,--bad}'[mark changeset bad]'::revision:_hg_labels \ |
|
513 | 514 | '(--good -g --bad -b --skip -s --reset -r)'{-s,--skip}'[skip testing changeset]' \ |
@@ -518,6 +519,7 b' typeset -A _hg_cmd_globals' | |||
|
518 | 519 | _hg_cmd_bookmarks() { |
|
519 | 520 | _arguments -s -w : $_hg_global_opts \ |
|
520 | 521 | '(--force -f)'{-f,--force}'[force]' \ |
|
522 | '(--inactive -i)'{-i,--inactive}'[mark a bookmark inactive]' \ | |
|
521 | 523 | '(--rev -r --delete -d --rename -m)'{-r+,--rev}'[revision]:revision:_hg_labels' \ |
|
522 | 524 | '(--rev -r --delete -d --rename -m)'{-d,--delete}'[delete a given bookmark]' \ |
|
523 | 525 | '(--rev -r --delete -d --rename -m)'{-m+,--rename}'[rename a given bookmark]:bookmark:_hg_bookmarks' \ |
@@ -532,13 +534,17 b' typeset -A _hg_cmd_globals' | |||
|
532 | 534 | |
|
533 | 535 | _hg_cmd_branches() { |
|
534 | 536 | _arguments -s -w : $_hg_global_opts \ |
|
535 | '(--active -a)'{-a,--active}'[show only branches that have unmerge heads]' | |
|
537 | '(--active -a)'{-a,--active}'[show only branches that have unmerge heads]' \ | |
|
538 | '(--closed -c)'{-c,--closed}'[show normal and closed branches]' | |
|
536 | 539 | } |
|
537 | 540 | |
|
538 | 541 | _hg_cmd_bundle() { |
|
539 | 542 | _arguments -s -w : $_hg_global_opts $_hg_remote_opts \ |
|
540 | 543 | '(--force -f)'{-f,--force}'[run even when remote repository is unrelated]' \ |
|
541 | 544 | '(2)*--base[a base changeset to specify instead of a destination]:revision:_hg_labels' \ |
|
545 | '(--branch -b)'{-b+,--branch}'[a specific branch to bundle]' \ | |
|
546 | '(--rev -r)'{-r+,--rev}'[changeset(s) to bundle]:' \ | |
|
547 | '--all[bundle all changesets in the repository]' \ | |
|
542 | 548 | ':output file:_files' \ |
|
543 | 549 | ':destination repository:_files -/' |
|
544 | 550 | } |
@@ -547,14 +553,15 b' typeset -A _hg_cmd_globals' | |||
|
547 | 553 | _arguments -s -w : $_hg_global_opts $_hg_pat_opts \ |
|
548 | 554 | '(--output -o)'{-o+,--output}'[print output to file with formatted name]:filespec:' \ |
|
549 | 555 | '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_labels' \ |
|
556 | '--decode[apply any matching decode filter]' \ | |
|
550 | 557 | '*:file:_hg_files' |
|
551 | 558 | } |
|
552 | 559 | |
|
553 | 560 | _hg_cmd_clone() { |
|
554 | 561 | _arguments -s -w : $_hg_global_opts $_hg_clone_opts \ |
|
555 | '(--noupdate -U)'{-U,--noupdate}'[do not update the new working directory]' \ | |
|
556 | 562 | '(--rev -r)'{-r+,--rev}'[a changeset you would like to have after cloning]:' \ |
|
557 | '--uncompressed[use uncompressed transfer (fast over LAN)]' \ | |
|
563 | '(--updaterev -u)'{-u+,--updaterev}'[revision, tag or branch to check out]' \ | |
|
564 | '(--branch -b)'{-b+,--branch}'[clone only the specified branch]' \ | |
|
558 | 565 | ':source repository:_hg_remote' \ |
|
559 | 566 | ':destination:_hg_clone_dest' |
|
560 | 567 | } |
@@ -567,6 +574,7 b' typeset -A _hg_cmd_globals' | |||
|
567 | 574 | '(--date -d)'{-d+,--date}'[record datecode as commit date]:date code:' \ |
|
568 | 575 | '(--user -u)'{-u+,--user}'[record user as commiter]:user:' \ |
|
569 | 576 | '--amend[amend the parent of the working dir]' \ |
|
577 | '--close-branch[mark a branch as closed]' \ | |
|
570 | 578 | '*:file:_hg_files' |
|
571 | 579 | } |
|
572 | 580 | |
@@ -583,6 +591,11 b' typeset -A _hg_cmd_globals' | |||
|
583 | 591 | $_hg_pat_opts $_hg_subrepos_opts \ |
|
584 | 592 | '*'{-r,--rev}'+[revision]:revision:_hg_revrange' \ |
|
585 | 593 | '(--show-function -p)'{-p,--show-function}'[show which function each change is in]' \ |
|
594 | '(--change -c)'{-c,--change}'[change made by revision]' \ | |
|
595 | '(--text -a)'{-a,--text}'[treat all files as text]' \ | |
|
596 | '--reverse[produce a diff that undoes the changes]' \ | |
|
597 | '(--unified -U)'{-U,--unified}'[number of lines of context to show]' \ | |
|
598 | '--stat[output diffstat-style summary of changes]' \ | |
|
586 | 599 | '*:file:->diff_files' |
|
587 | 600 | |
|
588 | 601 | if [[ $state == 'diff_files' ]] |
@@ -600,6 +613,7 b' typeset -A _hg_cmd_globals' | |||
|
600 | 613 | _arguments -s -w : $_hg_global_opts $_hg_diff_opts \ |
|
601 | 614 | '(--outout -o)'{-o+,--output}'[print output to file with formatted name]:filespec:' \ |
|
602 | 615 | '--switch-parent[diff against the second parent]' \ |
|
616 | '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_labels' \ | |
|
603 | 617 | '*:revision:_hg_labels' |
|
604 | 618 | } |
|
605 | 619 | |
@@ -627,17 +641,23 b' typeset -A _hg_cmd_globals' | |||
|
627 | 641 | '(--line-number -n)'{-n,--line-number}'[print matching line numbers]' \ |
|
628 | 642 | '*'{-r+,--rev}'[search in given revision range]:revision:_hg_revrange' \ |
|
629 | 643 | '(--user -u)'{-u,--user}'[print user who committed change]' \ |
|
644 | '(--date -d)'{-d,--date}'[print date of a changeset]' \ | |
|
630 | 645 | '1:search pattern:' \ |
|
631 | 646 | '*:files:_hg_files' |
|
632 | 647 | } |
|
633 | 648 | |
|
634 | 649 | _hg_cmd_heads() { |
|
635 | 650 | _arguments -s -w : $_hg_global_opts $_hg_style_opts \ |
|
651 | '(--topo -t)'{-t,--topo}'[show topological heads only]' \ | |
|
652 | '(--closed -c)'{-c,--closed}'[show normal and closed branch heads]' \ | |
|
636 | 653 | '(--rev -r)'{-r+,--rev}'[show only heads which are descendants of rev]:revision:_hg_labels' |
|
637 | 654 | } |
|
638 | 655 | |
|
639 | 656 | _hg_cmd_help() { |
|
640 | 657 | _arguments -s -w : $_hg_global_opts \ |
|
658 | '(--extension -e)'{-e,--extension}'[show only help for extensions]' \ | |
|
659 | '(--command -c)'{-c,--command}'[show only help for commands]' \ | |
|
660 | '(--keyword -k)'{-k+,--keyword}'[show topics matching keyword]' \ | |
|
641 | 661 | '*:mercurial help topic:_hg_help_topics' |
|
642 | 662 | } |
|
643 | 663 | |
@@ -647,6 +667,7 b' typeset -A _hg_cmd_globals' | |||
|
647 | 667 | '(--num -n)'{-n+,--num}'[show local revision number]' \ |
|
648 | 668 | '(--id -i)'{-i+,--id}'[show global revision id]' \ |
|
649 | 669 | '(--branch -b)'{-b+,--branch}'[show branch]' \ |
|
670 | '(--bookmark -B)'{-B+,--bookmark}'[show bookmarks]' \ | |
|
650 | 671 | '(--tags -t)'{-t+,--tags}'[show tags]' |
|
651 | 672 | } |
|
652 | 673 | |
@@ -655,6 +676,12 b' typeset -A _hg_cmd_globals' | |||
|
655 | 676 | '(--strip -p)'{-p+,--strip}'[directory strip option for patch (default: 1)]:count:' \ |
|
656 | 677 | '(--force -f)'{-f,--force}'[skip check for outstanding uncommitted changes]' \ |
|
657 | 678 | '--bypass[apply patch without touching the working directory]' \ |
|
679 | '--no-commit[do not commit, just update the working directory]' \ | |
|
680 | '--exact[apply patch to the nodes from which it was generated]' \ | |
|
681 | '--import-branch[use any branch information in patch (implied by --exact)]' \ | |
|
682 | '(--date -d)'{-d+,--date}'[record datecode as commit date]:date code:' \ | |
|
683 | '(--user -u)'{-u+,--user}'[record user as commiter]:user:' \ | |
|
684 | '(--similarity -s)'{-s+,--similarity}'[guess renamed files by similarity (0<=s<=100)]:' \ | |
|
658 | 685 | '*:patch:_files' |
|
659 | 686 | } |
|
660 | 687 | |
@@ -690,13 +717,17 b' typeset -A _hg_cmd_globals' | |||
|
690 | 717 | '*'{-r,--rev}'[show the specified revision or range]:revision:_hg_revrange' \ |
|
691 | 718 | '(--only-merges -m)'{-m,--only-merges}'[show only merges]' \ |
|
692 | 719 | '(--prune -P)'{-P+,--prune}'[do not display revision or any of its ancestors]:revision:_hg_labels' \ |
|
720 | '(--graph -G)'{-G+,--graph}'[show the revision DAG]' \ | |
|
693 | 721 | '(--branch -b)'{-b+,--branch}'[show changesets within the given named branch]:branch:_hg_branches' \ |
|
722 | '(--user -u)'{-u+,--user}'[revisions committed by user]:user:' \ | |
|
723 | '(--date -d)'{-d+,--date}'[show revisions matching date spec]:date:' \ | |
|
694 | 724 | '*:files:_hg_files' |
|
695 | 725 | } |
|
696 | 726 | |
|
697 | 727 | _hg_cmd_manifest() { |
|
698 | 728 | _arguments -s -w : $_hg_global_opts \ |
|
699 | 729 | '--all[list files from all revisions]' \ |
|
730 | '(--rev -r)'{-r+,--rev}'[revision to display]:revision:_hg_labels' \ | |
|
700 | 731 | ':revision:_hg_labels' |
|
701 | 732 | } |
|
702 | 733 | |
@@ -739,7 +770,7 b' typeset -A _hg_cmd_globals' | |||
|
739 | 770 | } |
|
740 | 771 | |
|
741 | 772 | _hg_cmd_pull() { |
|
742 |
_arguments -s -w : $_hg_global_opts $_hg_ |
|
|
773 | _arguments -s -w : $_hg_global_opts $_hg_branch_bmark_opts $_hg_remote_opts \ | |
|
743 | 774 | '(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \ |
|
744 | 775 | '(--update -u)'{-u,--update}'[update to new tip if changesets were pulled]' \ |
|
745 | 776 | '(--rev -r)'{-r+,--rev}'[a specific revision up to which you would like to pull]:revision:' \ |
@@ -747,9 +778,10 b' typeset -A _hg_cmd_globals' | |||
|
747 | 778 | } |
|
748 | 779 | |
|
749 | 780 | _hg_cmd_push() { |
|
750 |
_arguments -s -w : $_hg_global_opts $_hg_ |
|
|
781 | _arguments -s -w : $_hg_global_opts $_hg_branch_bmark_opts $_hg_remote_opts \ | |
|
751 | 782 | '(--force -f)'{-f,--force}'[force push]' \ |
|
752 | 783 | '(--rev -r)'{-r+,--rev}'[a specific revision you would like to push]:revision:_hg_labels' \ |
|
784 | '--new-branch[allow pushing a new branch]' \ | |
|
753 | 785 | ':destination:_hg_remote' |
|
754 | 786 | } |
|
755 | 787 | |
@@ -772,6 +804,8 b' typeset -A _hg_cmd_globals' | |||
|
772 | 804 | typeset -A opt_args |
|
773 | 805 | |
|
774 | 806 | _arguments -s -w : $_hg_global_opts $_hg_mergetool_opts $_hg_pat_opts \ |
|
807 | '(--all -a)'{-a,--all}'[select all unresolved files]' \ | |
|
808 | '(--no-status -n)'{-n,--no-status}'[hide status prefix]' \ | |
|
775 | 809 | '(--list -l --mark -m --unmark -u)'{-l,--list}'[list state of files needing merge]:*:merged files:->resolve_files' \ |
|
776 | 810 | '(--mark -m --list -l --unmark -u)'{-m,--mark}'[mark files as resolved]:*:unresolved files:_hg_unresolved' \ |
|
777 | 811 | '(--unmark -u --list -l --mark -m)'{-u,--unmark}'[unmark files as resolved]:*:resolved files:_hg_resolved' \ |
@@ -792,6 +826,7 b' typeset -A _hg_cmd_globals' | |||
|
792 | 826 | '(--all -a :)'{-a,--all}'[revert all changes when no arguments given]' \ |
|
793 | 827 | '(--rev -r)'{-r+,--rev}'[revision to revert to]:revision:_hg_labels' \ |
|
794 | 828 | '(--no-backup -C)'{-C,--no-backup}'[do not save backup copies of files]' \ |
|
829 | '(--date -d)'{-d+,--date}'[tipmost revision matching date]:date code:' \ | |
|
795 | 830 | '*:file:->diff_files' |
|
796 | 831 | |
|
797 | 832 | if [[ $state == 'diff_files' ]] |
@@ -819,10 +854,15 b' typeset -A _hg_cmd_globals' | |||
|
819 | 854 | '(--daemon -d)'{-d,--daemon}'[run server in background]' \ |
|
820 | 855 | '(--port -p)'{-p+,--port}'[listen port]:listen port:' \ |
|
821 | 856 | '(--address -a)'{-a+,--address}'[interface address]:interface address:' \ |
|
857 | '--prefix[prefix path to serve from]:directory:_files' \ | |
|
822 | 858 | '(--name -n)'{-n+,--name}'[name to show in web pages]:repository name:' \ |
|
859 | '--web-conf[name of the hgweb config file]:webconf_file:_files' \ | |
|
860 | '--pid-file[name of file to write process ID to]:pid_file:_files' \ | |
|
861 | '--cmdserver[cmdserver mode]:mode:' \ | |
|
823 | 862 | '(--templates -t)'{-t,--templates}'[web template directory]:template dir:_files -/' \ |
|
824 | 863 | '--style[web template style]:style' \ |
|
825 | 864 | '--stdio[for remote clients]' \ |
|
865 | '--certificate[certificate file]:cert_file:_files' \ | |
|
826 | 866 | '(--ipv6 -6)'{-6,--ipv6}'[use IPv6 in addition to IPv4]' |
|
827 | 867 | } |
|
828 | 868 | |
@@ -846,6 +886,7 b' typeset -A _hg_cmd_globals' | |||
|
846 | 886 | '(--copies -C)'{-C,--copies}'[show source of copied files]' \ |
|
847 | 887 | '(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs]' \ |
|
848 | 888 | '--rev[show difference from revision]:revision:_hg_labels' \ |
|
889 | '--change[list the changed files of a revision]:revision:_hg_labels' \ | |
|
849 | 890 | '*:files:_files' |
|
850 | 891 | } |
|
851 | 892 | |
@@ -861,6 +902,9 b' typeset -A _hg_cmd_globals' | |||
|
861 | 902 | '(--date -d)'{-d+,--date}'[record datecode as commit date]:date code:' \ |
|
862 | 903 | '(--user -u)'{-u+,--user}'[record user as commiter]:user:' \ |
|
863 | 904 | '(--rev -r)'{-r+,--rev}'[revision to tag]:revision:_hg_labels' \ |
|
905 | '(--force -f)'{-f,--force}'[force tag]' \ | |
|
906 | '--remove[remove a tag]' \ | |
|
907 | '(--edit -e)'{-e,--edit}'[edit commit message]' \ | |
|
864 | 908 | ':tag name:' |
|
865 | 909 | } |
|
866 | 910 | |
@@ -879,6 +923,8 b' typeset -A _hg_cmd_globals' | |||
|
879 | 923 | _arguments -s -w : $_hg_global_opts \ |
|
880 | 924 | '(--clean -C)'{-C,--clean}'[overwrite locally modified files]' \ |
|
881 | 925 | '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_labels' \ |
|
926 | '(--check -c)'{-c,--check}'[update across branches if no uncommitted changes]' \ | |
|
927 | '(--date -d)'{-d+,--date}'[tipmost revision matching date]' \ | |
|
882 | 928 | ':revision:_hg_labels' |
|
883 | 929 | } |
|
884 | 930 |
General Comments 0
You need to be logged in to leave comments.
Login now