# HG changeset patch # User Brendan Cully # Date 1246412709 25200 # Node ID 67389a94825a49f413b64648ffafcd87fcb39849 # Parent 0701044ad15622fd30c16e7961fcd9f7d83b178e zsh completion: add hg branches diff -r 0701044ad156 -r 67389a94825a 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 ]: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]' \