contrib/bash_completion
changeset 21719 28ecdf3fa1db
parent 20135 e39bd4b7be78
child 23762 0390cc327dd5
equal deleted inserted replaced
21718:bc773e9505e3 21719:28ecdf3fa1db
   627     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$shelves' -- "$cur"))
   627     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$shelves' -- "$cur"))
   628 }
   628 }
   629 
   629 
   630 _hg_cmd_shelve()
   630 _hg_cmd_shelve()
   631 {
   631 {
   632     if [[ "$prev" = @(-d|--delete) ]]; then
   632     if [[ "$prev" = @(-d|--delete|-l|--list) ]]; then
   633         _hg_shelves
   633         _hg_shelves
   634     else
   634     else
   635         _hg_status "mard"
   635         _hg_status "mard"
   636     fi
   636     fi
   637 }
   637 }