##// END OF EJS Templates
pager: flush outputs before firing pager process...
Yuya Nishihara -
r31490:8122cc5c default
parent child Browse files
Show More
@@ -715,7 +715,6 b' def email(ui, repo, *revs, **opts):'
715 m['Reply-To'] = ', '.join(replyto)
715 m['Reply-To'] = ', '.join(replyto)
716 if opts.get('test'):
716 if opts.get('test'):
717 ui.status(_('displaying '), subj, ' ...\n')
717 ui.status(_('displaying '), subj, ' ...\n')
718 ui.flush()
719 ui.pager('email')
718 ui.pager('email')
720 generator = emailmod.Generator.Generator(ui, mangle_from_=False)
719 generator = emailmod.Generator.Generator(ui, mangle_from_=False)
721 try:
720 try:
@@ -845,6 +845,7 b' class ui(object):'
845 return
845 return
846
846
847 self.debug('starting pager for command %r\n' % command)
847 self.debug('starting pager for command %r\n' % command)
848 self.flush()
848 self.pageractive = True
849 self.pageractive = True
849 # Preserve the formatted-ness of the UI. This is important
850 # Preserve the formatted-ness of the UI. This is important
850 # because we mess with stdout, which might confuse
851 # because we mess with stdout, which might confuse
General Comments 0
You need to be logged in to leave comments. Login now