Show More
@@ -833,22 +833,23 b' def _dispatch(req):' | |||||
833 | for ui_ in uis: |
|
833 | for ui_ in uis: | |
834 | ui_.setconfig('ui', 'interactive', 'off', '-y') |
|
834 | ui_.setconfig('ui', 'interactive', 'off', '-y') | |
835 |
|
835 | |||
836 | if util.parsebool(options['pager']): |
|
|||
837 | ui.pager('internal-always-' + cmd) |
|
|||
838 | elif options['pager'] != 'auto': |
|
|||
839 | ui.disablepager() |
|
|||
840 |
|
||||
841 | if cmdoptions.get('insecure', False): |
|
836 | if cmdoptions.get('insecure', False): | |
842 | for ui_ in uis: |
|
837 | for ui_ in uis: | |
843 | ui_.insecureconnections = True |
|
838 | ui_.insecureconnections = True | |
844 |
|
839 | |||
845 | # setup color handling |
|
840 | # setup color handling before pager, because setting up pager | |
|
841 | # might cause incorrect console information | |||
846 | coloropt = options['color'] |
|
842 | coloropt = options['color'] | |
847 | for ui_ in uis: |
|
843 | for ui_ in uis: | |
848 | if coloropt: |
|
844 | if coloropt: | |
849 | ui_.setconfig('ui', 'color', coloropt, '--color') |
|
845 | ui_.setconfig('ui', 'color', coloropt, '--color') | |
850 | color.setup(ui_) |
|
846 | color.setup(ui_) | |
851 |
|
847 | |||
|
848 | if util.parsebool(options['pager']): | |||
|
849 | ui.pager('internal-always-' + cmd) | |||
|
850 | elif options['pager'] != 'auto': | |||
|
851 | ui.disablepager() | |||
|
852 | ||||
852 | if options['version']: |
|
853 | if options['version']: | |
853 | return commands.version_(ui) |
|
854 | return commands.version_(ui) | |
854 | if options['help']: |
|
855 | if options['help']: |
General Comments 0
You need to be logged in to leave comments.
Login now