Tweaked the output text for modified bugs in libbe.diff and be-handle-mail.
authorW. Trevor King <wking@drexel.edu>
Mon, 27 Jul 2009 13:06:27 +0000 (09:06 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 27 Jul 2009 13:06:27 +0000 (09:06 -0400)
interfaces/email/interactive/be-handle-mail
libbe/diff.py

index 90f5c28eaff618e5ef35c61d5bae64adea88f061..55f04b01868cdaa3142349a5447f3b58452eaba6 100755 (executable)
@@ -285,8 +285,12 @@ class DiffTree (libbe.diff.DiffTree):
 class Diff (libbe.diff.Diff):
     def bug_add_string(self, bug):
         return bug.string(show_comments=True)
-    def comment_summary_string(self, comment):
+    def _comment_summary_string(self, comment):
         return comment.string()
+    def comment_add_string(self, comment):
+        return self._comment_summary_string(comment)
+    def comment_rem_string(self, comment):
+        return self._comment_summary_string(comment)
 
 class Message (object):
     def __init__(self, email_text=None, disable_parsing=False):
index 4164e94a5b1e22dec3437b422707114b15f21cc1..0956624c8503805616384c0741e8b80b46526108 100644 (file)
@@ -398,7 +398,9 @@ class Diff (object):
         first_line = comment.body.splitlines()[0]
         return "%s\n  %s..." % (summary, first_line)
     def comment_rem_string(self, comment):
-        return self._comment_summary_string(comment)
+        summary = self._comment_summary_string(comment)
+        first_line = comment.body.splitlines()[0]
+        return "%s\n  %s..." % (summary, first_line)
     def comment_mod_string(self, comments):
         old_comment,new_comment = comments
         return self._comment_summary_string(new_comment)