# HG changeset patch # User Sean Farley # Date 2013-11-22 19:58:41 # Node ID da8fb88bd757f9e89d02c5a8a5f2391034c20294 # Parent 56108ee1edb620e5d61b89900529e8aa5cea447d bash_completion: add completion for deleting a shelve diff --git a/contrib/bash_completion b/contrib/bash_completion --- a/contrib/bash_completion +++ b/contrib/bash_completion @@ -604,7 +604,11 @@ complete -o bashdefault -o default -o no _hg_cmd_shelve() { - _hg_status "mard" + if [[ "$prev" = @(-d|--delete) ]]; then + _hg_shelves + else + _hg_status "mard" + fi } _hg_cmd_unshelve()