Patchwork [09,of,15,V5] bash_completion: add -B|--bookmark support for strip

login
register
mail settings
Submitter Sean Farley
Date Nov. 26, 2013, 7:54 p.m.
Message ID <20eba6f9931155d47249.1385499288@laptop.local>
Download mbox | patch
Permalink /patch/3163/
State Accepted
Commit 7c78c7eff119d377cfebab82a4eadffa37504acc
Headers show

Comments

Sean Farley - Nov. 26, 2013, 7:54 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1385498294 21600
#      Tue Nov 26 14:38:14 2013 -0600
# Node ID 20eba6f9931155d472498c4813159873d5ee35b9
# Parent  70c10d48886307fd9dcc4960194cac9e7905236c
bash_completion: add -B|--bookmark support for strip

Patch

diff --git a/contrib/bash_completion b/contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -406,10 +406,14 @@ 
    fi
 }
 
 _hg_cmd_strip()
 {
+    if [[ "$prev" = @(-B|--bookmark) ]]; then
+        _hg_bookmarks
+        return
+    fi
     _hg_labels
 }
 
 _hg_cmd_qcommit()
 {