changeset 8985:a04c1ab282fe

zsh completion: add hg branch
author Brendan Cully <brendan@kublai.com>
date Tue, 30 Jun 2009 18:47:16 -0700
parents 67389a94825a
children 7f349588665f
files contrib/zsh_completion
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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]'