From: Aaron Bentley Date: Mon, 3 Apr 2006 18:39:52 +0000 (-0400) Subject: Merge help updates X-Git-Tag: 1.0.0~199^2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4145df7bc4a4335c8ac5d123a8d02104f4e7dc55;p=be.git Merge help updates --- 4145df7bc4a4335c8ac5d123a8d02104f4e7dc55 diff --cc becommands/show.py index db3bb90,314cf46..8e83a1f --- a/becommands/show.py +++ b/becommands/show.py @@@ -30,11 -31,20 +31,22 @@@ def execute(args) time_str = "%s (%s)" % (utility.handy_time(bug.time), utility.time_to_str(bug.time)) print "Created: %s" % time_str - for comment in bug.list_comments(): - print "--------- Comment ---------" - print "From: %s" % comment.From - print "Date: %s\n" % utility.time_to_str(comment.date) - print comment.body.rstrip('\n') + unique_name = cmdutil.unique_name(bug, bug_dir.list()) + comments = [] + name_map = {} + for c_name, comment in cmdutil.iter_comment_name(bug, unique_name): + name_map[comment.uuid] = c_name + comments.append(comment) + threaded = bugdir.thread_comments(comments) + cmdutil.print_threaded_comments(threaded, name_map) + + def get_parser(): + parser = cmdutil.CmdOptionParser("be show bug-id") + return parser + + longhelp=""" + Show all information about a bug. + """ + + def help(): + return get_parser().help_str() + longhelp -