Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Fix completion for Subversion 1.7
- X-seq: zsh-workers 30028
- From: Simon Olofsson <simon@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Fix completion for Subversion 1.7
- Date: Thu, 15 Dec 2011 16:46:01 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi,
as previously mentioned on this list, the completion for Subversion 1.7
is broken because `svn help' outputs
--changelist [--cl] ARG
for some commands (e.g. `update').
Attached is a Patch that fixes this (Till Haselmann confirmed it). Or
you can merge from here:
https://github.com/simono/zsh/commit/4e30e9568599567bd9a311c4592f6218e9b6c438
Regards,
Simon
diff --git a/Completion/Unix/Command/_subversion b/Completion/Unix/Command/_subversion
index 88142d8..21d809d 100644
--- a/Completion/Unix/Command/_subversion
+++ b/Completion/Unix/Command/_subversion
@@ -48,7 +48,7 @@ _svn () {
! _retrieve_cache svn-${cmd}-args;
then
args=(
- ${=${${${(M)${(f)"$(LC_ALL=C _call_program options svn help $cmd)"#(*Valid options:|(#e))}:#* :*}%% #:*}/ (arg|ARG)/:arg:}/(#b)-([[:alpha:]]) \[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3] (-$match[1])--$match[2]$match[3]}
+ ${=${${${(M)${(f)"$(LC_ALL=C _call_program options svn help $cmd)"#(*Valid options:|(#e))}:#* :*}%% #:*}/ (arg|ARG)/:arg:}/(#b)(-##)([[:alpha:]]##) \[--([a-z-]##)\](:arg:)#/(--$match[3])$match[1]$match[2]$match[4] ($match[1]$match[2])--$match[3]$match[4]}
)
_store_cache svn-${cmd}-args args
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author