# HG changeset patch # User Matt Mackall # Date 1395270243 18000 # Node ID 131f7fe06e9ef6684a38f21df13289da1b891714 # Parent 29b159bd71bc68e9868c5d2d748ab166dc7a5287 check-code: check for argument passing py2.6ism diff -r 29b159bd71bc -r 131f7fe06e9e contrib/check-code.py --- a/contrib/check-code.py Wed Mar 19 16:21:53 2014 -0500 +++ b/contrib/check-code.py Wed Mar 19 18:04:03 2014 -0500 @@ -191,6 +191,7 @@ pypats = [ [ + (r'\([^)]*\*\w[^()]+\w+=', "can't pass varargs with keyword in Py2.5"), (r'^\s*def\s*\w+\s*\(.*,\s*\(', "tuple parameter unpacking not available in Python 3+"), (r'lambda\s*\(.*,.*\)', diff -r 29b159bd71bc -r 131f7fe06e9e mercurial/dispatch.py --- a/mercurial/dispatch.py Wed Mar 19 16:21:53 2014 -0500 +++ b/mercurial/dispatch.py Wed Mar 19 18:04:03 2014 -0500 @@ -103,8 +103,8 @@ if req.repo: # copy configs that were passed on the cmdline (--config) to # the repo ui - for cfg in cfgs: - req.repo.ui.setconfig(*cfg, source='--config') + for sec, name, val in cfgs: + req.repo.ui.setconfig(sec, name, val, source='--config') # if we are in HGPLAIN mode, then disable custom debugging debugger = ui.config("ui", "debugger")