# HG changeset patch # User byron@base2.cc # Date 1215143594 25200 # Node ID 694223a29ad494fbd2cee69ebdceadfc6ac127cf # Parent 4a8b9cf62a6b8b1212cd1a81f4645301498464c0 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. diff -r 4a8b9cf62a6b -r 694223a29ad4 contrib/zsh_completion --- 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]'