hgext/patchbomb.py
changeset 11183 b25464e9b448
parent 11150 f66ca4431eb9
child 11193 687c7d395f20
equal deleted inserted replaced
11181:6e65b451b62e 11183:b25464e9b448
   448         if replyto:
   448         if replyto:
   449             m['Reply-To'] = ', '.join(replyto)
   449             m['Reply-To'] = ', '.join(replyto)
   450         if opts.get('test'):
   450         if opts.get('test'):
   451             ui.status(_('Displaying '), subj, ' ...\n')
   451             ui.status(_('Displaying '), subj, ' ...\n')
   452             ui.flush()
   452             ui.flush()
   453             if 'PAGER' in os.environ:
   453             if 'PAGER' in os.environ and not ui.plain():
   454                 fp = util.popen(os.environ['PAGER'], 'w')
   454                 fp = util.popen(os.environ['PAGER'], 'w')
   455             else:
   455             else:
   456                 fp = ui
   456                 fp = ui
   457             generator = email.Generator.Generator(fp, mangle_from_=False)
   457             generator = email.Generator.Generator(fp, mangle_from_=False)
   458             try:
   458             try: