comparison contrib/bash_completion @ 20129:da8fb88bd757

bash_completion: add completion for deleting a shelve
author Sean Farley <sean.michael.farley@gmail.com>
date Fri, 22 Nov 2013 14:58:41 -0500
parents 56108ee1edb6
children 7c78c7eff119
comparison
equal deleted inserted replaced
20128:56108ee1edb6 20129:da8fb88bd757
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()
606 { 606 {
607 _hg_status "mard" 607 if [[ "$prev" = @(-d|--delete) ]]; then
608 _hg_shelves
609 else
610 _hg_status "mard"
611 fi
608 } 612 }
609 613
610 _hg_cmd_unshelve() 614 _hg_cmd_unshelve()
611 { 615 {
612 _hg_shelves 616 _hg_shelves