diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-09 23:12:52 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-09 23:12:52 +0000 |
commit | 05f72008f91cb7fe82e3897da9731fed11dc3338 (patch) | |
tree | 8cdfe91cb6d644d8f1994803043c6462e9130e61 /libbe/cmdutil.py | |
parent | d8e6094238aa43f81cef2f4ba53281ea49e482f3 (diff) | |
download | bugseverywhere-05f72008f91cb7fe82e3897da9731fed11dc3338.tar.gz |
Implemented show command
Diffstat (limited to 'libbe/cmdutil.py')
-rw-r--r-- | libbe/cmdutil.py | 11 |
1 files changed, 11 insertions, 0 deletions
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) + |