about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-03-27 00:40:55 +0000
committerClint Adams <clint@users.sourceforge.net>2005-03-27 00:40:55 +0000
commit40b706917370c3f9f2f32f4993ebf986c3733cf9 (patch)
treeddf7f9ad4fcf08c0c1e6eba2b84c4c02e284b1ef
parentc7d4b71f5afccfa5eacc8367fe15a105e3e07339 (diff)
downloadzsh-40b706917370c3f9f2f32f4993ebf986c3733cf9.tar.gz
zsh-40b706917370c3f9f2f32f4993ebf986c3733cf9.tar.xz
zsh-40b706917370c3f9f2f32f4993ebf986c3733cf9.zip
21068: complete modified files for 'svn revert'.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_subversion10
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9b549dbb7..7b6b52800 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
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)*)