diff hgext/patchbomb.py @ 4596:8e37342cb05d

patchbomb: flush ui before delegating to pager.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 17 Jun 2007 19:40:02 +0200
parents ba3e13306f70
children ec431334e4fc
line wrap: on
line diff
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -275,6 +275,7 @@ def patchbomb(ui, repo, *revs, **opts):
         if bcc: m['Bcc'] = ', '.join(bcc)
         if opts['test']:
             ui.status('Displaying ', m['Subject'], ' ...\n')
+            ui.flush()
             fp = os.popen(os.getenv('PAGER', 'more'), 'w')
             try:
                 fp.write(m.as_string(0))