Show More
@@ -52,7 +52,7 b'' | |||
|
52 | 52 | from mercurial.demandload import * |
|
53 | 53 | demandload(globals(), '''email.MIMEMultipart email.MIMEText email.Utils |
|
54 | 54 | mercurial:commands,hg,ui |
|
55 | os popen2 smtplib socket sys tempfile time''') | |
|
55 | os errno popen2 smtplib socket sys tempfile time''') | |
|
56 | 56 | from mercurial.i18n import gettext as _ |
|
57 | 57 | |
|
58 | 58 | try: |
@@ -254,8 +254,12 b' def patchbomb(ui, repo, *revs, **opts):' | |||
|
254 | 254 | if opts['test']: |
|
255 | 255 | ui.status('Displaying ', m['Subject'], ' ...\n') |
|
256 | 256 | fp = os.popen(os.getenv('PAGER', 'more'), 'w') |
|
257 | fp.write(m.as_string(0)) | |
|
258 |
fp.write( |
|
|
257 | try: | |
|
258 | fp.write(m.as_string(0)) | |
|
259 | fp.write('\n') | |
|
260 | except IOError, inst: | |
|
261 | if inst.errno != errno.EPIPE: | |
|
262 | raise | |
|
259 | 263 | fp.close() |
|
260 | 264 | elif opts['mbox']: |
|
261 | 265 | ui.status('Writing ', m['Subject'], ' ...\n') |
General Comments 0
You need to be logged in to leave comments.
Login now