# HG changeset patch # User Brendan Cully # Date 2009-07-01 01:47:16 # Node ID a04c1ab282fe572553d73a1e020b29077fa0583a # Parent 67389a94825a49f413b64648ffafcd87fcb39849 zsh completion: add hg branch diff --git a/contrib/zsh_completion b/contrib/zsh_completion --- a/contrib/zsh_completion +++ b/contrib/zsh_completion @@ -424,6 +424,12 @@ typeset -A _hg_cmd_globals '(--logfile -l)'{-l+,--logfile}'[read commit message from ]: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]'