merge with crew-stable
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 14 Dec 2006 19:30:52 +0100
changeset 3884 d83b125b7d7e
parent 3880 a04f304eeded (diff)
parent 3883 6081b4c68baf (current diff)
child 3887 79e5a6e7c451
child 3889 57b797601b61
merge with crew-stable
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -216,8 +216,6 @@ def patchbomb(ui, repo, *revs, **opts):
     bcc = [a.strip() for a in bcc if a.strip()]
 
     if len(patches) > 1:
-        ui.write(_('\nWrite the introductory message for the patch series.\n\n'))
-
         tlen = len(str(len(patches)))
 
         subj = '[PATCH %0*d of %d] %s' % (
@@ -227,21 +225,13 @@ def patchbomb(ui, repo, *revs, **opts):
             prompt('Subject:', rest = ' [PATCH %0*d of %d] ' % (tlen, 0,
                 len(patches))))
 
-        ui.write(_('Finish with ^D or a dot on a line by itself.\n\n'))
-
-        body = []
-
-        while True:
-            try: l = raw_input()
-            except EOFError: break
-            if l == '.': break
-            body.append(l)
-
+        body = ''
         if opts['diffstat']:
             d = cdiffstat(_('Final summary:\n'), jumbo)
-            if d: body.append('\n' + d)
+            if d: body = '\n' + d
 
-        body = '\n'.join(body) + '\n'
+        ui.write(_('\nWrite the introductory message for the patch series.\n\n'))
+        body = ui.edit(body, sender)
 
         msg = email.MIMEText.MIMEText(body)
         msg['Subject'] = subj
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ try:
 
     # Due to the use of demandload py2exe is not finding the modules.
     # packagescan.getmodules creates a list of modules included in
-    # the mercurial package plus depdent modules.
+    # the mercurial package plus dependant modules.
     from py2exe.build_exe import py2exe as build_exe
 
     class py2exe_for_demandload(build_exe):