[PATCH 06 of 15 V5] bash_completion: remove restriction on bookmark completion

Sean Farley sean.michael.farley at gmail.com
Tue Nov 26 13:54:45 CST 2013


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1384992804 18000
#      Wed Nov 20 19:13:24 2013 -0500
# Node ID 6ac5a548ae2320a044ab17b5459fc03e57bf3d4f
# Parent  537128f084ab2cacb9be8697f9f2719f992d4086
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()
 {


More information about the Mercurial-devel mailing list