about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-10-26 19:35:47 +0000
committerClint Adams <clint@users.sourceforge.net>2008-10-26 19:35:47 +0000
commit77e8622b38ff929f80f3f54ddc42766c4c2c75b8 (patch)
tree654b2dd8b98b9639ca139ca8254c3d5fdfd643fe
parentf625d27c0219511c1fd12ad38ebf38e9cabe0496 (diff)
downloadzsh-77e8622b38ff929f80f3f54ddc42766c4c2c75b8.tar.gz
zsh-77e8622b38ff929f80f3f54ddc42766c4c2c75b8.tar.xz
zsh-77e8622b38ff929f80f3f54ddc42766c4c2c75b8.zip
25934: handle bts subscribe, unsubscribe, and fix owner. Patches from Ansgar Burchardt.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Debian/Command/_bts16
2 files changed, 19 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ec8d9bff6..5d55b0011 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-26  Clint Adams  <clint@zsh.org>
+
+	* 25934: Completion/Debian/Command/_bts: handle bts subscribe,
+	unsubscribe, and fix owner.  Patches from Ansgar Burchardt.
+
 2008-10-26  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* unposted: NEWS: region_highlight is an array and so
diff --git a/Completion/Debian/Command/_bts b/Completion/Debian/Command/_bts
index 71fa2dde7..663102d13 100644
--- a/Completion/Debian/Command/_bts
+++ b/Completion/Debian/Command/_bts
@@ -25,7 +25,8 @@ if [[ CURRENT -eq 1 ]]; then
   _wanted cmd expl 'bts command' compadd show bugs close reopen retitle \
       reassign merge unmerge tag tags severity forwarded notforwarded help \
       clone submitter found notfound block unblock user usertag usertags \
-      package owner noowner reportspam cache cleancache claim unclaim
+      package owner noowner reportspam cache cleancache claim unclaim \
+      subscribe unsubscribe
   return
 fi
 
@@ -125,7 +126,7 @@ case "$words[1]" in
      _wanted sep expl 'separator' compadd -S ' ' , .
     fi
   ;;
-  (submitter|owner)
+  (submitter)
     if [[ CURRENT -eq 2 ]]; then
       _message -e bugnum 'bug number'
     else
@@ -135,6 +136,17 @@ case "$words[1]" in
        'bang:bang:compadd \!'
     fi
   ;;
+  (owner|subscribe|unsubscribe)
+    if [[ CURRENT -eq 2 ]]; then
+      _message -e bugnum 'bug number'
+    elif [[ CURRENT -eq 3 ]]; then
+      _alternative \
+        'email:email address:_email_addresses -c' \
+        'bang:bang:compadd \!'
+    else
+      _wanted sep expl 'separator' compadd -S ' ' , .
+    fi
+  ;;
   (found|notfound)
     if [[ CURRENT -eq 2 ]]; then
       _message -e bugnum 'bug number'