Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Patch for completion with svn 1.5.0
- X-seq: zsh-users 12517
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Patch for completion with svn 1.5.0
- Date: Thu, 31 Jan 2008 12:40:04 +0000
- Cc: Christopher Key <cjk32@xxxxxxxxx>
- In-reply-to: <20080130151133.285c6450@news01>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <47A07DB2.7080604@xxxxxxxxx> <20080130151133.285c6450@news01>
On Wed, 30 Jan 2008 15:11:33 +0000
Peter Stephenson <pws@xxxxxxx> wrote:
> On Wed, 30 Jan 2008 13:37:54 +0000
> Christopher Key <cjk32@xxxxxxxxx> wrote:
> > The output of,
> > # svn help COMMAND
> > has changed slightly between 1.4.x and 1.5.0. The attached patch deals
> > with this.
>
> Thanks, this looks useful. Your patch got line-wrapped half-way up Milton
> Road, so I've reconstructed it slightly. Does the following look right?
> (It survived a half-hearted test.)
>
> I also patched svnadmin help the same way; does this fix Vincent's problem?
> (Again, it seemed to do something.) I'm doing this from ignorance,
> however, so if I've broken something I wouldn't know.
A bit of probing suggests the following would be safer. I'd like to get
this right before releasing 4.3.5 in the next day or two.
Index: Completion/Unix/Command/_subversion
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_subversion,v
retrieving revision 1.24
diff -u -r1.24 _subversion
--- Completion/Unix/Command/_subversion 19 Apr 2007 20:37:04 -0000 1.24
+++ Completion/Unix/Command/_subversion 31 Jan 2008 12:37:34 -0000
@@ -30,7 +30,7 @@
usage=${${(M)${(f)"$(LC_ALL=C _call_program options svn help $cmd)"}:#usage:*}#usage:*$cmd] }
args=(
- ${=${${${(M)${(f)"$(LC_ALL=C _call_program options svn help $cmd)"##*Valid options:}:#* :*}%% #:*}/ 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:}:#* :*}%% #:*}/ (?:arg|ARG|arg)/:arg:}/(#b)-([[:alpha:]]) \[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3] (-$match[1])--$match[2]$match[3]}
)
case $cmd in;
@@ -148,7 +148,7 @@
usage=${${(M)${(f)"$(LC_ALL=C _call_program options svnadmin help $cmd)"}:#$cmd: usage:*}#$cmd: usage: svnadmin $cmd }
args=(
- ${=${${${(M)${(f)"$(LC_ALL=C _call_program options svnadmin help $cmd)"##*Valid options:}:#*:*}%% #:*}/ 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 svnadmin help $cmd)"##*Valid options:}:#* :*}%% #:*}/ (?:arg|ARG|arg)/:arg:}/(#b)-([[:alpha:]]) \[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3] (-$match[1])--$match[2]$match[3]}
)
if [[ $_svnadmin_subcmd_usage == *REPOS_PATH* ]]; then
args+=( ":path:_files -/" )
Messages sorted by:
Reverse Date,
Date,
Thread,
Author