aboutsummaryrefslogtreecommitdiffstats
path: root/be
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-09 23:12:52 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-09 23:12:52 +0000
commit05f72008f91cb7fe82e3897da9731fed11dc3338 (patch)
tree8cdfe91cb6d644d8f1994803043c6462e9130e61 /be
parentd8e6094238aa43f81cef2f4ba53281ea49e482f3 (diff)
downloadbugseverywhere-05f72008f91cb7fe82e3897da9731fed11dc3338.tar.gz
Implemented show command
Diffstat (limited to 'be')
-rwxr-xr-xbe18
1 files changed, 10 insertions, 8 deletions
diff --git a/be b/be
index 4e57f1e..e41f059 100755
--- a/be
+++ b/be
@@ -5,6 +5,7 @@ Supported commands
set-root: assign the root directory for bug tracking
new: Create a new bug
list: list bugs
+ show: show a particular bug
close: close a bug
open: re-open a bug
@@ -32,14 +33,14 @@ def list_bugs(args):
if len(bugs) == 0:
print "No matching bugs found"
for bug in bugs:
- target = bug.target
- if target is None:
- target = ""
- else:
- target = " target: %s" % target
- print "id: %s severity: %s%s creator: %s \n%s\n" % \
- (unique_name(bug, bugs), bug.severity, target, bug.creator,
- bug.summary)
+ print bug_summary(bug, bugs)
+
+def show_bug(args):
+ bug_dir = tree_root(os.getcwd())
+ if len(args) !=1:
+ raise UserError("Please specify a bug id.")
+ print bug_summary(get_bug(args[0], bug_dir), list(bug_dir.list()))
+
def set_root(args):
if len(args) != 1:
raise UserError("Please supply a directory path")
@@ -72,6 +73,7 @@ else:
try:
cmd = {
"list": list_bugs,
+ "show": show_bug,
"set-root": set_root,
"new": new_bug,
"close": close_bug,