Update Mercurial tab completion functions.

This commit is contained in:
Steve Losh 2010-07-21 16:37:09 -04:00
commit d52ac73a98

View file

@ -1,4 +1,3 @@
#compdef hg #compdef hg
# Zsh completion script for mercurial. Rename this file to _hg and copy # Zsh completion script for mercurial. Rename this file to _hg and copy
@ -359,7 +358,7 @@ _hg_pat_opts=(
_hg_diff_opts=( _hg_diff_opts=(
'(--text -a)'{-a,--text}'[treat all files as text]' '(--text -a)'{-a,--text}'[treat all files as text]'
'(--git -g)'{-g,--git}'[use git extended diff format]' '(--git -g)'{-g,--git}'[use git extended diff format]'
"--nodates[don't include dates in diff headers]") "--nodates[omit dates from diff headers]")
_hg_dryrun_opts=( _hg_dryrun_opts=(
'(--dry-run -n)'{-n,--dry-run}'[do not perform actions, just print output]') '(--dry-run -n)'{-n,--dry-run}'[do not perform actions, just print output]')
@ -735,6 +734,11 @@ _hg_cmd_status() {
'*:files:_files' '*:files:_files'
} }
_hg_cmd_summary() {
_arguments -s -w : $_hg_global_opts \
'--remote[check for push and pull]'
}
_hg_cmd_tag() { _hg_cmd_tag() {
_arguments -s -w : $_hg_global_opts \ _arguments -s -w : $_hg_global_opts \
'(--local -l)'{-l,--local}'[make the tag local]' \ '(--local -l)'{-l,--local}'[make the tag local]' \