Bug#499283: bts select: ability to choose output fields
also sprach James Vega james...@debian.org [2009.11.16.1858 +0100]: Adapting status to accept a list of fields to print isn't out of the question. But adapting select to output fields other than the bugnumber is? -- .''`. martin f. krafft madd...@d.o Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduckhttp://vcs-pkg.org `- Debian - when you have better things to do than fixing systems you grabbed my hand and we fell into it, like a daydream - or a fever. -- godspeed you black emperor! digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/)
Bug#499283: bts select: ability to choose output fields
On Mon, Nov 16, 2009 at 12:53 PM, martin f krafft madd...@debian.org wrote: also sprach James Vega james...@debian.org [2009.11.16.0555 +0100]: On Wed, Sep 17, 2008 at 02:55:14PM +0100, martin f krafft wrote: bts select rocks, but it can only output bug numbers. It would be awesome if it could also display other fields, e.g. when invoked like so: bts select number package title [where] submitter:madd...@debian.org output could be either in a single line with a (configurable) delimiter, such as tab or |, or in RFC822/LDAP style: Number: 123456 Package: foo Title: bar % ... A couple days after this bug was submitted, we released a new sub-command, status, which looks like it fits the bill: bts select submitter:madd...@debian.org | bts status file:- | egrep '^(subject|package|bug_num)' Yes, this fits the bill, as you say, and it's more unix-y, but I do like my syntax better; imagine it doing table output! ;) If only /usr/bin/bts weren't perl... :( Adapting status to accept a list of fields to print isn't out of the question. -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega james...@debian.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#499283: bts select: ability to choose output fields
also sprach James Vega james...@debian.org [2009.11.16.0555 +0100]: On Wed, Sep 17, 2008 at 02:55:14PM +0100, martin f krafft wrote: bts select rocks, but it can only output bug numbers. It would be awesome if it could also display other fields, e.g. when invoked like so: bts select number package title [where] submitter:madd...@debian.org output could be either in a single line with a (configurable) delimiter, such as tab or |, or in RFC822/LDAP style: Number: 123456 Package: foo Title: bar % ... A couple days after this bug was submitted, we released a new sub-command, status, which looks like it fits the bill: bts select submitter:madd...@debian.org | bts status file:- | egrep '^(subject|package|bug_num)' Yes, this fits the bill, as you say, and it's more unix-y, but I do like my syntax better; imagine it doing table output! ;) If only /usr/bin/bts weren't perl... :( -- .''`. martin f. krafft madd...@d.o Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduckhttp://vcs-pkg.org `- Debian - when you have better things to do than fixing systems a qui sait comprendre, peu de mots suffisent. -- intelligenti pauca digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/)
Bug#499283: bts select: ability to choose output fields
On Mon, Nov 16, 2009 at 1:01 PM, martin f krafft madd...@debian.org wrote: also sprach James Vega james...@debian.org [2009.11.16.1858 +0100]: Adapting status to accept a list of fields to print isn't out of the question. But adapting select to output fields other than the bugnumber is? Select simply calls get_bugs() from the SOAP interface, which returns a list of bug numbers. We have to call get_status() to get the rest of information, so we may as well just extend “bts status” to allow specifying which fields are displayed. -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega james...@debian.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#499283: bts select: ability to choose output fields
On Mon, 2009-11-16 at 19:01 +0100, martin f krafft wrote: also sprach James Vega james...@debian.org [2009.11.16.1858 +0100]: Adapting status to accept a list of fields to print isn't out of the question. But adapting select to output fields other than the bugnumber is? It's doable, but would essentially involve bts doing select | status internally. select and status are basically wrappers (albeit somewhat intelligent wrappers) around the get_bugs and status functions exposed by the BTS's SOAP interface - one of which returns a list of bug numbers matching criteria and the other returning details of a list of bugs given the bug numbers. Adam -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#499283: bts select: ability to choose output fields
On Wed, Sep 17, 2008 at 02:55:14PM +0100, martin f krafft wrote: bts select rocks, but it can only output bug numbers. It would be awesome if it could also display other fields, e.g. when invoked like so: bts select number package title [where] submitter:madd...@debian.org output could be either in a single line with a (configurable) delimiter, such as tab or |, or in RFC822/LDAP style: Number: 123456 Package: foo Title: bar % ... A couple days after this bug was submitted, we released a new sub-command, status, which looks like it fits the bill: bts select submitter:madd...@debian.org | bts status file:- | egrep '^(subject|package|bug_num)' -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega james...@debian.org signature.asc Description: Digital signature
Bug#499283: bts select: ability to choose output fields
Package: devscripts Version: 2.10.35 Severity: wishlist File: /usr/bin/bts bts select rocks, but it can only output bug numbers. It would be awesome if it could also display other fields, e.g. when invoked like so: bts select number package title [where] submitter:[EMAIL PROTECTED] output could be either in a single line with a (configurable) delimiter, such as tab or |, or in RFC822/LDAP style: Number: 123456 Package: foo Title: bar % ... Thanks, -- Package-specific info: --- /etc/devscripts.conf --- --- ~/.devscripts --- DEBSIGN_KEYID=$DEBKEYID DEBCOMMIT_RELEASE_USE_CHANGELOG=yes DEBCHANGE_MULTIMAINT_MERGE=yes DEBCHANGE_MAINTTRAILER=yes BTS_CACHE_MODE=mbox BTS_INCLUDE_RESOLVED=no BTS_SUPPRESS_ACKS=yes DEBUILD_LINTIAN=yes DEBUILD_LINTIAN_OPTS=-i DEBDIFF_SHOW_DIFFSTAT=yes -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.24-etchnhalf.1+scoflowctrl.1-686 (SMP w/1 CPU core) Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages devscripts depends on: ii dpkg-dev 1.14.22Debian package development tools ii libc6 2.7-13 GNU C Library: Shared libraries ii perl 5.10.0-14 Larry Wall's Practical Extraction Versions of packages devscripts recommends: ii at 3.1.10.1 Delayed job execution and batch pr ii bsd-mailx [mailx] 8.1.2-0.20071201cvs-3 A simple mail user agent ii bzr1.5-1.1 easy to use distributed version co ii curl 7.18.2-7 Get a file from an HTTP, HTTPS or ii cvs1:1.12.13-12 Concurrent Versions System ii dctrl-tools2.13.0Command-line tools to process Debi ii debian-keyring 2008.07.22GnuPG (and obsolete PGP) keys of D ii debian-maintainers 1.44 GPG keys of Debian maintainers ii dput 0.9.2.33 Debian package upload tool ii equivs 2.0.7-0.1 Circumvent Debian package dependen ii fakeroot 1.9.6 Gives a fake root environment ii git-core 1:1.6.0.1-1 fast, scalable, distributed revisi ii gnupg 1.4.9-3 GNU privacy guard - a free PGP rep ii iceweasel [www-bro 3.0.1-1 lightweight web browser based on M ii libauthen-sasl-per 2.12-1Authen::SASL - SASL Authentication ii libcrypt-ssleay-pe 0.57-1+b1 Support for https protocol in LWP ii libparse-debcontro 2.005-2 Easy OO parsing of Debian control- ii libsoap-lite-perl 0.710.08-1Client and server side SOAP implem ii libterm-size-perl 0.2-4+b1 Perl extension for retrieving term ii libtimedate-perl 1.1600-9 Time and date functions for Perl ii liburi-perl1.35.dfsg.1-1 Manipulates and accesses URI strin ii libwww-perl5.813-1 WWW client/server library for Perl ii libyaml-syck-perl 1.05-1Fast, lightweight YAML loader and ii links [www-browser 2.2-1 Web browser running in text mode ii lintian1.24.4Debian package checker ii lsb-release3.2-20Linux Standard Base version report ii mailx 1:20071201-3 Transitional package for mailx ren ii man-db 2.5.2-3 on-line manual pager ii mercurial 1.0.1-5 Scalable distributed version contr ii openssh-client [ss 1:5.1p1-2 secure shell client, an rlogin/rsh ii patch 2.5.9-5 Apply a diff file to an original ii patchutils 0.2.31-4 Utilities to work with patches ii strace 4.5.17+cvs080723-2A system call tracer ii subversion 1.5.1dfsg1-1 Advanced version control system ii unzip 5.52-12 De-archiver for .zip files ii w3m [www-browser] 0.5.2-2+b1WWW browsable pager with excellent ii wdiff 0.5-18Compares two files word by word ii wget 1.11.4-2 retrieves files from the web Versions of packages devscripts suggests: ii build-essential 11.4 Informational list of build-essent pn cvs-buildpackage none (no description available) pn devscripts-el none (no description available) pn gnuplot none (no description available) pn libfile-desktopentry-perl none (no description available) pn libnet-smtp-ssl-perl none (no description available) ii mutt 1.5.18-4 text-based mailreader supporting M pn svn-buildpackage none (no