Mercurial > hg
changeset 6804:694223a29ad4
Added missing --config global option to zsh_completion.
The global options --encoding and --encodingmode where also added.
Without these options some functionality breaks. Also added basic
completion for config items for the --config option.
author | byron@base2.cc |
---|---|
date | Thu, 03 Jul 2008 20:53:14 -0700 |
parents | 4a8b9cf62a6b |
children | 482581431dcd |
files | contrib/zsh_completion |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/zsh_completion Mon Jul 07 09:33:54 2008 +0200 +++ b/contrib/zsh_completion Thu Jul 03 20:53:14 2008 -0700 @@ -205,8 +205,7 @@ _hg_config() { typeset -a items - local line - items=(${${(%f)"$(_hg_cmd showconfig)"}%%\=*}) + items=(${${(%f)"$(_call_program hg hg showconfig)"}%%\=*}) (( $#items )) && _describe -t config 'config item' items } @@ -291,10 +290,14 @@ '--cwd[change working directory]:new working directory:_files -/' '(--noninteractive -y)'{-y,--noninteractive}'[do not prompt, assume yes for any required answers]' '(--verbose -v)'{-v,--verbose}'[enable additional output]' + '*--config[set/override config option]:defined config items:_hg_config' '(--quiet -q)'{-q,--quiet}'[suppress output]' '(--help -h)'{-h,--help}'[display help and exit]' '--debug[debug mode]' '--debugger[start debugger]' + '--encoding[set the charset encoding (default: UTF8)]' + '--encodingmode[set the charset encoding mode (default: strict)]' + '--lsprof[print improved command execution profile]' '--traceback[print traceback on exception]' '--time[time how long the command takes]' '--profile[profile]'