mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
21068: complete modified files for 'svn revert'.
This commit is contained in:
parent
c7d4b71f5a
commit
40b7069173
@ -1,3 +1,8 @@
|
||||
2005-03-27 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 21068: Completion/Unix/Command/_subversion: complete modified
|
||||
files for 'svn revert'.
|
||||
|
||||
2005-03-27 Andrey Borzenkov <bor@zsh.org>
|
||||
|
||||
* 21066: Completion/Unix/Command/_rsync: rsync:// URL support,
|
||||
|
@ -21,6 +21,11 @@ _svn_controlled() {
|
||||
[[ -f ${(M)REPLY##*/}.svn/text-base/${REPLY##*/}.svn-base ]]
|
||||
}
|
||||
|
||||
(( $+functions[_svn_adm_files] )) ||
|
||||
_svn_adm_files() {
|
||||
compadd ${${(M)${(f)"$(svn status)"}:#(#s)[ADM]*}##[ADM] ##}
|
||||
}
|
||||
|
||||
(( $+functions[_svn_urls] )) ||
|
||||
_svn_urls() {
|
||||
local expl
|
||||
@ -82,6 +87,11 @@ _svn_subcommand () {
|
||||
'*:file:_files -g "*(e:_svn_controlled:)"'
|
||||
)
|
||||
;;
|
||||
(revert)
|
||||
_svn_subcmds+=(
|
||||
'*:file:_svn_adm_files'
|
||||
)
|
||||
;;
|
||||
*)
|
||||
case $_svn_subcmd_usage in
|
||||
*(SRC|DST|TARGET|URL*PATH)*)
|
||||
|
Loading…
Reference in New Issue
Block a user