From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3823 invoked from network); 2 Jun 2009 18:12:25 -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 new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 2 Jun 2009 18:12:25 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 25347 invoked from network); 2 Jun 2009 18:04:59 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Jun 2009 18:04:59 -0000 Received: (qmail 8827 invoked by alias); 2 Jun 2009 18:04:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27027 Received: (qmail 8812 invoked from network); 2 Jun 2009 18:04:52 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 2 Jun 2009 18:04:52 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 090588027106 for ; Tue, 2 Jun 2009 20:04:48 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id 758D8104910; Tue, 2 Jun 2009 18:04:46 +0000 (UTC) Date: Tue, 2 Jun 2009 18:04:46 +0000 From: Clint Adams To: Colin Watson , 531549@bugs.debian.org Cc: zsh-workers@sunsite.dk Subject: Re: Bug#531549: zsh: completion for bzr switch Message-ID: <20090602180446.GA13749@scru.org> Mail-Followup-To: Colin Watson , 531549@bugs.debian.org, zsh-workers@sunsite.dk References: <20090602090141.GS7367@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090602090141.GS7367@riva.ucam.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.94.2/9414/Tue Jun 2 13:11:57 2009 on bifrost X-Virus-Status: Clean On Tue, Jun 02, 2009 at 10:01:41AM +0100, Colin Watson wrote: > zsh should complete the 'bzr switch' subcommand, added in bzr 1.0rc1. > Attached is a patch against the master branch of > git://git.debian.org/git/private/schizo/zsh.git. Thanks. Index: Completion/Unix/Command/_bzr =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_bzr,v retrieving revision 1.9 diff -u -r1.9 _bzr --- Completion/Unix/Command/_bzr 7 Nov 2008 02:34:51 -0000 1.9 +++ Completion/Unix/Command/_bzr 2 Jun 2009 18:03:53 -0000 @@ -331,6 +331,16 @@ ) ;; +(switch) + args+=( + '--force[Switch even if local commits will be lost]' + '(-q --quiet -v --verbose)'{--quiet,-q}'[be quiet]' + '(-v --verbose -q --quiet)'{--verbose,-v}'[display more information]' + '*:local repository:_files -/' + ) + _bzr_completeParents + ;; + (help) args=( '(-l --long)'{--long,-l}'[use long format]'