Show More
@@ -82,7 +82,7 b' typeset -A _hg_cmd_globals' | |||||
82 |
|
82 | |||
83 | if [[ -z "$cmd" ]] |
|
83 | if [[ -z "$cmd" ]] | |
84 | then |
|
84 | then | |
85 |
_arguments -s - |
|
85 | _arguments -s -S : $_hg_global_opts \ | |
86 | ':mercurial command:_hg_commands' |
|
86 | ':mercurial command:_hg_commands' | |
87 | return |
|
87 | return | |
88 | fi |
|
88 | fi | |
@@ -119,7 +119,7 b' typeset -A _hg_cmd_globals' | |||||
119 | _hg_cmd_${cmd} |
|
119 | _hg_cmd_${cmd} | |
120 | else |
|
120 | else | |
121 | # complete unknown commands normally |
|
121 | # complete unknown commands normally | |
122 |
_arguments -s - |
|
122 | _arguments -s -S : $_hg_global_opts \ | |
123 | '*:files:_hg_files' |
|
123 | '*:files:_hg_files' | |
124 | fi |
|
124 | fi | |
125 | } |
|
125 | } | |
@@ -458,18 +458,18 b' typeset -A _hg_cmd_globals' | |||||
458 | } |
|
458 | } | |
459 |
|
459 | |||
460 | _hg_cmd_add() { |
|
460 | _hg_cmd_add() { | |
461 |
_arguments -s - |
|
461 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts $_hg_subrepos_opts \ | |
462 | '*:unknown files:_hg_unknown' |
|
462 | '*:unknown files:_hg_unknown' | |
463 | } |
|
463 | } | |
464 |
|
464 | |||
465 | _hg_cmd_addremove() { |
|
465 | _hg_cmd_addremove() { | |
466 |
_arguments -s - |
|
466 | _arguments -s -S : $_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 | '*:unknown or missing files:_hg_addremove' |
|
468 | '*:unknown or missing files:_hg_addremove' | |
469 | } |
|
469 | } | |
470 |
|
470 | |||
471 | _hg_cmd_annotate() { |
|
471 | _hg_cmd_annotate() { | |
472 |
_arguments -s - |
|
472 | _arguments -s -S : $_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 | '(--follow -f)'{-f,--follow}'[follow file copies and renames]' \ |
|
474 | '(--follow -f)'{-f,--follow}'[follow file copies and renames]' \ | |
475 | '(--text -a)'{-a,--text}'[treat all files as text]' \ |
|
475 | '(--text -a)'{-a,--text}'[treat all files as text]' \ | |
@@ -481,7 +481,7 b' typeset -A _hg_cmd_globals' | |||||
481 | } |
|
481 | } | |
482 |
|
482 | |||
483 | _hg_cmd_archive() { |
|
483 | _hg_cmd_archive() { | |
484 |
_arguments -s - |
|
484 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \ | |
485 | '--no-decode[do not pass files through decoders]' \ |
|
485 | '--no-decode[do not pass files through decoders]' \ | |
486 | '(--prefix -p)'{-p+,--prefix=}'[directory prefix for files in archive]:' \ |
|
486 | '(--prefix -p)'{-p+,--prefix=}'[directory prefix for files in archive]:' \ | |
487 | '(--rev -r)'{-r+,--rev=}'[revision to distribute]:revision:_hg_labels' \ |
|
487 | '(--rev -r)'{-r+,--rev=}'[revision to distribute]:revision:_hg_labels' \ | |
@@ -490,7 +490,7 b' typeset -A _hg_cmd_globals' | |||||
490 | } |
|
490 | } | |
491 |
|
491 | |||
492 | _hg_cmd_backout() { |
|
492 | _hg_cmd_backout() { | |
493 |
_arguments -s - |
|
493 | _arguments -s -S : $_hg_global_opts $_hg_mergetool_opts $_hg_pat_opts \ | |
494 | '--merge[merge with old dirstate parent after backout]' \ |
|
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 | '--parent[parent to choose when backing out merge]' \ |
|
496 | '--parent[parent to choose when backing out merge]' \ | |
@@ -501,7 +501,7 b' typeset -A _hg_cmd_globals' | |||||
501 | } |
|
501 | } | |
502 |
|
502 | |||
503 | _hg_cmd_bisect() { |
|
503 | _hg_cmd_bisect() { | |
504 |
_arguments -s - |
|
504 | _arguments -s -S : $_hg_global_opts \ | |
505 | '(-)'{-r,--reset}'[reset bisect state]' \ |
|
505 | '(-)'{-r,--reset}'[reset bisect state]' \ | |
506 | '(--extend -e)'{-e,--extend}'[extend the bisect range]' \ |
|
506 | '(--extend -e)'{-e,--extend}'[extend the bisect range]' \ | |
507 | '(--good -g --bad -b --skip -s --reset -r)'{-g,--good}'[mark changeset good]'::revision:_hg_labels \ |
|
507 | '(--good -g --bad -b --skip -s --reset -r)'{-g,--good}'[mark changeset good]'::revision:_hg_labels \ | |
@@ -512,7 +512,7 b' typeset -A _hg_cmd_globals' | |||||
512 | } |
|
512 | } | |
513 |
|
513 | |||
514 | _hg_cmd_bookmarks() { |
|
514 | _hg_cmd_bookmarks() { | |
515 |
_arguments -s - |
|
515 | _arguments -s -S : $_hg_global_opts \ | |
516 | '(--force -f)'{-f,--force}'[force]' \ |
|
516 | '(--force -f)'{-f,--force}'[force]' \ | |
517 | '(--inactive -i)'{-i,--inactive}'[mark a bookmark inactive]' \ |
|
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' \ | |
@@ -522,19 +522,19 b' typeset -A _hg_cmd_globals' | |||||
522 | } |
|
522 | } | |
523 |
|
523 | |||
524 | _hg_cmd_branch() { |
|
524 | _hg_cmd_branch() { | |
525 |
_arguments -s - |
|
525 | _arguments -s -S : $_hg_global_opts \ | |
526 | '(--force -f)'{-f,--force}'[set branch name even if it shadows an existing branch]' \ |
|
526 | '(--force -f)'{-f,--force}'[set branch name even if it shadows an existing branch]' \ | |
527 | '(--clean -C)'{-C,--clean}'[reset branch name to parent branch name]' |
|
527 | '(--clean -C)'{-C,--clean}'[reset branch name to parent branch name]' | |
528 | } |
|
528 | } | |
529 |
|
529 | |||
530 | _hg_cmd_branches() { |
|
530 | _hg_cmd_branches() { | |
531 |
_arguments -s - |
|
531 | _arguments -s -S : $_hg_global_opts \ | |
532 | '(--active -a)'{-a,--active}'[show only branches that have unmerge heads]' \ |
|
532 | '(--active -a)'{-a,--active}'[show only branches that have unmerge heads]' \ | |
533 | '(--closed -c)'{-c,--closed}'[show normal and closed branches]' |
|
533 | '(--closed -c)'{-c,--closed}'[show normal and closed branches]' | |
534 | } |
|
534 | } | |
535 |
|
535 | |||
536 | _hg_cmd_bundle() { |
|
536 | _hg_cmd_bundle() { | |
537 |
_arguments -s - |
|
537 | _arguments -s -S : $_hg_global_opts $_hg_remote_opts \ | |
538 | '(--force -f)'{-f,--force}'[run even when remote repository is unrelated]' \ |
|
538 | '(--force -f)'{-f,--force}'[run even when remote repository is unrelated]' \ | |
539 | '(2)*--base[a base changeset to specify instead of a destination]:revision:_hg_labels' \ |
|
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]:' \ |
|
540 | '(--branch -b)'{-b+,--branch=}'[a specific branch to bundle]:' \ | |
@@ -545,7 +545,7 b' typeset -A _hg_cmd_globals' | |||||
545 | } |
|
545 | } | |
546 |
|
546 | |||
547 | _hg_cmd_cat() { |
|
547 | _hg_cmd_cat() { | |
548 |
_arguments -s - |
|
548 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts \ | |
549 | '(--output -o)'{-o+,--output=}'[print output to file with formatted name]:filespec:' \ |
|
549 | '(--output -o)'{-o+,--output=}'[print output to file with formatted name]:filespec:' \ | |
550 | '(--rev -r)'{-r+,--rev=}'[revision]:revision:_hg_labels' \ |
|
550 | '(--rev -r)'{-r+,--rev=}'[revision]:revision:_hg_labels' \ | |
551 | '--decode[apply any matching decode filter]' \ |
|
551 | '--decode[apply any matching decode filter]' \ | |
@@ -553,7 +553,7 b' typeset -A _hg_cmd_globals' | |||||
553 | } |
|
553 | } | |
554 |
|
554 | |||
555 | _hg_cmd_clone() { |
|
555 | _hg_cmd_clone() { | |
556 |
_arguments -s - |
|
556 | _arguments -s -S : $_hg_global_opts $_hg_clone_opts \ | |
557 | '(--rev -r)'{-r+,--rev=}'[a changeset you would like to have after cloning]:' \ |
|
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]:' \ |
|
558 | '(--updaterev -u)'{-u+,--updaterev=}'[revision, tag or branch to check out]:' \ | |
559 | '(--branch -b)'{-b+,--branch=}'[clone only the specified branch]:' \ |
|
559 | '(--branch -b)'{-b+,--branch=}'[clone only the specified branch]:' \ | |
@@ -562,7 +562,7 b' typeset -A _hg_cmd_globals' | |||||
562 | } |
|
562 | } | |
563 |
|
563 | |||
564 | _hg_cmd_commit() { |
|
564 | _hg_cmd_commit() { | |
565 |
_arguments -s - |
|
565 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \ | |
566 | '(--addremove -A)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' \ |
|
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:' \ |
|
567 | '(--message -m)'{-m+,--message=}'[use <text> as commit message]:text:' \ | |
568 | '(--logfile -l)'{-l+,--logfile=}'[read commit message from <file>]:log file:_files' \ |
|
568 | '(--logfile -l)'{-l+,--logfile=}'[read commit message from <file>]:log file:_files' \ | |
@@ -574,7 +574,7 b' typeset -A _hg_cmd_globals' | |||||
574 | } |
|
574 | } | |
575 |
|
575 | |||
576 | _hg_cmd_copy() { |
|
576 | _hg_cmd_copy() { | |
577 |
_arguments -s - |
|
577 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \ | |
578 | '(--after -A)'{-A,--after}'[record a copy that has already occurred]' \ |
|
578 | '(--after -A)'{-A,--after}'[record a copy that has already occurred]' \ | |
579 | '(--force -f)'{-f,--force}'[forcibly copy over an existing managed file]' \ |
|
579 | '(--force -f)'{-f,--force}'[forcibly copy over an existing managed file]' \ | |
580 | '*:file:_hg_files' |
|
580 | '*:file:_hg_files' | |
@@ -582,7 +582,7 b' typeset -A _hg_cmd_globals' | |||||
582 |
|
582 | |||
583 | _hg_cmd_diff() { |
|
583 | _hg_cmd_diff() { | |
584 | typeset -A opt_args |
|
584 | typeset -A opt_args | |
585 |
_arguments -s - |
|
585 | _arguments -s -S : $_hg_global_opts $_hg_diff_opts $_hg_ignore_space_opts \ | |
586 | $_hg_pat_opts $_hg_subrepos_opts \ |
|
586 | $_hg_pat_opts $_hg_subrepos_opts \ | |
587 | '*'{-r+,--rev=}'[revision]:revision:_hg_revrange' \ |
|
587 | '*'{-r+,--rev=}'[revision]:revision:_hg_revrange' \ | |
588 | '(--show-function -p)'{-p,--show-function}'[show which function each change is in]' \ |
|
588 | '(--show-function -p)'{-p,--show-function}'[show which function each change is in]' \ | |
@@ -605,7 +605,7 b' typeset -A _hg_cmd_globals' | |||||
605 | } |
|
605 | } | |
606 |
|
606 | |||
607 | _hg_cmd_export() { |
|
607 | _hg_cmd_export() { | |
608 |
_arguments -s - |
|
608 | _arguments -s -S : $_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 | '--switch-parent[diff against the second parent]' \ |
|
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' \ | |
@@ -613,12 +613,12 b' typeset -A _hg_cmd_globals' | |||||
613 | } |
|
613 | } | |
614 |
|
614 | |||
615 | _hg_cmd_forget() { |
|
615 | _hg_cmd_forget() { | |
616 |
_arguments -s - |
|
616 | _arguments -s -S : $_hg_global_opts \ | |
617 | '*:file:_hg_files' |
|
617 | '*:file:_hg_files' | |
618 | } |
|
618 | } | |
619 |
|
619 | |||
620 | _hg_cmd_graft() { |
|
620 | _hg_cmd_graft() { | |
621 |
_arguments -s - |
|
621 | _arguments -s -S : $_hg_global_opts $_hg_dryrun_opts \ | |
622 | $_hg_date_user_opts $_hg_mergetool_opts \ |
|
622 | $_hg_date_user_opts $_hg_mergetool_opts \ | |
623 | '(--continue -c)'{-c,--continue}'[resume interrupted graft]' \ |
|
623 | '(--continue -c)'{-c,--continue}'[resume interrupted graft]' \ | |
624 | '(--edit -e)'{-e,--edit}'[invoke editor on commit messages]' \ |
|
624 | '(--edit -e)'{-e,--edit}'[invoke editor on commit messages]' \ | |
@@ -627,7 +627,7 b' typeset -A _hg_cmd_globals' | |||||
627 | } |
|
627 | } | |
628 |
|
628 | |||
629 | _hg_cmd_grep() { |
|
629 | _hg_cmd_grep() { | |
630 |
_arguments -s - |
|
630 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts \ | |
631 | '(--print0 -0)'{-0,--print0}'[end filenames with NUL]' \ |
|
631 | '(--print0 -0)'{-0,--print0}'[end filenames with NUL]' \ | |
632 | '--all[print all revisions with matches]' \ |
|
632 | '--all[print all revisions with matches]' \ | |
633 | '(--follow -f)'{-f,--follow}'[follow changeset or file history]' \ |
|
633 | '(--follow -f)'{-f,--follow}'[follow changeset or file history]' \ | |
@@ -642,14 +642,14 b' typeset -A _hg_cmd_globals' | |||||
642 | } |
|
642 | } | |
643 |
|
643 | |||
644 | _hg_cmd_heads() { |
|
644 | _hg_cmd_heads() { | |
645 |
_arguments -s - |
|
645 | _arguments -s -S : $_hg_global_opts $_hg_template_opts \ | |
646 | '(--topo -t)'{-t,--topo}'[show topological heads only]' \ |
|
646 | '(--topo -t)'{-t,--topo}'[show topological heads only]' \ | |
647 | '(--closed -c)'{-c,--closed}'[show normal and closed branch heads]' \ |
|
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 | _hg_cmd_help() { |
|
651 | _hg_cmd_help() { | |
652 |
_arguments -s - |
|
652 | _arguments -s -S : $_hg_global_opts \ | |
653 | '(--extension -e)'{-e,--extension}'[show only help for extensions]' \ |
|
653 | '(--extension -e)'{-e,--extension}'[show only help for extensions]' \ | |
654 | '(--command -c)'{-c,--command}'[show only help for commands]' \ |
|
654 | '(--command -c)'{-c,--command}'[show only help for commands]' \ | |
655 | '(--keyword -k)'{-k+,--keyword}'[show topics matching keyword]' \ |
|
655 | '(--keyword -k)'{-k+,--keyword}'[show topics matching keyword]' \ | |
@@ -657,7 +657,7 b' typeset -A _hg_cmd_globals' | |||||
657 | } |
|
657 | } | |
658 |
|
658 | |||
659 | _hg_cmd_identify() { |
|
659 | _hg_cmd_identify() { | |
660 |
_arguments -s - |
|
660 | _arguments -s -S : $_hg_global_opts $_hg_remote_opts \ | |
661 | '(--rev -r)'{-r+,--rev=}'[identify the specified rev]:revision:_hg_labels' \ |
|
661 | '(--rev -r)'{-r+,--rev=}'[identify the specified rev]:revision:_hg_labels' \ | |
662 | '(--num -n)'{-n,--num}'[show local revision number]' \ |
|
662 | '(--num -n)'{-n,--num}'[show local revision number]' \ | |
663 | '(--id -i)'{-i,--id}'[show global revision id]' \ |
|
663 | '(--id -i)'{-i,--id}'[show global revision id]' \ | |
@@ -667,7 +667,7 b' typeset -A _hg_cmd_globals' | |||||
667 | } |
|
667 | } | |
668 |
|
668 | |||
669 | _hg_cmd_import() { |
|
669 | _hg_cmd_import() { | |
670 |
_arguments -s - |
|
670 | _arguments -s -S : $_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 | '(--force -f)'{-f,--force}'[skip check for outstanding uncommitted changes]' \ |
|
672 | '(--force -f)'{-f,--force}'[skip check for outstanding uncommitted changes]' \ | |
673 | '--bypass[apply patch without touching the working directory]' \ |
|
673 | '--bypass[apply patch without touching the working directory]' \ | |
@@ -682,7 +682,7 b' typeset -A _hg_cmd_globals' | |||||
682 | } |
|
682 | } | |
683 |
|
683 | |||
684 | _hg_cmd_incoming() { |
|
684 | _hg_cmd_incoming() { | |
685 |
_arguments -s - |
|
685 | _arguments -s -S : $_hg_log_opts $_hg_branch_bmark_opts $_hg_remote_opts \ | |
686 | $_hg_subrepos_opts \ |
|
686 | $_hg_subrepos_opts \ | |
687 | '(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \ |
|
687 | '(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \ | |
688 | '(--rev -r)'{-r+,--rev=}'[a specific revision up to which you would like to pull]:revision:_hg_labels' \ |
|
688 | '(--rev -r)'{-r+,--rev=}'[a specific revision up to which you would like to pull]:revision:_hg_labels' \ | |
@@ -692,12 +692,12 b' typeset -A _hg_cmd_globals' | |||||
692 | } |
|
692 | } | |
693 |
|
693 | |||
694 | _hg_cmd_init() { |
|
694 | _hg_cmd_init() { | |
695 |
_arguments -s - |
|
695 | _arguments -s -S : $_hg_global_opts $_hg_remote_opts \ | |
696 | ':dir:_files -/' |
|
696 | ':dir:_files -/' | |
697 | } |
|
697 | } | |
698 |
|
698 | |||
699 | _hg_cmd_locate() { |
|
699 | _hg_cmd_locate() { | |
700 |
_arguments -s - |
|
700 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts \ | |
701 | '(--rev -r)'{-r+,--rev=}'[search repository as it stood at revision]:revision:_hg_labels' \ |
|
701 | '(--rev -r)'{-r+,--rev=}'[search repository as it stood at revision]:revision:_hg_labels' \ | |
702 | '(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs]' \ |
|
702 | '(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs]' \ | |
703 | '(--fullpath -f)'{-f,--fullpath}'[print complete paths]' \ |
|
703 | '(--fullpath -f)'{-f,--fullpath}'[print complete paths]' \ | |
@@ -705,7 +705,7 b' typeset -A _hg_cmd_globals' | |||||
705 | } |
|
705 | } | |
706 |
|
706 | |||
707 | _hg_cmd_log() { |
|
707 | _hg_cmd_log() { | |
708 |
_arguments -s - |
|
708 | _arguments -s -S : $_hg_log_opts $_hg_pat_opts \ | |
709 | '(--follow --follow-first -f)'{-f,--follow}'[follow changeset or history]' \ |
|
709 | '(--follow --follow-first -f)'{-f,--follow}'[follow changeset or history]' \ | |
710 | '(-f --follow)--follow-first[only follow the first parent of merge changesets]' \ |
|
710 | '(-f --follow)--follow-first[only follow the first parent of merge changesets]' \ | |
711 | '(--copies -C)'{-C,--copies}'[show copied files]' \ |
|
711 | '(--copies -C)'{-C,--copies}'[show copied files]' \ | |
@@ -721,14 +721,14 b' typeset -A _hg_cmd_globals' | |||||
721 | } |
|
721 | } | |
722 |
|
722 | |||
723 | _hg_cmd_manifest() { |
|
723 | _hg_cmd_manifest() { | |
724 |
_arguments -s - |
|
724 | _arguments -s -S : $_hg_global_opts \ | |
725 | '--all[list files from all revisions]' \ |
|
725 | '--all[list files from all revisions]' \ | |
726 | '(--rev -r)'{-r+,--rev=}'[revision to display]:revision:_hg_labels' \ |
|
726 | '(--rev -r)'{-r+,--rev=}'[revision to display]:revision:_hg_labels' \ | |
727 | ':revision:_hg_labels' |
|
727 | ':revision:_hg_labels' | |
728 | } |
|
728 | } | |
729 |
|
729 | |||
730 | _hg_cmd_merge() { |
|
730 | _hg_cmd_merge() { | |
731 |
_arguments -s - |
|
731 | _arguments -s -S : $_hg_global_opts $_hg_mergetool_opts \ | |
732 | '(--force -f)'{-f,--force}'[force a merge with outstanding changes]' \ |
|
732 | '(--force -f)'{-f,--force}'[force a merge with outstanding changes]' \ | |
733 | '(--rev -r 1)'{-r+,--rev=}'[revision to merge]:revision:_hg_mergerevs' \ |
|
733 | '(--rev -r 1)'{-r+,--rev=}'[revision to merge]:revision:_hg_mergerevs' \ | |
734 | '(--preview -P)'{-P,--preview}'[review revisions to merge (no merge is performed)]' \ |
|
734 | '(--preview -P)'{-P,--preview}'[review revisions to merge (no merge is performed)]' \ | |
@@ -736,7 +736,7 b' typeset -A _hg_cmd_globals' | |||||
736 | } |
|
736 | } | |
737 |
|
737 | |||
738 | _hg_cmd_outgoing() { |
|
738 | _hg_cmd_outgoing() { | |
739 |
_arguments -s - |
|
739 | _arguments -s -S : $_hg_log_opts $_hg_branch_bmark_opts $_hg_remote_opts \ | |
740 | $_hg_subrepos_opts \ |
|
740 | $_hg_subrepos_opts \ | |
741 | '(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \ |
|
741 | '(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \ | |
742 | '*'{-r+,--rev=}'[a specific revision you would like to push]:revision:_hg_revrange' \ |
|
742 | '*'{-r+,--rev=}'[a specific revision you would like to push]:revision:_hg_revrange' \ | |
@@ -745,18 +745,18 b' typeset -A _hg_cmd_globals' | |||||
745 | } |
|
745 | } | |
746 |
|
746 | |||
747 | _hg_cmd_parents() { |
|
747 | _hg_cmd_parents() { | |
748 |
_arguments -s - |
|
748 | _arguments -s -S : $_hg_global_opts $_hg_template_opts \ | |
749 | '(--rev -r)'{-r+,--rev=}'[show parents of the specified rev]:revision:_hg_labels' \ |
|
749 | '(--rev -r)'{-r+,--rev=}'[show parents of the specified rev]:revision:_hg_labels' \ | |
750 | ':last modified file:_hg_files' |
|
750 | ':last modified file:_hg_files' | |
751 | } |
|
751 | } | |
752 |
|
752 | |||
753 | _hg_cmd_paths() { |
|
753 | _hg_cmd_paths() { | |
754 |
_arguments -s - |
|
754 | _arguments -s -S : $_hg_global_opts \ | |
755 | ':path:_hg_paths' |
|
755 | ':path:_hg_paths' | |
756 | } |
|
756 | } | |
757 |
|
757 | |||
758 | _hg_cmd_phase() { |
|
758 | _hg_cmd_phase() { | |
759 |
_arguments -s - |
|
759 | _arguments -s -S : $_hg_global_opts \ | |
760 | '(--public -p)'{-p,--public}'[set changeset phase to public]' \ |
|
760 | '(--public -p)'{-p,--public}'[set changeset phase to public]' \ | |
761 | '(--draft -d)'{-d,--draft}'[set changeset phase to draft]' \ |
|
761 | '(--draft -d)'{-d,--draft}'[set changeset phase to draft]' \ | |
762 | '(--secret -s)'{-s,--secret}'[set changeset phase to secret]' \ |
|
762 | '(--secret -s)'{-s,--secret}'[set changeset phase to secret]' \ | |
@@ -766,7 +766,7 b' typeset -A _hg_cmd_globals' | |||||
766 | } |
|
766 | } | |
767 |
|
767 | |||
768 | _hg_cmd_pull() { |
|
768 | _hg_cmd_pull() { | |
769 |
_arguments -s - |
|
769 | _arguments -s -S : $_hg_global_opts $_hg_branch_bmark_opts $_hg_remote_opts \ | |
770 | '(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \ |
|
770 | '(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \ | |
771 | '(--update -u)'{-u,--update}'[update to new tip if changesets were pulled]' \ |
|
771 | '(--update -u)'{-u,--update}'[update to new tip if changesets were pulled]' \ | |
772 | '(--rev -r)'{-r+,--rev}'[a specific revision up to which you would like to pull]:revision:' \ |
|
772 | '(--rev -r)'{-r+,--rev}'[a specific revision up to which you would like to pull]:revision:' \ | |
@@ -774,7 +774,7 b' typeset -A _hg_cmd_globals' | |||||
774 | } |
|
774 | } | |
775 |
|
775 | |||
776 | _hg_cmd_push() { |
|
776 | _hg_cmd_push() { | |
777 |
_arguments -s - |
|
777 | _arguments -s -S : $_hg_global_opts $_hg_branch_bmark_opts $_hg_remote_opts \ | |
778 | '(--force -f)'{-f,--force}'[force push]' \ |
|
778 | '(--force -f)'{-f,--force}'[force push]' \ | |
779 | '(--rev -r)'{-r+,--rev=}'[a specific revision you would like to push]:revision:_hg_labels' \ |
|
779 | '(--rev -r)'{-r+,--rev=}'[a specific revision you would like to push]:revision:_hg_labels' \ | |
780 | '--new-branch[allow pushing a new branch]' \ |
|
780 | '--new-branch[allow pushing a new branch]' \ | |
@@ -782,14 +782,14 b' typeset -A _hg_cmd_globals' | |||||
782 | } |
|
782 | } | |
783 |
|
783 | |||
784 | _hg_cmd_remove() { |
|
784 | _hg_cmd_remove() { | |
785 |
_arguments -s - |
|
785 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts \ | |
786 | '(--after -A)'{-A,--after}'[record remove that has already occurred]' \ |
|
786 | '(--after -A)'{-A,--after}'[record remove that has already occurred]' \ | |
787 | '(--force -f)'{-f,--force}'[remove file even if modified]' \ |
|
787 | '(--force -f)'{-f,--force}'[remove file even if modified]' \ | |
788 | '*:file:_hg_files' |
|
788 | '*:file:_hg_files' | |
789 | } |
|
789 | } | |
790 |
|
790 | |||
791 | _hg_cmd_rename() { |
|
791 | _hg_cmd_rename() { | |
792 |
_arguments -s - |
|
792 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \ | |
793 | '(--after -A)'{-A,--after}'[record a rename that has already occurred]' \ |
|
793 | '(--after -A)'{-A,--after}'[record a rename that has already occurred]' \ | |
794 | '(--force -f)'{-f,--force}'[forcibly copy over an existing managed file]' \ |
|
794 | '(--force -f)'{-f,--force}'[forcibly copy over an existing managed file]' \ | |
795 | '*:file:_hg_files' |
|
795 | '*:file:_hg_files' | |
@@ -799,7 +799,7 b' typeset -A _hg_cmd_globals' | |||||
799 | local context state line |
|
799 | local context state line | |
800 | typeset -A opt_args |
|
800 | typeset -A opt_args | |
801 |
|
801 | |||
802 |
_arguments -s - |
|
802 | _arguments -s -S : $_hg_global_opts $_hg_mergetool_opts $_hg_pat_opts \ | |
803 | '(--all -a)'{-a,--all}'[select all unresolved files]' \ |
|
803 | '(--all -a)'{-a,--all}'[select all unresolved files]' \ | |
804 | '(--no-status -n)'{-n,--no-status}'[hide status prefix]' \ |
|
804 | '(--no-status -n)'{-n,--no-status}'[hide status prefix]' \ | |
805 | '(--list -l --mark -m --unmark -u)'{-l,--list}'[list state of files needing merge]:*:merged files:->resolve_files' \ |
|
805 | '(--list -l --mark -m --unmark -u)'{-l,--list}'[list state of files needing merge]:*:merged files:->resolve_files' \ | |
@@ -818,7 +818,7 b' typeset -A _hg_cmd_globals' | |||||
818 | local context state line |
|
818 | local context state line | |
819 | typeset -A opt_args |
|
819 | typeset -A opt_args | |
820 |
|
820 | |||
821 |
_arguments -s - |
|
821 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \ | |
822 | '(--all -a :)'{-a,--all}'[revert all changes when no arguments given]' \ |
|
822 | '(--all -a :)'{-a,--all}'[revert all changes when no arguments given]' \ | |
823 | '(--rev -r)'{-r+,--rev=}'[revision to revert to]:revision:_hg_labels' \ |
|
823 | '(--rev -r)'{-r+,--rev=}'[revision to revert to]:revision:_hg_labels' \ | |
824 | '(--no-backup -C)'{-C,--no-backup}'[do not save backup copies of files]' \ |
|
824 | '(--no-backup -C)'{-C,--no-backup}'[do not save backup copies of files]' \ | |
@@ -839,12 +839,12 b' typeset -A _hg_cmd_globals' | |||||
839 | } |
|
839 | } | |
840 |
|
840 | |||
841 | _hg_cmd_rollback() { |
|
841 | _hg_cmd_rollback() { | |
842 |
_arguments -s - |
|
842 | _arguments -s -S : $_hg_global_opts $_hg_dryrun_opts \ | |
843 | '(--force -f)'{-f,--force}'[ignore safety measures]' \ |
|
843 | '(--force -f)'{-f,--force}'[ignore safety measures]' \ | |
844 | } |
|
844 | } | |
845 |
|
845 | |||
846 | _hg_cmd_serve() { |
|
846 | _hg_cmd_serve() { | |
847 |
_arguments -s - |
|
847 | _arguments -s -S : $_hg_global_opts \ | |
848 | '(--accesslog -A)'{-A+,--accesslog=}'[name of access log file]:log file:_files' \ |
|
848 | '(--accesslog -A)'{-A+,--accesslog=}'[name of access log file]:log file:_files' \ | |
849 | '(--errorlog -E)'{-E+,--errorlog=}'[name of error log file]:log file:_files' \ |
|
849 | '(--errorlog -E)'{-E+,--errorlog=}'[name of error log file]:log file:_files' \ | |
850 | '(--daemon -d)'{-d,--daemon}'[run server in background]' \ |
|
850 | '(--daemon -d)'{-d,--daemon}'[run server in background]' \ | |
@@ -863,13 +863,13 b' typeset -A _hg_cmd_globals' | |||||
863 | } |
|
863 | } | |
864 |
|
864 | |||
865 | _hg_cmd_showconfig() { |
|
865 | _hg_cmd_showconfig() { | |
866 |
_arguments -s - |
|
866 | _arguments -s -S : $_hg_global_opts \ | |
867 | '(--untrusted -u)'{-u,--untrusted}'[show untrusted configuration options]' \ |
|
867 | '(--untrusted -u)'{-u,--untrusted}'[show untrusted configuration options]' \ | |
868 | ':config item:_hg_config' |
|
868 | ':config item:_hg_config' | |
869 | } |
|
869 | } | |
870 |
|
870 | |||
871 | _hg_cmd_status() { |
|
871 | _hg_cmd_status() { | |
872 |
_arguments -s - |
|
872 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \ | |
873 | '(--all -A)'{-A,--all}'[show status of all files]' \ |
|
873 | '(--all -A)'{-A,--all}'[show status of all files]' \ | |
874 | '(--modified -m)'{-m,--modified}'[show only modified files]' \ |
|
874 | '(--modified -m)'{-m,--modified}'[show only modified files]' \ | |
875 | '(--added -a)'{-a,--added}'[show only added files]' \ |
|
875 | '(--added -a)'{-a,--added}'[show only added files]' \ | |
@@ -887,12 +887,12 b' typeset -A _hg_cmd_globals' | |||||
887 | } |
|
887 | } | |
888 |
|
888 | |||
889 | _hg_cmd_summary() { |
|
889 | _hg_cmd_summary() { | |
890 |
_arguments -s - |
|
890 | _arguments -s -S : $_hg_global_opts \ | |
891 | '--remote[check for push and pull]' |
|
891 | '--remote[check for push and pull]' | |
892 | } |
|
892 | } | |
893 |
|
893 | |||
894 | _hg_cmd_tag() { |
|
894 | _hg_cmd_tag() { | |
895 |
_arguments -s - |
|
895 | _arguments -s -S : $_hg_global_opts \ | |
896 | '(--local -l)'{-l,--local}'[make the tag local]' \ |
|
896 | '(--local -l)'{-l,--local}'[make the tag local]' \ | |
897 | '(--message -m)'{-m+,--message=}'[message for tag commit log entry]:message:' \ |
|
897 | '(--message -m)'{-m+,--message=}'[message for tag commit log entry]:message:' \ | |
898 | '(--date -d)'{-d+,--date=}'[record datecode as commit date]:date code:' \ |
|
898 | '(--date -d)'{-d+,--date=}'[record datecode as commit date]:date code:' \ | |
@@ -905,18 +905,18 b' typeset -A _hg_cmd_globals' | |||||
905 | } |
|
905 | } | |
906 |
|
906 | |||
907 | _hg_cmd_tip() { |
|
907 | _hg_cmd_tip() { | |
908 |
_arguments -s - |
|
908 | _arguments -s -S : $_hg_global_opts $_hg_gitlike_opts $_hg_template_opts \ | |
909 | '(--patch -p)'{-p,--patch}'[show patch]' |
|
909 | '(--patch -p)'{-p,--patch}'[show patch]' | |
910 | } |
|
910 | } | |
911 |
|
911 | |||
912 | _hg_cmd_unbundle() { |
|
912 | _hg_cmd_unbundle() { | |
913 |
_arguments -s - |
|
913 | _arguments -s -S : $_hg_global_opts \ | |
914 | '(--update -u)'{-u,--update}'[update to new tip if changesets were unbundled]' \ |
|
914 | '(--update -u)'{-u,--update}'[update to new tip if changesets were unbundled]' \ | |
915 | ':files:_files' |
|
915 | ':files:_files' | |
916 | } |
|
916 | } | |
917 |
|
917 | |||
918 | _hg_cmd_update() { |
|
918 | _hg_cmd_update() { | |
919 |
_arguments -s - |
|
919 | _arguments -s -S : $_hg_global_opts \ | |
920 | '(--clean -C)'{-C,--clean}'[overwrite locally modified files]' \ |
|
920 | '(--clean -C)'{-C,--clean}'[overwrite locally modified files]' \ | |
921 | '(--rev -r)'{-r+,--rev=}'[revision]:revision:_hg_labels' \ |
|
921 | '(--rev -r)'{-r+,--rev=}'[revision]:revision:_hg_labels' \ | |
922 | '(--check -c)'{-c,--check}'[update across branches if no uncommitted changes]' \ |
|
922 | '(--check -c)'{-c,--check}'[update across branches if no uncommitted changes]' \ | |
@@ -928,7 +928,7 b' typeset -A _hg_cmd_globals' | |||||
928 |
|
928 | |||
929 | # HGK |
|
929 | # HGK | |
930 | _hg_cmd_view() { |
|
930 | _hg_cmd_view() { | |
931 |
_arguments -s - |
|
931 | _arguments -s -S : $_hg_global_opts \ | |
932 | '(--limit -l)'{-l+,--limit=}'[limit number of changes displayed]:' \ |
|
932 | '(--limit -l)'{-l+,--limit=}'[limit number of changes displayed]:' \ | |
933 | ':revision range:_hg_labels' |
|
933 | ':revision range:_hg_labels' | |
934 | } |
|
934 | } | |
@@ -983,39 +983,39 b' typeset -A _hg_cmd_globals' | |||||
983 | '(--summary -s)'{-s,--summary}'[print first line of patch header]') |
|
983 | '(--summary -s)'{-s,--summary}'[print first line of patch header]') | |
984 |
|
984 | |||
985 | _hg_cmd_qapplied() { |
|
985 | _hg_cmd_qapplied() { | |
986 |
_arguments -s - |
|
986 | _arguments -s -S : $_hg_global_opts $_hg_qseries_opts \ | |
987 | '(--last -1)'{-1,--last}'[show only the preceding applied patch]' \ |
|
987 | '(--last -1)'{-1,--last}'[show only the preceding applied patch]' \ | |
988 | '*:patch:_hg_qapplied' |
|
988 | '*:patch:_hg_qapplied' | |
989 | } |
|
989 | } | |
990 |
|
990 | |||
991 | _hg_cmd_qclone() { |
|
991 | _hg_cmd_qclone() { | |
992 |
_arguments -s - |
|
992 | _arguments -s -S : $_hg_global_opts $_hg_remote_opts $_hg_clone_opts \ | |
993 | '(--patches -p)'{-p+,--patches=}'[location of source patch repository]:' \ |
|
993 | '(--patches -p)'{-p+,--patches=}'[location of source patch repository]:' \ | |
994 | ':source repository:_hg_remote' \ |
|
994 | ':source repository:_hg_remote' \ | |
995 | ':destination:_hg_clone_dest' |
|
995 | ':destination:_hg_clone_dest' | |
996 | } |
|
996 | } | |
997 |
|
997 | |||
998 | _hg_cmd_qdelete() { |
|
998 | _hg_cmd_qdelete() { | |
999 |
_arguments -s - |
|
999 | _arguments -s -S : $_hg_global_opts \ | |
1000 | '(--keep -k)'{-k,--keep}'[keep patch file]' \ |
|
1000 | '(--keep -k)'{-k,--keep}'[keep patch file]' \ | |
1001 | '*'{-r+,--rev=}'[stop managing a revision]:applied patch:_hg_revrange' \ |
|
1001 | '*'{-r+,--rev=}'[stop managing a revision]:applied patch:_hg_revrange' \ | |
1002 | '*:unapplied patch:_hg_qdeletable' |
|
1002 | '*:unapplied patch:_hg_qdeletable' | |
1003 | } |
|
1003 | } | |
1004 |
|
1004 | |||
1005 | _hg_cmd_qdiff() { |
|
1005 | _hg_cmd_qdiff() { | |
1006 |
_arguments -s - |
|
1006 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_diff_opts \ | |
1007 | $_hg_ignore_space_opts \ |
|
1007 | $_hg_ignore_space_opts \ | |
1008 | '*:pattern:_hg_files' |
|
1008 | '*:pattern:_hg_files' | |
1009 | } |
|
1009 | } | |
1010 |
|
1010 | |||
1011 | _hg_cmd_qfinish() { |
|
1011 | _hg_cmd_qfinish() { | |
1012 |
_arguments -s - |
|
1012 | _arguments -s -S : $_hg_global_opts \ | |
1013 | '(--applied -a)'{-a,--applied}'[finish all applied patches]' \ |
|
1013 | '(--applied -a)'{-a,--applied}'[finish all applied patches]' \ | |
1014 | '*:patch:_hg_qapplied' |
|
1014 | '*:patch:_hg_qapplied' | |
1015 | } |
|
1015 | } | |
1016 |
|
1016 | |||
1017 | _hg_cmd_qfold() { |
|
1017 | _hg_cmd_qfold() { | |
1018 |
_arguments -s - |
|
1018 | _arguments -s -S : $_hg_global_opts $_h_commit_opts \ | |
1019 | '(--keep,-k)'{-k,--keep}'[keep folded patch files]' \ |
|
1019 | '(--keep,-k)'{-k,--keep}'[keep folded patch files]' \ | |
1020 | '(--force -f)'{-f,--force}'[overwrite any local changes]' \ |
|
1020 | '(--force -f)'{-f,--force}'[overwrite any local changes]' \ | |
1021 | '--no-backup[do not save backup copies of files]' \ |
|
1021 | '--no-backup[do not save backup copies of files]' \ | |
@@ -1023,14 +1023,14 b' typeset -A _hg_cmd_globals' | |||||
1023 | } |
|
1023 | } | |
1024 |
|
1024 | |||
1025 | _hg_cmd_qgoto() { |
|
1025 | _hg_cmd_qgoto() { | |
1026 |
_arguments -s - |
|
1026 | _arguments -s -S : $_hg_global_opts \ | |
1027 | '(--force -f)'{-f,--force}'[overwrite any local changes]' \ |
|
1027 | '(--force -f)'{-f,--force}'[overwrite any local changes]' \ | |
1028 | '--keep-changes[tolerate non-conflicting local changes]' \ |
|
1028 | '--keep-changes[tolerate non-conflicting local changes]' \ | |
1029 | ':patch:_hg_qseries' |
|
1029 | ':patch:_hg_qseries' | |
1030 | } |
|
1030 | } | |
1031 |
|
1031 | |||
1032 | _hg_cmd_qguard() { |
|
1032 | _hg_cmd_qguard() { | |
1033 |
_arguments -s - |
|
1033 | _arguments -s -S : $_hg_global_opts \ | |
1034 | '(--list -l)'{-l,--list}'[list all patches and guards]' \ |
|
1034 | '(--list -l)'{-l,--list}'[list all patches and guards]' \ | |
1035 | '(--none -n)'{-n,--none}'[drop all guards]' \ |
|
1035 | '(--none -n)'{-n,--none}'[drop all guards]' \ | |
1036 | ':patch:_hg_qseries' \ |
|
1036 | ':patch:_hg_qseries' \ | |
@@ -1038,12 +1038,12 b' typeset -A _hg_cmd_globals' | |||||
1038 | } |
|
1038 | } | |
1039 |
|
1039 | |||
1040 | _hg_cmd_qheader() { |
|
1040 | _hg_cmd_qheader() { | |
1041 |
_arguments -s - |
|
1041 | _arguments -s -S : $_hg_global_opts \ | |
1042 | ':patch:_hg_qseries' |
|
1042 | ':patch:_hg_qseries' | |
1043 | } |
|
1043 | } | |
1044 |
|
1044 | |||
1045 | _hg_cmd_qimport() { |
|
1045 | _hg_cmd_qimport() { | |
1046 |
_arguments -s - |
|
1046 | _arguments -s -S : $_hg_global_opts $_hg_gitlike_opts \ | |
1047 | '(--existing -e)'{-e,--existing}'[import file in patch dir]' \ |
|
1047 | '(--existing -e)'{-e,--existing}'[import file in patch dir]' \ | |
1048 | '(--name -n 2)'{-n+,--name}'[patch file name]:name:' \ |
|
1048 | '(--name -n 2)'{-n+,--name}'[patch file name]:name:' \ | |
1049 | '(--force -f)'{-f,--force}'[overwrite existing files]' \ |
|
1049 | '(--force -f)'{-f,--force}'[overwrite existing files]' \ | |
@@ -1053,16 +1053,16 b' typeset -A _hg_cmd_globals' | |||||
1053 | } |
|
1053 | } | |
1054 |
|
1054 | |||
1055 | _hg_cmd_qnew() { |
|
1055 | _hg_cmd_qnew() { | |
1056 |
_arguments -s - |
|
1056 | _arguments -s -S : $_hg_global_opts $_hg_commit_opts $_hg_date_user_opts $_hg_gitlike_opts \ | |
1057 | ':patch:' |
|
1057 | ':patch:' | |
1058 | } |
|
1058 | } | |
1059 |
|
1059 | |||
1060 | _hg_cmd_qnext() { |
|
1060 | _hg_cmd_qnext() { | |
1061 |
_arguments -s - |
|
1061 | _arguments -s -S : $_hg_global_opts $_hg_qseries_opts | |
1062 | } |
|
1062 | } | |
1063 |
|
1063 | |||
1064 | _hg_cmd_qpop() { |
|
1064 | _hg_cmd_qpop() { | |
1065 |
_arguments -s - |
|
1065 | _arguments -s -S : $_hg_global_opts \ | |
1066 | '(--all -a :)'{-a,--all}'[pop all patches]' \ |
|
1066 | '(--all -a :)'{-a,--all}'[pop all patches]' \ | |
1067 | '(--force -f)'{-f,--force}'[forget any local changes]' \ |
|
1067 | '(--force -f)'{-f,--force}'[forget any local changes]' \ | |
1068 | '--keep-changes[tolerate non-conflicting local changes]' \ |
|
1068 | '--keep-changes[tolerate non-conflicting local changes]' \ | |
@@ -1071,11 +1071,11 b' typeset -A _hg_cmd_globals' | |||||
1071 | } |
|
1071 | } | |
1072 |
|
1072 | |||
1073 | _hg_cmd_qprev() { |
|
1073 | _hg_cmd_qprev() { | |
1074 |
_arguments -s - |
|
1074 | _arguments -s -S : $_hg_global_opts $_hg_qseries_opts | |
1075 | } |
|
1075 | } | |
1076 |
|
1076 | |||
1077 | _hg_cmd_qpush() { |
|
1077 | _hg_cmd_qpush() { | |
1078 |
_arguments -s - |
|
1078 | _arguments -s -S : $_hg_global_opts \ | |
1079 | '(--all -a :)'{-a,--all}'[apply all patches]' \ |
|
1079 | '(--all -a :)'{-a,--all}'[apply all patches]' \ | |
1080 | '(--list -l)'{-l,--list}'[list patch name in commit text]' \ |
|
1080 | '(--list -l)'{-l,--list}'[list patch name in commit text]' \ | |
1081 | '(--force -f)'{-f,--force}'[apply if the patch has rejects]' \ |
|
1081 | '(--force -f)'{-f,--force}'[apply if the patch has rejects]' \ | |
@@ -1087,19 +1087,19 b' typeset -A _hg_cmd_globals' | |||||
1087 | } |
|
1087 | } | |
1088 |
|
1088 | |||
1089 | _hg_cmd_qrefresh() { |
|
1089 | _hg_cmd_qrefresh() { | |
1090 |
_arguments -s - |
|
1090 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_commit_opts $_hg_gitlike_opts \ | |
1091 | '(--short -s)'{-s,--short}'[short refresh]' \ |
|
1091 | '(--short -s)'{-s,--short}'[short refresh]' \ | |
1092 | '*:files:_hg_files' |
|
1092 | '*:files:_hg_files' | |
1093 | } |
|
1093 | } | |
1094 |
|
1094 | |||
1095 | _hg_cmd_qrename() { |
|
1095 | _hg_cmd_qrename() { | |
1096 |
_arguments -s - |
|
1096 | _arguments -s -S : $_hg_global_opts \ | |
1097 | ':patch:_hg_qunapplied' \ |
|
1097 | ':patch:_hg_qunapplied' \ | |
1098 | ':destination:' |
|
1098 | ':destination:' | |
1099 | } |
|
1099 | } | |
1100 |
|
1100 | |||
1101 | _hg_cmd_qselect() { |
|
1101 | _hg_cmd_qselect() { | |
1102 |
_arguments -s - |
|
1102 | _arguments -s -S : $_hg_global_opts \ | |
1103 | '(--none -n :)'{-n,--none}'[disable all guards]' \ |
|
1103 | '(--none -n :)'{-n,--none}'[disable all guards]' \ | |
1104 | '(--series -s :)'{-s,--series}'[list all guards in series file]' \ |
|
1104 | '(--series -s :)'{-s,--series}'[list all guards in series file]' \ | |
1105 | '--pop[pop to before first guarded applied patch]' \ |
|
1105 | '--pop[pop to before first guarded applied patch]' \ | |
@@ -1108,21 +1108,21 b' typeset -A _hg_cmd_globals' | |||||
1108 | } |
|
1108 | } | |
1109 |
|
1109 | |||
1110 | _hg_cmd_qseries() { |
|
1110 | _hg_cmd_qseries() { | |
1111 |
_arguments -s - |
|
1111 | _arguments -s -S : $_hg_global_opts $_hg_qseries_opts \ | |
1112 | '(--missing -m)'{-m,--missing}'[print patches not in series]' |
|
1112 | '(--missing -m)'{-m,--missing}'[print patches not in series]' | |
1113 | } |
|
1113 | } | |
1114 |
|
1114 | |||
1115 | _hg_cmd_qunapplied() { |
|
1115 | _hg_cmd_qunapplied() { | |
1116 |
_arguments -s - |
|
1116 | _arguments -s -S : $_hg_global_opts $_hg_qseries_opts \ | |
1117 | '(--first -1)'{-1,--first}'[show only the first patch]' |
|
1117 | '(--first -1)'{-1,--first}'[show only the first patch]' | |
1118 | } |
|
1118 | } | |
1119 |
|
1119 | |||
1120 | _hg_cmd_qtop() { |
|
1120 | _hg_cmd_qtop() { | |
1121 |
_arguments -s - |
|
1121 | _arguments -s -S : $_hg_global_opts $_hg_qseries_opts | |
1122 | } |
|
1122 | } | |
1123 |
|
1123 | |||
1124 | _hg_cmd_strip() { |
|
1124 | _hg_cmd_strip() { | |
1125 |
_arguments -s - |
|
1125 | _arguments -s -S : $_hg_global_opts \ | |
1126 | '(--force -f)'{-f,--force}'[force removal, discard uncommitted changes, no backup]' \ |
|
1126 | '(--force -f)'{-f,--force}'[force removal, discard uncommitted changes, no backup]' \ | |
1127 | '(--no-backup -n)'{-n,--no-backup}'[no backups]' \ |
|
1127 | '(--no-backup -n)'{-n,--no-backup}'[no backups]' \ | |
1128 | '(--keep -k)'{-k,--keep}'[do not modify working copy during strip]' \ |
|
1128 | '(--keep -k)'{-k,--keep}'[do not modify working copy during strip]' \ | |
@@ -1133,7 +1133,7 b' typeset -A _hg_cmd_globals' | |||||
1133 |
|
1133 | |||
1134 | # Patchbomb |
|
1134 | # Patchbomb | |
1135 | _hg_cmd_email() { |
|
1135 | _hg_cmd_email() { | |
1136 |
_arguments -s - |
|
1136 | _arguments -s -S : $_hg_global_opts $_hg_remote_opts $_hg_gitlike_opts \ | |
1137 | '--plain[omit hg patch header]' \ |
|
1137 | '--plain[omit hg patch header]' \ | |
1138 | '--body[send patches as inline message text (default)]' \ |
|
1138 | '--body[send patches as inline message text (default)]' \ | |
1139 | '(--outgoing -o)'{-o,--outgoing}'[send changes not found in the target repository]' \ |
|
1139 | '(--outgoing -o)'{-o,--outgoing}'[send changes not found in the target repository]' \ | |
@@ -1163,7 +1163,7 b' typeset -A _hg_cmd_globals' | |||||
1163 |
|
1163 | |||
1164 | # Rebase |
|
1164 | # Rebase | |
1165 | _hg_cmd_rebase() { |
|
1165 | _hg_cmd_rebase() { | |
1166 |
_arguments -s - |
|
1166 | _arguments -s -S : $_hg_global_opts $_hg_commit_opts $_hg_mergetool_opts \ | |
1167 | '*'{-r+,--rev=}'[rebase these revisions]:revision:_hg_revrange' \ |
|
1167 | '*'{-r+,--rev=}'[rebase these revisions]:revision:_hg_revrange' \ | |
1168 | '(--source -s)'{-s+,--source=}'[rebase from the specified changeset]:revision:_hg_labels' \ |
|
1168 | '(--source -s)'{-s+,--source=}'[rebase from the specified changeset]:revision:_hg_labels' \ | |
1169 | '(--base -b)'{-b+,--base=}'[rebase from the base of the specified changeset]:revision:_hg_labels' \ |
|
1169 | '(--base -b)'{-b+,--base=}'[rebase from the base of the specified changeset]:revision:_hg_labels' \ | |
@@ -1177,7 +1177,7 b' typeset -A _hg_cmd_globals' | |||||
1177 |
|
1177 | |||
1178 | # Record |
|
1178 | # Record | |
1179 | _hg_cmd_record() { |
|
1179 | _hg_cmd_record() { | |
1180 |
_arguments -s - |
|
1180 | _arguments -s -S : $_hg_global_opts $_hg_commit_opts $_hg_pat_opts \ | |
1181 | $_hg_ignore_space_opts $_hg_subrepos_opts \ |
|
1181 | $_hg_ignore_space_opts $_hg_subrepos_opts \ | |
1182 | '(--addremove -A)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' \ |
|
1182 | '(--addremove -A)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' \ | |
1183 | '--close-branch[mark a branch as closed, hiding it from the branch list]' \ |
|
1183 | '--close-branch[mark a branch as closed, hiding it from the branch list]' \ | |
@@ -1187,13 +1187,13 b' typeset -A _hg_cmd_globals' | |||||
1187 | } |
|
1187 | } | |
1188 |
|
1188 | |||
1189 | _hg_cmd_qrecord() { |
|
1189 | _hg_cmd_qrecord() { | |
1190 |
_arguments -s - |
|
1190 | _arguments -s -S : $_hg_global_opts $_hg_commit_opts $_hg_date_user_opts $_hg_gitlike_opts \ | |
1191 | $_hg_pat_opts $_hg_ignore_space_opts $_hg_subrepos_opts |
|
1191 | $_hg_pat_opts $_hg_ignore_space_opts $_hg_subrepos_opts | |
1192 | } |
|
1192 | } | |
1193 |
|
1193 | |||
1194 | # Convert |
|
1194 | # Convert | |
1195 | _hg_cmd_convert() { |
|
1195 | _hg_cmd_convert() { | |
1196 |
_arguments -s - |
|
1196 | _arguments -s -S : $_hg_global_opts \ | |
1197 | '(--source-type -s)'{-s,--source-type}'[source repository type]' \ |
|
1197 | '(--source-type -s)'{-s,--source-type}'[source repository type]' \ | |
1198 | '(--dest-type -d)'{-d,--dest-type}'[destination repository type]' \ |
|
1198 | '(--dest-type -d)'{-d,--dest-type}'[destination repository type]' \ | |
1199 | '(--rev -r)'{-r+,--rev=}'[import up to target revision]:revision:' \ |
|
1199 | '(--rev -r)'{-r+,--rev=}'[import up to target revision]:revision:' \ | |
@@ -1213,7 +1213,7 b' typeset -A _hg_cmd_globals' | |||||
1213 |
|
1213 | |||
1214 | # Purge |
|
1214 | # Purge | |
1215 | _hg_cmd_purge() { |
|
1215 | _hg_cmd_purge() { | |
1216 |
_arguments -s - |
|
1216 | _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \ | |
1217 | '(--abort-on-err -a)'{-a,--abort-on-err}'[abort if an error occurs]' \ |
|
1217 | '(--abort-on-err -a)'{-a,--abort-on-err}'[abort if an error occurs]' \ | |
1218 | '--all[purge ignored files too]' \ |
|
1218 | '--all[purge ignored files too]' \ | |
1219 | '(--print -p)'{-p,--print}'[print filenames instead of deleting them]' \ |
|
1219 | '(--print -p)'{-p,--print}'[print filenames instead of deleting them]' \ |
General Comments 0
You need to be logged in to leave comments.
Login now