##// END OF EJS Templates
dispatch: set global options on the request repo.ui...
Idan Kamara -
r14752:99ace3cb stable
parent child Browse files
Show More
@@ -592,18 +592,23 b' def _dispatch(req):'
592 592 (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3]))
593 593 atexit.register(print_time)
594 594
595 uis = set([ui, lui])
596
597 if req.repo:
598 uis.add(req.repo.ui)
599
595 600 for opt in ('verbose', 'debug', 'quiet', 'traceback'):
596 601 val = bool(options[opt])
597 602 if val:
598 for ui_ in (ui, lui):
603 for ui_ in uis:
599 604 ui_.setconfig('ui', opt, str(val))
600 605
601 606 if options['noninteractive']:
602 for ui_ in (ui, lui):
607 for ui_ in uis:
603 608 ui_.setconfig('ui', 'interactive', 'off')
604 609
605 610 if cmdoptions.get('insecure', False):
606 for ui_ in (ui, lui):
611 for ui_ in uis:
607 612 ui_.setconfig('web', 'cacerts', '')
608 613
609 614 if options['help']:
General Comments 0
You need to be logged in to leave comments. Login now