##// END OF EJS Templates
zsh completion: add support for convert, graphlog, purge, record extensions
Nikolaj Sjujskij -
r17400:3ae4da1c default
parent child Browse files
Show More
@@ -1119,4 +1119,49 b' typeset -A _hg_cmd_globals'
1119 '(--abort -a)'{-a,--abort}'[abort an interrupted rebase]' \
1119 '(--abort -a)'{-a,--abort}'[abort an interrupted rebase]' \
1120 }
1120 }
1121
1121
1122 # Record
1123 _hg_cmd_record() {
1124 _arguments -s -w : $_hg_global_opts $_hg_commit_opts $_hg_pat_opts \
1125 $_hg_ignore_space_opts $_hg_subrepos_opts \
1126 '(--addremove -A)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' \
1127 '--close-branch[mark a branch as closed, hiding it from the branch list]' \
1128 '--amend[amend the parent of the working dir]' \
1129 '(--date -d)'{-d+,--date}'[record the specified date as commit date]:date:' \
1130 '(--user -u)'{-u+,--user}'[record the specified user as committer]:user:'
1131 }
1132
1133 _hg_cmd_qrecord() {
1134 _arguments -s -w : $_hg_global_opts $_hg_commit_opts $_hg_date_user_opts $_hg_gitlike_opts \
1135 $_hg_pat_opts $_hg_ignore_space_opts $_hg_subrepos_opts
1136 }
1137
1138 # Convert
1139 _hg_cmd_convert() {
1140 _arguments -s -w : $_hg_global_opts \
1141 '(--source-type -s)'{-s,--source-type}'[source repository type]' \
1142 '(--dest-type -d)'{-d,--dest-type}'[destination repository type]' \
1143 '(--rev -r)'{-r+,--rev}'[import up to target revision]:revision:' \
1144 '(--authormap -A)'{-A+,--authormap}'[remap usernames using this file]:file:_files' \
1145 '--filemap[remap file names using contents of file]:file:_files' \
1146 '--splicemap[splice synthesized history into place]:file:_files' \
1147 '--branchmap[change branch names while converting]:file:_files' \
1148 '--branchsort[try to sort changesets by branches]' \
1149 '--datesort[try to sort changesets by date]' \
1150 '--sourcesort[preserve source changesets order]'
1151 }
1152
1153 # Graphlog
1154 _hg_cmd_glog() {
1155 _hg_cmd_log $@
1156 }
1157
1158 # Purge
1159 _hg_cmd_purge() {
1160 _arguments -s -w : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \
1161 '(--abort-on-err -a)'{-a,--abort-on-err}'[abort if an error occurs]' \
1162 '--all[purge ignored files too]' \
1163 '(--print -p)'{-p,--print}'[print filenames instead of deleting them]' \
1164 '(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs (implies -p/--print)]'
1165 }
1166
1122 _hg "$@"
1167 _hg "$@"
General Comments 0
You need to be logged in to leave comments. Login now