contrib/bash_completion
changeset 20128 56108ee1edb6
parent 20127 6b771bcd1a62
child 20129 da8fb88bd757
equal deleted inserted replaced
20127:6b771bcd1a62 20128:56108ee1edb6
   595 }
   595 }
   596 
   596 
   597 # shelve
   597 # shelve
   598 _hg_shelves()
   598 _hg_shelves()
   599 {
   599 {
   600     local shelves="$(_hg_cmd unshelve -l .)"
   600     local shelves="$(_hg_cmd shelve -ql)"
   601     local IFS=$'\n'
   601     local IFS=$'\n'
   602     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$shelves' -- "$cur"))
   602     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$shelves' -- "$cur"))
   603 }
   603 }
   604 
   604 
   605 _hg_cmd_shelve()
   605 _hg_cmd_shelve()