Patchwork [6,of,8,V2] bash_completion: remove restriction on bookmark completion

login
register
mail settings
Submitter Sean Farley
Date Nov. 22, 2013, 8:26 p.m.
Message ID <e4e131f0d64d7d9c9a27.1385151966@laptop.local>
Download mbox | patch
Permalink /patch/3097/
State Superseded
Commit 6b771bcd1a6203710fb832b99f1257f11f93de80
Headers show

Comments

Sean Farley - Nov. 22, 2013, 8:26 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1384992804 18000
#      Wed Nov 20 19:13:24 2013 -0500
# Node ID e4e131f0d64d7d9c9a27bc4994d172ee1f5d67de
# Parent  8fcc057c3e5fe7973b41e009131ec500581b96b6
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.

Patch

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()
 {