127 # copy configs that were passed on the cmdline (--config) to |
127 # copy configs that were passed on the cmdline (--config) to |
128 # the repo ui |
128 # the repo ui |
129 for sec, name, val in cfgs: |
129 for sec, name, val in cfgs: |
130 req.repo.ui.setconfig(sec, name, val, source='--config') |
130 req.repo.ui.setconfig(sec, name, val, source='--config') |
131 |
131 |
132 # if we are in HGPLAIN mode, then disable custom debugging |
132 # developer config: ui.debugger |
133 debugger = ui.config("ui", "debugger") |
133 debugger = ui.config("ui", "debugger") |
134 debugmod = pdb |
134 debugmod = pdb |
135 if not debugger or ui.plain(): |
135 if not debugger or ui.plain(): |
|
136 # if we are in HGPLAIN mode, then disable custom debugging |
136 debugger = 'pdb' |
137 debugger = 'pdb' |
137 elif '--debugger' in req.args: |
138 elif '--debugger' in req.args: |
138 # This import can be slow for fancy debuggers, so only |
139 # This import can be slow for fancy debuggers, so only |
139 # do it when absolutely necessary, i.e. when actual |
140 # do it when absolutely necessary, i.e. when actual |
140 # debugging has been requested |
141 # debugging has been requested |