##// END OF EJS Templates
dispatch: consolidate pager flag handling to a single place...
Augie Fackler -
r31027:04344226 default
parent child Browse files
Show More
@@ -749,7 +749,9 b' def _dispatch(req):'
749 for ui_ in uis:
749 for ui_ in uis:
750 ui_.setconfig('ui', 'interactive', 'off', '-y')
750 ui_.setconfig('ui', 'interactive', 'off', '-y')
751
751
752 if options['pager'] != 'auto' and not util.parsebool(options['pager']):
752 if util.parsebool(options['pager']):
753 ui.pager('internal-always-' + cmd)
754 elif options['pager'] != 'auto':
753 ui.disablepager()
755 ui.disablepager()
754
756
755 if cmdoptions.get('insecure', False):
757 if cmdoptions.get('insecure', False):
@@ -822,8 +824,6 b' def _dispatch(req):'
822
824
823 def _runcommand(ui, options, cmd, cmdfunc):
825 def _runcommand(ui, options, cmd, cmdfunc):
824 """Run a command function, possibly with profiling enabled."""
826 """Run a command function, possibly with profiling enabled."""
825 if util.parsebool(options['pager']):
826 ui.pager('internal-always-' + cmd)
827 try:
827 try:
828 return cmdfunc()
828 return cmdfunc()
829 except error.SignatureError:
829 except error.SignatureError:
General Comments 0
You need to be logged in to leave comments. Login now