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