* PATCH: _subversion usage parsing fix
@ 2005-08-23 18:51 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2005-08-23 18:51 UTC (permalink / raw)
To: zsh-workers
This will handle help output in the form of
usage: 1. proplist [TARGET[@REV]...]
2. proplist --revprop -r REV [URL]
Someone who actually cares about svn might want to refine that a bit.
Index: Completion/Unix/Command/_subversion
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_subversion,v
retrieving revision 1.15
diff -u -r1.15 _subversion
--- Completion/Unix/Command/_subversion 11 Aug 2005 14:56:18 -0000 1.15
+++ Completion/Unix/Command/_subversion 23 Aug 2005 18:51:54 -0000
@@ -28,7 +28,7 @@
if (( $#cmd )); then
curcontext="${curcontext%:*:*}:svn-${cmd}:"
- usage=${${(M)${(f)"$(LC_ALL=C _call_program options svn help $cmd)"}:#usage:*}#usage: $cmd] }
+ 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]}
)
@@ -66,7 +66,7 @@
)
;;
*)
- case $_svn_subcmd_usage in
+ case $usage in
*(SRC|DST|TARGET|URL*PATH)*)
args+=(
'*: : _alternative "files:file:_files" "urls:URL:_svn_urls"'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-23 18:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-23 18:51 PATCH: _subversion usage parsing fix Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).