Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 2/3] _subversion: Complete the 'auth', 'changelist', 'patch', 'resolve', and 'x-unshelve' subcommands.
- X-seq: zsh-workers 44947
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 2/3] _subversion: Complete the 'auth', 'changelist', 'patch', 'resolve', and 'x-unshelve' subcommands.
- Date: Fri, 29 Nov 2019 01:45:18 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=from:to:subject:date:message-id :in-reply-to:references; s=fm1; bh=xh4AKzgOwOXyhzhgzCAlCbRRl2ROf qH+tYb0QZuxXgU=; b=B0YxPWbiSqMEAPX1dwyDOvD3q3uCfuahRY2sP1sVz4Mop zXJ3IxdoDsuiPiG2bCera2Vo4GNmkDPi+UV88XzYz/GWYDvcIs4WOjzGEsvnPiL6 K9B+J8beNuCNOHPEgWnDo3I4eNtlPUpm53A+ZqBP/R0Hwqy74Lp0dmLR+3jtwagO P5Og6jVT04MREdq1ehx+I+FnFrGHcf4HRtI59xpknc/uaV3y9goWQe2uInEeHIRq htgHY37D+oxgdsYAD1LBqbMeEbeyUtH3V+E9t4VGHldtppii9WCzW1lBDlPkkltm EW8D9ra15mPGw1Gx04cwBhDvZD+5iGfmRVYFgp87A==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:in-reply-to:message-id :references:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=xh4AKzgOwOXyhzhgzCAlCbRRl2ROf qH+tYb0QZuxXgU=; b=xV8z7aZ9VF8pbUfU372VW7lWKgfKFvtUz+lJrVsw54GTQ ZffweRIcyxHpoeYqxLUThE1L1k7PCOt4AjmkjhN/dsMEn82nkeSw3oB+L2wkWSwu fjVC5PScSXfY/YteTwi1THR2GWh/LhCFiUQPziJ02tKGWD7l3qUGRyNeZi7o2Uxq lY9DpCHzT5GXVtXHV2DS7PrUh/I+K2VUrRPJa5zv/zQQqqM+Ck/82Xta0QHfxEIo awuaDAscCECt/9WMCKtA2VdDqGjL7Cj0rrSvMv/wKQ0X7dkF44pjstNALeVEO/kR 90t9MNlJNmTp68NpF0zAH5f+qR3REvSqQye8BZeVA==
- In-reply-to: <20191129014519.12513-1-danielsh@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20191129014519.12513-1-danielsh@tarpaulin.shahaf.local2>
---
Completion/Unix/Command/_subversion | 26 ++++++++++++++++++++++----
1 file changed, 22 insertions(+), 4 deletions(-)
diff --git a/Completion/Unix/Command/_subversion b/Completion/Unix/Command/_subversion
index 04a8da0bf..b39c8578e 100644
--- a/Completion/Unix/Command/_subversion
+++ b/Completion/Unix/Command/_subversion
@@ -131,6 +131,18 @@ _svn () {
'*:file:_files -g "*(^e:_svn_controlled:)"'
)
;;
+ (auth)
+ args+=(
+ '*:auth pattern: '
+ )
+ ;;
+ (changelist)
+ args[(r)--remove]='(1)--remove'
+ args+=(
+ '(--remove)1:changelist name:_svn_changelists'
+ '*:file:_files -g "*(e:_svn_controlled:)"'
+ )
+ ;;
(commit)
args=(
${args/(#b)(*--file*):arg:/$match[1]:file:_files}
@@ -167,6 +179,12 @@ _svn () {
(mergeinfo)
args[(r)--show-revs=:arg:]=( '--show-revs=:revisions:(merged eligible)' )
;;
+ (patch)
+ args+=(
+ '1:patch file:_files'
+ '2::working copy to patch:_files'
+ )
+ ;;
(propget|propedit|propdel)
args+=(
'1:property name:_svn_props'
@@ -181,7 +199,7 @@ _svn () {
'*:path or url: _alternative "files:file:_files" "urls:URL:_svn_urls"'
)
;;
- (resolved)
+ (resolve|resolved)
args+=(
'*:file:_files -g "*(e:_svn_conflicts:)"'
)
@@ -191,9 +209,9 @@ _svn () {
'*:file:_files -g "(.svn|*)(/e:_svn_deletedfiles:,e:_svn_status:)"'
)
;;
- (unshelve)
- args+=( '1:shelf name:compadd - ${${(f)"$(_call_program shelves svn unshelve -q --list)"}%% *}' )
- ;;
+ (x-unshelve)
+ args+=( '1:shelf name:compadd - ${(f)"$(_call_program shelves svn x-shelves --quiet)"}' '2::shelf version' )
+ ;;
(*)
case $usage in
*(SRC|DST|TARGET|URL*PATH)*)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author