Mercurial > hg
diff contrib/zsh_completion @ 8984:67389a94825a
zsh completion: add hg branches
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 30 Jun 2009 18:45:09 -0700 |
parents | 0701044ad156 |
children | a04c1ab282fe |
line wrap: on
line diff
--- 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 <file>]: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]' \