1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-27 06:11:06 +02:00

Revert "44904: _subversion: Complete multiple comma-separated arguments to --show-item=<TAB>."

This reverts commit b06117ad21.

Reverted upstream in r1870750.
This commit is contained in:
Daniel Shahaf 2019-12-03 12:27:13 +00:00
parent 61262ae282
commit 06dddd0b98
2 changed files with 2 additions and 12 deletions

View file

@ -96,11 +96,6 @@
* unposted (salsa.debian.org MR!1): Completion/Unix/Command/_ip: * unposted (salsa.debian.org MR!1): Completion/Unix/Command/_ip:
Complete the -brief option Complete the -brief option
2019-11-09 Daniel Shahaf <d.s@daniel.shahaf.name>
* 44904: Completion/Unix/Command/_subversion: Complete multiple
comma-separated arguments to --show-item=<TAB>.
2019-11-08 Daniel Shahaf <d.s@daniel.shahaf.name> 2019-11-08 Daniel Shahaf <d.s@daniel.shahaf.name>
* unposted: Doc/Zsh/compsys.yo: _values: Use the formal * unposted: Doc/Zsh/compsys.yo: _values: Use the formal

View file

@ -3,9 +3,8 @@
_svn () { _svn () {
local curcontext="$curcontext" state line expl ret=1 local curcontext="$curcontext" state line expl ret=1
typeset -A opt_args typeset -A opt_args
local i
# Colons and closing square brackets in values must be escaped. # Colons in values must be escaped.
local -A show_item_keys=( local -A show_item_keys=(
kind "the kind of TARGET (file or dir)" kind "the kind of TARGET (file or dir)"
url "the URL of TARGET in the repository" url "the URL of TARGET in the repository"
@ -113,11 +112,7 @@ _svn () {
done done
while (( idx=$args[(I)*--show-item:arg:] )); do while (( idx=$args[(I)*--show-item:arg:] )); do
# (q) to quote the parentheses in the value # (q) to quote the parentheses in the value
local -a show_items_plain_array args[idx]=( --show-item'=:item key:(('"`for i j in ${(kv)show_item_keys}; do print -rn - $i\\\\:"${(q)j}" ""; done`"'))' )
for i in ${(k)show_item_keys}; do
show_items_plain_array+=( $i\[${show_item_keys[$i]}\] )
done
args[idx]=( --show-item'=:item key:_values -s , "info items" ${show_items_plain_array[@]}' )
done done
# All other options get {-x+,--long-x=} # All other options get {-x+,--long-x=}
args=( ${args/(#b)(--[A-Za-z0-9-]##):arg:/$match[1]=:arg:} ) args=( ${args/(#b)(--[A-Za-z0-9-]##):arg:/$match[1]=:arg:} )