From 05f72008f91cb7fe82e3897da9731fed11dc3338 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Wed, 9 Mar 2005 23:12:52 +0000 Subject: Implemented show command --- libbe/cmdutil.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libbe') diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py index 2214260..ffd141e 100644 --- a/libbe/cmdutil.py +++ b/libbe/cmdutil.py @@ -33,3 +33,14 @@ def get_bug(spec, bug_dir): if len(matches) == 0: raise UserError("No bug has the name %s" % spec) return matches[0] + +def bug_summary(bug, bugs): + target = bug.target + if target is None: + target = "" + else: + target = " target: %s" % target + return "id: %s severity: %s%s creator: %s \n%s\n" % \ + (unique_name(bug, bugs), bug.severity, target, bug.creator, + bug.summary) + -- cgit