equal
deleted
inserted
replaced
809 uis = {ui, lui} |
809 uis = {ui, lui} |
810 |
810 |
811 if req.repo: |
811 if req.repo: |
812 uis.add(req.repo.ui) |
812 uis.add(req.repo.ui) |
813 |
813 |
|
814 if (req.earlyoptions['verbose'] or req.earlyoptions['debug'] |
|
815 or req.earlyoptions['quiet']): |
|
816 for opt in ('verbose', 'debug', 'quiet'): |
|
817 val = pycompat.bytestr(bool(req.earlyoptions[opt])) |
|
818 for ui_ in uis: |
|
819 ui_.setconfig('ui', opt, val, '--' + opt) |
|
820 |
814 if req.earlyoptions['profile']: |
821 if req.earlyoptions['profile']: |
815 for ui_ in uis: |
822 for ui_ in uis: |
816 ui_.setconfig('profiling', 'enabled', 'true', '--profile') |
823 ui_.setconfig('profiling', 'enabled', 'true', '--profile') |
817 |
824 |
818 profile = lui.configbool('profiling', 'enabled') |
825 profile = lui.configbool('profiling', 'enabled') |
874 (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3])) |
881 (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3])) |
875 ui.atexit(print_time) |
882 ui.atexit(print_time) |
876 if options["profile"]: |
883 if options["profile"]: |
877 profiler.start() |
884 profiler.start() |
878 |
885 |
|
886 # if abbreviated version of this were used, take them in account, now |
879 if options['verbose'] or options['debug'] or options['quiet']: |
887 if options['verbose'] or options['debug'] or options['quiet']: |
880 for opt in ('verbose', 'debug', 'quiet'): |
888 for opt in ('verbose', 'debug', 'quiet'): |
|
889 if options[opt] == req.earlyoptions[opt]: |
|
890 continue |
881 val = pycompat.bytestr(bool(options[opt])) |
891 val = pycompat.bytestr(bool(options[opt])) |
882 for ui_ in uis: |
892 for ui_ in uis: |
883 ui_.setconfig('ui', opt, val, '--' + opt) |
893 ui_.setconfig('ui', opt, val, '--' + opt) |
884 |
894 |
885 if options['traceback']: |
895 if options['traceback']: |