diff options
author | Clint Adams <clint@users.sourceforge.net> | 2005-03-27 00:40:55 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2005-03-27 00:40:55 +0000 |
commit | 40b706917370c3f9f2f32f4993ebf986c3733cf9 (patch) | |
tree | ddf7f9ad4fcf08c0c1e6eba2b84c4c02e284b1ef /Completion/Unix | |
parent | c7d4b71f5afccfa5eacc8367fe15a105e3e07339 (diff) | |
download | zsh-40b706917370c3f9f2f32f4993ebf986c3733cf9.tar.gz zsh-40b706917370c3f9f2f32f4993ebf986c3733cf9.tar.xz zsh-40b706917370c3f9f2f32f4993ebf986c3733cf9.zip |
21068: complete modified files for 'svn revert'.
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_subversion | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_subversion b/Completion/Unix/Command/_subversion index 81188b25d..5f50b4c27 100644 --- a/Completion/Unix/Command/_subversion +++ b/Completion/Unix/Command/_subversion @@ -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)*) |