aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/show.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2006-04-03 13:42:14 -0400
committerAaron Bentley <abentley@panoramicfeedback.com>2006-04-03 13:42:14 -0400
commit57ad245e927b1e5a9b230de3605431a041bb192e (patch)
treec3b3628c6b1a5677891940dadae4ee58a07dc37a /becommands/show.py
parent28da7287b32e070034b8c093938effeedb2eb54e (diff)
downloadbugseverywhere-57ad245e927b1e5a9b230de3605431a041bb192e.tar.gz
Added reply handling to comments
Diffstat (limited to 'becommands/show.py')
-rw-r--r--becommands/show.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/becommands/show.py b/becommands/show.py
index 9e60586..db3bb90 100644
--- a/becommands/show.py
+++ b/becommands/show.py
@@ -30,8 +30,11 @@ 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)