aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/comment.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/comment.py
parent28da7287b32e070034b8c093938effeedb2eb54e (diff)
downloadbugseverywhere-57ad245e927b1e5a9b230de3605431a041bb192e.tar.gz
Added reply handling to comments
Diffstat (limited to 'becommands/comment.py')
-rw-r--r--becommands/comment.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/becommands/comment.py b/becommands/comment.py
index 37fd37d..4f0bf3b 100644
--- a/becommands/comment.py
+++ b/becommands/comment.py
@@ -46,7 +46,7 @@ def execute(args):
options, args = get_parser().parse_args(args)
if len(args) < 1:
raise cmdutil.UsageError()
- bug = cmdutil.get_bug(args[0])
+ bug, parent_comment = cmdutil.get_bug_and_comment(args[0])
if len(args) == 1:
try:
body = utility.editor_string()
@@ -61,15 +61,21 @@ def execute(args):
body+='\n'
comment = bugdir.new_comment(bug, body)
+ if parent_comment is not None:
+ comment.in_reply_to = parent_comment.uuid
comment.save()
def get_parser():
- parser = cmdutil.CmdOptionParser("be comment BUG-ID COMMENT")
+ parser = cmdutil.CmdOptionParser("be comment ID COMMENT")
return parser
longhelp="""
-Add a comment to a bug.
+To add a comment to a bug, use the bug ID as the argument. To reply to another
+comment, specify the comment name (as shown in "be show" output).
+
+$EDITOR is used to launch an editor. If unspecified, no comment will be
+created.)
"""
def help():