contrib/zsh_completion
changeset 8985 a04c1ab282fe
parent 8984 67389a94825a
child 8986 7f349588665f
equal deleted inserted replaced
8984:67389a94825a 8985:a04c1ab282fe
   422     '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_tags' \
   422     '(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_tags' \
   423     '(--message -m)'{-m+,--message}'[use <text> as commit message]:text:' \
   423     '(--message -m)'{-m+,--message}'[use <text> as commit message]:text:' \
   424     '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files -g \*.txt'
   424     '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files -g \*.txt'
   425 }
   425 }
   426 
   426 
       
   427 _hg_cmd_branch() {
       
   428   _arguments -s -w : $_hg_global_opts \
       
   429   '(--force -f)'{-f,--force}'[set branch name even if it shadows an existing branch]' \
       
   430   '(--clean -C)'{-C,--clean}'[reset branch name to parent branch name]'
       
   431 }
       
   432 
   427 _hg_cmd_branches() {
   433 _hg_cmd_branches() {
   428   _arguments -s -w : $_hg_global_opts \
   434   _arguments -s -w : $_hg_global_opts \
   429   '(--active -a)'{-a,--active}'[show only branches that have unmerge heads]'
   435   '(--active -a)'{-a,--active}'[show only branches that have unmerge heads]'
   430 }
   436 }
   431 
   437