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