contrib/bash_completion
changeset 20131 56df59cc4212
parent 20130 7c78c7eff119
child 20132 d14f9c4a4398
--- a/contrib/bash_completion	Tue Nov 26 14:38:14 2013 -0600
+++ b/contrib/bash_completion	Mon Nov 25 11:38:14 2013 -0500
@@ -94,6 +94,13 @@
     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
 }
 
+_hg_branches()
+{
+    local branches="$(_hg_cmd branches -q)"
+    local IFS=$'\n'
+    COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$branches' -- "$cur"))
+}
+
 _hg_bookmarks()
 {
     local bookmarks="$(_hg_cmd bookmarks -q)"