From patchwork Mon Nov 25 17:42:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [06, of, 11, V3] bash_completion: remove restriction on bookmark completion From: Sean Farley X-Patchwork-Id: 3126 Message-Id: <3f7cf7215d5fadb5fa91.1385401339@dyn-160-39-236-172.dyn.columbia.edu> To: mercurial-devel@selenic.com Date: Mon, 25 Nov 2013 12:42:19 -0500 # HG changeset patch # User Sean Farley # Date 1384992804 18000 # Wed Nov 20 19:13:24 2013 -0500 # Node ID 3f7cf7215d5fadb5fa9107398aa11b99f8217339 # Parent df48c66a68fc2ac8705d210173202682909a3102 bash_completion: remove restriction on bookmark completion Previously, we only completed a bookmark when deleting or renaming a bookmark. Since we can now move a bookmark forward, we drop this restriction. diff --git a/contrib/bash_completion b/contrib/bash_completion --- a/contrib/bash_completion +++ b/contrib/bash_completion @@ -316,14 +316,12 @@ # Completion for commands provided by extensions # bookmarks _hg_cmd_bookmarks() { - if [[ "$prev" = @(-d|--delete|-m|--rename) ]]; then - _hg_bookmarks - return - fi + _hg_bookmarks + return } # mq _hg_ext_mq_patchlist() {