Rev 29: Add an entry in the body to make it easier to find the url in http://bzr.arbash-meinel.com/plugins/email

John Arbash Meinel john at arbash-meinel.com
Sat Jan 27 14:53:19 GMT 2007


At http://bzr.arbash-meinel.com/plugins/email

------------------------------------------------------------
revno: 29
revision-id: john at arbash-meinel.com-20070127145308-41i79lxx54gdqyc8
parent: john at arbash-meinel.com-20070126170329-r6jkjcigam173ay1
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: email
timestamp: Sat 2007-01-27 08:53:08 -0600
message:
  Add an entry in the body to make it easier to find the url
modified:
  emailer.py                     emailer.py-20070123220937-ec5y2n2oeoa0p4ue-1
  tests/testemail.py             testpublish.py-20051018071212-e3a53d78c05e0e0a
-------------- next part --------------
=== modified file 'emailer.py'
--- a/emailer.py	2007-01-26 17:03:29 +0000
+++ b/emailer.py	2007-01-27 14:53:08 +0000
@@ -51,6 +51,9 @@
         # we can pass to send_email and have that do the proper encoding.
         from StringIO import StringIO
         outf = StringIO()
+
+        outf.write('At %s\n\n' % self.url())
+
         lf = log_formatter('long',
                            show_ids=True,
                            to_file=outf

=== modified file 'tests/testemail.py'
--- a/tests/testemail.py	2007-01-26 17:03:29 +0000
+++ b/tests/testemail.py	2007-01-27 14:53:08 +0000
@@ -59,6 +59,8 @@
         sender = self.get_sender()
         # FIXME: this should not use a literal log, rather grab one from bzrlib.log
         self.assertEqual(
+            'At %s\n'
+            '\n'
             '------------------------------------------------------------\n'
             'revno: 1\n'
             'revision-id: A\n'
@@ -68,7 +70,7 @@
             'message:\n'
             '  foo bar baz\n'
             '  fuzzy\n'
-            '  wuzzy\n', sender.body())
+            '  wuzzy\n' % sender.url(), sender.body())
 
     def test_command_line(self):
         sender = self.get_sender()



More information about the bazaar-commits mailing list