From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29765 invoked from network); 4 Oct 2008 18:11:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Oct 2008 18:11:57 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 95663 invoked from network); 4 Oct 2008 18:11:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Oct 2008 18:11:44 -0000 Received: (qmail 7969 invoked by alias); 4 Oct 2008 18:11:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25808 Received: (qmail 7951 invoked from network); 4 Oct 2008 18:11:33 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 4 Oct 2008 18:11:33 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 567458030847 for ; Sat, 4 Oct 2008 20:11:28 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id DCA9E1040B1; Sat, 4 Oct 2008 18:11:26 +0000 (UTC) Date: Sat, 4 Oct 2008 18:11:26 +0000 From: Clint Adams To: zsh-workers@sunsite.dk Cc: micah@debian.org Subject: PATCH: _bts claim/unclaim Message-ID: <20081004181126.GA9771@scru.org> Mail-Followup-To: zsh-workers@sunsite.dk, micah@debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.92.1/8373/Sat Oct 4 04:00:50 2008 on bifrost X-Virus-Status: Clean Index: Completion/Debian/Command/_bts =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_bts,v retrieving revision 1.9 diff -u -r1.9 _bts --- Completion/Debian/Command/_bts 6 Jul 2007 15:37:06 -0000 1.9 +++ Completion/Debian/Command/_bts 4 Oct 2008 18:10:39 -0000 @@ -25,7 +25,7 @@ _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 + package owner noowner reportspam cache cleancache claim unclaim return fi @@ -193,6 +193,17 @@ 'email:email address:_email_addresses -c' \ 'all:all:compadd ALL' ;; + (claim|unclaim) + if [[ CURRENT -eq 2 ]]; then + _message -e bugnum 'bug number' + elif [[ CURRENT -eq 3 ]]; then + _alternative \ + 'email:email address:_email_addresses -c' \ + 'separator:separator:compadd -S " " , .' + else + _wanted sep expl 'separator' compadd -S ' ' , . + fi + ;; help) ;& *) _wanted sep expl 'separator' compadd -S ' ' , .