# HG changeset patch # User Sean Farley # Date 1385497900 21600 # Node ID bc97358555988e9e630ff2dd85f665df672ed159 # Parent f6c33fc59dbd72344040ac1da254ef6e262f0273 bash_completion: add global support for -B|--bookmark Previously, only -r|--rev was parsed globally which meant 'hg push -B ' would try to complete a path instead of a bookmark. diff -r f6c33fc59dbd -r bc9735855598 contrib/bash_completion --- a/contrib/bash_completion Tue Nov 26 14:04:12 2013 -0600 +++ b/contrib/bash_completion Tue Nov 26 14:31:40 2013 -0600 @@ -248,6 +248,13 @@ fi return 1 ;; + -B|--bookmark) + if [[ $canonical = 1 || status != "$cmd"* ]]; then + _hg_bookmarks + return 0 + fi + return 1 + ;; esac fi