# HG changeset patch # User Jeff Hammel # Date 1379332308 25200 # Node ID 8e245a01829d3cdd93abc3c0ad663b747190dc4d # Parent f961f2002d4e5489224bad3669b42de1e5c04c65 summary command diff -r f961f2002d4e -r 8e245a01829d bzconsole/api.py --- a/bzconsole/api.py Mon Jun 17 15:34:33 2013 -0700 +++ b/bzconsole/api.py Mon Sep 16 04:51:48 2013 -0700 @@ -78,6 +78,15 @@ number = int(number) return self._request('/bug/%d' % number) + def summary(self, number): + """ + display bug summary: + 'bug 123456 - dancing is forbidden now' + """ + number = int(number) + bug = self._request('/bug/%d' % number) + return '%d - %s' % (number, bug['summary']) + def new(self, component, title, product=None, version=None, description=None, whiteboard=(), cc=(), blocks=(), depends_on=()):