zsh completion: add hg branch
authorBrendan Cully <brendan@kublai.com>
Tue, 30 Jun 2009 18:47:16 -0700
changeset 8985 a04c1ab282fe
parent 8984 67389a94825a
child 8986 7f349588665f
zsh completion: add hg branch
contrib/zsh_completion
--- a/contrib/zsh_completion	Tue Jun 30 18:45:09 2009 -0700
+++ b/contrib/zsh_completion	Tue Jun 30 18:47:16 2009 -0700
@@ -424,6 +424,12 @@
     '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files -g \*.txt'
 }
 
+_hg_cmd_branch() {
+  _arguments -s -w : $_hg_global_opts \
+  '(--force -f)'{-f,--force}'[set branch name even if it shadows an existing branch]' \
+  '(--clean -C)'{-C,--clean}'[reset branch name to parent branch name]'
+}
+
 _hg_cmd_branches() {
   _arguments -s -w : $_hg_global_opts \
   '(--active -a)'{-a,--active}'[show only branches that have unmerge heads]'