contrib/zsh_completion
changeset 39394 09f23b4f1be3
parent 39377 b4e7e1f09c09
child 39443 2815e0db4c54
equal deleted inserted replaced
39393:56469d475341 39394:09f23b4f1be3
   622   '--root=[produce diffs relative to subdirectory]:directory:_files -/' \
   622   '--root=[produce diffs relative to subdirectory]:directory:_files -/' \
   623   '*:file:->diff_files' && ret=0
   623   '*:file:->diff_files' && ret=0
   624 
   624 
   625   if [[ $state == 'diff_files' ]]
   625   if [[ $state == 'diff_files' ]]
   626   then
   626   then
   627     if [[ -n $opt_args[-r] ]]
   627     if [[ -n ${opt_args[(I)-r|--rev]} ]]
   628     then
   628     then
   629       _hg_files && ret=0
   629       _hg_files && ret=0
   630     else
   630     else
   631       _hg_committable && ret=0
   631       _hg_committable && ret=0
   632     fi
   632     fi
   868   '(--interactive -i)'{-i,--interactive}'[interactively select the changes]' \
   868   '(--interactive -i)'{-i,--interactive}'[interactively select the changes]' \
   869   '*:file:->revert_files' && ret=0
   869   '*:file:->revert_files' && ret=0
   870 
   870 
   871   if [[ $state == 'revert_files' ]]
   871   if [[ $state == 'revert_files' ]]
   872   then
   872   then
   873     if [[ -n $opt_args[-r] ]]
   873     if [[ -n ${opt_args[(I)-r|--rev]} ]]
   874     then
   874     then
   875       _hg_files && ret=0
   875       _hg_files && ret=0
   876     else
   876     else
   877       typeset -a status_files
   877       typeset -a status_files
   878       _hg_status mard
   878       _hg_status mard