##// END OF EJS Templates
zsh completion: update mq commands completion...
Nikolaj Sjujskij -
r17402:f6851cd9 default
parent child Browse files
Show More
@@ -987,7 +987,16 b' typeset -A _hg_cmd_globals'
987 987 '(--summary -s)'{-s,--summary}'[print first line of patch header]')
988 988
989 989 _hg_cmd_qapplied() {
990 _arguments -s -w : $_hg_global_opts $_hg_qseries_opts
990 _arguments -s -w : $_hg_global_opts $_hg_qseries_opts \
991 '(--last -1)'{-1,--last}'[show only the preceding applied patch]' \
992 '*:patch:_hg_qapplied'
993 }
994
995 _hg_cmd_qclone() {
996 _arguments -s -w : $_hg_global_opts $_hg_remote_opts $_hg_clone_opts \
997 '(--patches -p)'{-p+,--patches}'[location of source patch repository]' \
998 ':source repository:_hg_remote' \
999 ':destination:_hg_clone_dest'
991 1000 }
992 1001
993 1002 _hg_cmd_qdelete() {
@@ -1012,12 +1021,15 b' typeset -A _hg_cmd_globals'
1012 1021 _hg_cmd_qfold() {
1013 1022 _arguments -s -w : $_hg_global_opts $_h_commit_opts \
1014 1023 '(--keep,-k)'{-k,--keep}'[keep folded patch files]' \
1024 '(--force -f)'{-f,--force}'[overwrite any local changes]' \
1025 '--no-backup[do not save backup copies of files]' \
1015 1026 '*:unapplied patch:_hg_qunapplied'
1016 1027 }
1017 1028
1018 1029 _hg_cmd_qgoto() {
1019 1030 _arguments -s -w : $_hg_global_opts \
1020 1031 '(--force -f)'{-f,--force}'[overwrite any local changes]' \
1032 '--keep-changes[tolerate non-conflicting local changes]' \
1021 1033 ':patch:_hg_qseries'
1022 1034 }
1023 1035
@@ -1040,13 +1052,12 b' typeset -A _hg_cmd_globals'
1040 1052 '(--name -n 2)'{-n+,--name}'[patch file name]:name:' \
1041 1053 '(--force -f)'{-f,--force}'[overwrite existing files]' \
1042 1054 '*'{-r+,--rev}'[place existing revisions under mq control]:revision:_hg_revrange' \
1055 '(--push -P)'{-P,--push}'[qpush after importing]' \
1043 1056 '*:patch:_files'
1044 1057 }
1045 1058
1046 1059 _hg_cmd_qnew() {
1047 _arguments -s -w : $_hg_global_opts $_hg_commit_opts \
1048 $_hg_date_user_opts $_hg_gitlike_opts \
1049 '(--force -f)'{-f,--force}'[import uncommitted changes into patch]' \
1060 _arguments -s -w : $_hg_global_opts $_hg_commit_opts $_hg_date_user_opts $_hg_gitlike_opts \
1050 1061 ':patch:'
1051 1062 }
1052 1063
@@ -1057,8 +1068,9 b' typeset -A _hg_cmd_globals'
1057 1068 _hg_cmd_qpop() {
1058 1069 _arguments -s -w : $_hg_global_opts \
1059 1070 '(--all -a :)'{-a,--all}'[pop all patches]' \
1060 '(--name -n)'{-n+,--name}'[queue name to pop]:' \
1061 1071 '(--force -f)'{-f,--force}'[forget any local changes]' \
1072 '--keep-changes[tolerate non-conflicting local changes]' \
1073 '--no-backup[do not save backup copies of files]' \
1062 1074 ':patch:_hg_qapplied'
1063 1075 }
1064 1076
@@ -1070,24 +1082,23 b' typeset -A _hg_cmd_globals'
1070 1082 _arguments -s -w : $_hg_global_opts \
1071 1083 '(--all -a :)'{-a,--all}'[apply all patches]' \
1072 1084 '(--list -l)'{-l,--list}'[list patch name in commit text]' \
1073 '(--merge -m)'{-m+,--merge}'[merge from another queue]:' \
1074 '(--name -n)'{-n+,--name}'[merge queue name]:' \
1075 1085 '(--force -f)'{-f,--force}'[apply if the patch has rejects]' \
1076 1086 '(--exact -e)'{-e,--exact}'[apply the target patch to its recorded parent]' \
1077 1087 '--move[reorder patch series and apply only the patch]' \
1088 '--keep-changes[tolerate non-conflicting local changes]' \
1089 '--no-backup[do not save backup copies of files]' \
1078 1090 ':patch:_hg_qunapplied'
1079 1091 }
1080 1092
1081 1093 _hg_cmd_qrefresh() {
1082 1094 _arguments -s -w : $_hg_global_opts $_hg_pat_opts $_hg_commit_opts $_hg_gitlike_opts \
1083 '(--git -g)'{-g,--git}'[use git extended diff format]' \
1084 1095 '(--short -s)'{-s,--short}'[short refresh]' \
1085 1096 '*:files:_hg_files'
1086 1097 }
1087 1098
1088 1099 _hg_cmd_qrename() {
1089 1100 _arguments -s -w : $_hg_global_opts \
1090 ':patch:_hg_qseries' \
1101 ':patch:_hg_qunapplied' \
1091 1102 ':destination:'
1092 1103 }
1093 1104
@@ -1106,7 +1117,8 b' typeset -A _hg_cmd_globals'
1106 1117 }
1107 1118
1108 1119 _hg_cmd_qunapplied() {
1109 _arguments -s -w : $_hg_global_opts $_hg_qseries_opts
1120 _arguments -s -w : $_hg_global_opts $_hg_qseries_opts \
1121 '(--first -1)'{-1,--first}'[show only the first patch]'
1110 1122 }
1111 1123
1112 1124 _hg_cmd_qtop() {
@@ -1115,9 +1127,11 b' typeset -A _hg_cmd_globals'
1115 1127
1116 1128 _hg_cmd_strip() {
1117 1129 _arguments -s -w : $_hg_global_opts \
1118 '(--force -f)'{-f,--force}'[force multi-head removal]' \
1119 '(--backup -b)'{-b,--backup}'[bundle unrelated changesets]' \
1120 '(--nobackup -n)'{-n,--nobackup}'[no backups]' \
1130 '(--force -f)'{-f,--force}'[force removal, discard uncommitted changes, no backup]' \
1131 '(--no-backup -n)'{-n,--no-backup}'[no backups]' \
1132 '(--keep -k)'{-k,--keep}'[do not modify working copy during strip]' \
1133 '(--bookmark -B)'{-B+,--bookmark}'[remove revs only reachable from given bookmark]:bookmark:_hg_bookmarks' \
1134 '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_labels' \
1121 1135 ':revision:_hg_labels'
1122 1136 }
1123 1137
General Comments 0
You need to be logged in to leave comments. Login now