Mercurial > public > mercurial-scm > hg
comparison mercurial/dispatch.py @ 20796:131f7fe06e9e
check-code: check for argument passing py2.6ism
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 19 Mar 2014 18:04:03 -0500 |
parents | f144928dd058 |
children | 9a09a625bc93 |
comparison
equal
deleted
inserted
replaced
20795:29b159bd71bc | 20796:131f7fe06e9e |
---|---|
101 cfgs = _parseconfig(req.ui, _earlygetopt(['--config'], req.args)) | 101 cfgs = _parseconfig(req.ui, _earlygetopt(['--config'], req.args)) |
102 | 102 |
103 if req.repo: | 103 if req.repo: |
104 # copy configs that were passed on the cmdline (--config) to | 104 # copy configs that were passed on the cmdline (--config) to |
105 # the repo ui | 105 # the repo ui |
106 for cfg in cfgs: | 106 for sec, name, val in cfgs: |
107 req.repo.ui.setconfig(*cfg, source='--config') | 107 req.repo.ui.setconfig(sec, name, val, source='--config') |
108 | 108 |
109 # if we are in HGPLAIN mode, then disable custom debugging | 109 # if we are in HGPLAIN mode, then disable custom debugging |
110 debugger = ui.config("ui", "debugger") | 110 debugger = ui.config("ui", "debugger") |
111 if not debugger or ui.plain(): | 111 if not debugger or ui.plain(): |
112 debugger = 'pdb' | 112 debugger = 'pdb' |