aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command/comment.py')
-rw-r--r--libbe/command/comment.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/libbe/command/comment.py b/libbe/command/comment.py
index f6949da..d182840 100644
--- a/libbe/command/comment.py
+++ b/libbe/command/comment.py
@@ -124,11 +124,13 @@ class Comment (libbe.command.Command):
# try to launch an editor for comment-body entry
try:
if parent == bug.comment_root:
- parent_body = bug.summary+'\n'
+ header = "Subject: %s" % bug.summary
+ parent_body = parent.string_thread() or "No comments"
else:
+ header = "From: %s\nTo: %s" % (parent.author, bug)
parent_body = parent.body
- estr = 'Please enter your comment above\n\n> %s\n' \
- % ('\n> '.join(parent_body.splitlines()))
+ estr = 'Please enter your comment above\n\n%s\n\n> %s\n' \
+ % (header, '\n> '.join(parent_body.splitlines()))
body = libbe.ui.util.editor.editor_string(estr)
except libbe.ui.util.editor.CantFindEditor, e:
raise libbe.command.UserError(