contrib/zsh_completion
changeset 17400 3ae4da1c362a
parent 17399 dbff625679a1
child 17401 a826b1d7f5b2
equal deleted inserted replaced
17399:dbff625679a1 17400:3ae4da1c362a
  1117   '--keepbranches[keep original branch name]' \
  1117   '--keepbranches[keep original branch name]' \
  1118   '(--continue -c)'{-c,--continue}'[continue an interrupted rebase]' \
  1118   '(--continue -c)'{-c,--continue}'[continue an interrupted rebase]' \
  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 "$@"