zsh-workers
 help / color / mirror / code / Atom feed
From: Simon Olofsson <simon@olofsson.de>
To: zsh-workers@zsh.org
Subject: PATCH: Fix completion for Subversion 1.7
Date: Thu, 15 Dec 2011 16:46:01 +0100	[thread overview]
Message-ID: <jcd4nq$q48$1@dough.gmane.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

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


[-- Attachment #2: svn-1.7.patch --]
[-- Type: text/x-patch, Size: 840 bytes --]

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


             reply	other threads:[~2011-12-15 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-15 15:46 Simon Olofsson [this message]
2011-12-16 17:01 ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jcd4nq$q48$1@dough.gmane.org' \
    --to=simon@olofsson.de \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).