Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Patch for completion with svn 1.5.0



The output of,
# svn help COMMAND
has changed slightly between 1.4.x and 1.5.0.  The attached patch deals
with this.

Regards,

Chris Key



--- Completion/Unix/Command/_subversion~        2007-03-19
13:02:49.000000000 +0000
+++ Completion/Unix/Command/_subversion 2008-01-30 12:12:48.000000000 +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:}/(#b)-([[:alpha:]])
\[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3]
(-$match[1])--$match[2]$match[3]}
         )
 
         case $cmd in;



Messages sorted by: Reverse Date, Date, Thread, Author