[Python-checkins] hooks: Fix signature and append a final linefeed

antoine.pitrou python-checkins at python.org
Tue Mar 1 02:58:04 CET 2011


antoine.pitrou pushed 03f2097b90f2 to hooks:

http://hg.python.org/hooks/rev/03f2097b90f2
changeset:   36:03f2097b90f2
tag:         tip
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Tue Mar 01 02:58:01 2011 +0100
summary:
  Fix signature and append a final linefeed

files:
  mail.py

diff --git a/mail.py b/mail.py
--- a/mail.py
+++ b/mail.py
@@ -42,7 +42,7 @@
     differ = patch.diff(repo, node1, node2, opts=diffopts)
     body.append(''.join(chunk for chunk in differ))
 
-    body.append('--')
+    body.append('-- ')
     body.append('Repository URL: %s%s' % (BASE, path))
 
     to = ui.config('mail', 'notify', None)
@@ -66,6 +66,6 @@
     if len(parents) > 1:
         subj = "merge in " + subj
 
-    send(subj, FROM % user, to, '\n'.join(body))
+    send(subj, FROM % user, to, '\n'.join(body) + '\n')
     print 'notified %s of incoming changeset %s' % (to, ctx)
     return False

--
Repository URL: http://hg.python.org/hooks


More information about the Python-checkins mailing list