contrib/zsh_completion
changeset 3535 3dbec3f6d3a2
parent 3534 811e6c95485c
child 3536 ef80b13df85a
equal deleted inserted replaced
3534:811e6c95485c 3535:3dbec3f6d3a2
   504 }
   504 }
   505 
   505 
   506 _hg_qapplied() {
   506 _hg_qapplied() {
   507   typeset -a patches
   507   typeset -a patches
   508   patches=($(_hg_cmd qapplied))
   508   patches=($(_hg_cmd qapplied))
   509   (( $#patches )) && _describe -t hg-applied-patches 'applied patches' patches
   509   if (( $#patches ))
       
   510   then
       
   511     patches+=(qbase qtip)
       
   512     _describe -t hg-applied-patches 'applied patches' patches
       
   513   fi
   510 }
   514 }
   511 
   515 
   512 _hg_qunapplied() {
   516 _hg_qunapplied() {
   513   typeset -a patches
   517   typeset -a patches
   514   patches=($(_hg_cmd qunapplied))
   518   patches=($(_hg_cmd qunapplied))