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

[zn@xxxxxxxxxxxxx: Bug#308301: _subversion: cannot complete the first option of subcmds]



Will this break anything?

----- Forwarded message from Kazuhiro NISHIYAMA <zn@xxxxxxxxxxxxx> -----

For example, `svn info -<tab>' does not include `--targets':
% svn info -<tab>
--config-dir  --recursive   -R

And, `svnadmin create --<tab>' does not include `--bdb-txn-nosync':
% svnadmin create --<tab>
--bdb-log-keep  --config-dir    --fs-type


--- /usr/share/zsh/4.2.5/functions/Completion/Unix/_subversion	2005-04-27 09:31:08.000000000 +0900
+++ _subversion	2005-05-09 18:00:29.630884507 +0900
@@ -92,7 +92,7 @@
   _svn_subcmd_usage=${${(M)${(f)"$(LC_MESSAGES=C _call_program options svn help $1)"}:#usage:*}#usage: $1 }
 
   _svn_subcmds=(
-    ${${=${${${(M)${(f)"$(LC_MESSAGES=C _call_program options svn help $1)"##*Valid options:}:#* :*}%% #:*}/ arg/:arg:}/(#b)-([[:alpha:]]) \[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3] (-$match[1])--$match[2]$match[3]}[2,-1]}
+    ${=${${${(M)${(f)"$(LC_MESSAGES=C _call_program options svn help $1)"##*Valid options:}:#* :*}%% #:*}/ arg/:arg:}/(#b)-([[:alpha:]]) \[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3] (-$match[1])--$match[2]$match[3]}
   )
 
   case $1 in;
@@ -169,7 +169,7 @@
   _svnadmin_subcmd_usage=${${(M)${(f)"$(LC_MESSAGES=C _call_program options svnadmin help $1)"}:#$1: usage:*}#$1: usage: svnadmin $1 }
 
   _svnadmin_subcmds=(
-    ${${=${${${(M)${(f)"$(LC_MESSAGES=C _call_program options svnadmin help $1)"##*Valid options:}:#*:*}%% #:*}/ arg/:arg:}/(#b)-([[:alpha:]]) \[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3] (-$match[1])--$match[2]$match[3]}[2,-1]}
+    ${=${${${(M)${(f)"$(LC_MESSAGES=C _call_program options svnadmin help $1)"##*Valid options:}:#*:*}%% #:*}/ arg/:arg:}/(#b)-([[:alpha:]]) \[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3] (-$match[1])--$match[2]$match[3]}
   )
 
   [[ "$_svnadmin_subcmd_usage" == *REPOS_PATH* ]] &&


----- End forwarded message -----



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