zsh completion: add hg branches
authorBrendan Cully <brendan@kublai.com>
Tue, 30 Jun 2009 18:45:09 -0700
changeset 8984 67389a94825a
parent 8983 0701044ad156
child 8985 a04c1ab282fe
zsh completion: add hg branches
contrib/zsh_completion
--- a/contrib/zsh_completion	Tue Jun 30 18:41:43 2009 -0700
+++ b/contrib/zsh_completion	Tue Jun 30 18:45:09 2009 -0700
@@ -424,6 +424,11 @@
     '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files -g \*.txt'
 }
 
+_hg_cmd_branches() {
+  _arguments -s -w : $_hg_global_opts \
+  '(--active -a)'{-a,--active}'[show only branches that have unmerge heads]'
+}
+
 _hg_cmd_bundle() {
   _arguments -s -w : $_hg_global_opts $_hg_remote_opts \
   '(--force -f)'{-f,--force}'[run even when remote repository is unrelated]' \