From patchwork Mon Nov 25 17:42:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [08,of,11,V3] bash_completion: add completion for deleting a shelve From: Sean Farley X-Patchwork-Id: 3128 Message-Id: To: mercurial-devel@selenic.com Date: Mon, 25 Nov 2013 12:42:21 -0500 # HG changeset patch # User Sean Farley # Date 1385150321 18000 # Fri Nov 22 14:58:41 2013 -0500 # Node ID a7932effc3c2c76dfc37bf70593b77b86bbaa3b5 # Parent 6644dbf7724e54ec0fe8d91f653942510e5f61d4 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 @@ -602,11 +602,15 @@ COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$shelves' -- "$cur")) } _hg_cmd_shelve() { - _hg_status "mard" + if [[ "$prev" = @(-d|--delete) ]]; then + _hg_shelves + else + _hg_status "mard" + fi } _hg_cmd_unshelve() { _hg_shelves