# HG changeset patch # User Gregory Szorc # Date 1489121594 28800 # Node ID 0c8a042b193d9f19a1ba161a861f2647ae8eb80a # Parent 90e69badb125112d514eaa9efb7cfb4c031bdbdf httpconnection: rename config to groups Because that is what it is. diff -r 90e69badb125 -r 0c8a042b193d mercurial/httpconnection.py --- a/mercurial/httpconnection.py Thu Mar 09 20:51:57 2017 -0800 +++ b/mercurial/httpconnection.py Thu Mar 09 20:53:14 2017 -0800 @@ -67,13 +67,13 @@ # moved here from url.py to avoid a cycle def readauthforuri(ui, uri, user): # Read configuration - config = {} + groups = {} for key, val in ui.configitems('auth'): if '.' not in key: ui.warn(_("ignoring invalid [auth] key '%s'\n") % key) continue group, setting = key.rsplit('.', 1) - gdict = config.setdefault(group, {}) + gdict = groups.setdefault(group, {}) if setting in ('username', 'cert', 'key'): val = util.expandpath(val) gdict[setting] = val @@ -83,7 +83,7 @@ bestuser = None bestlen = 0 bestauth = None - for group, auth in config.iteritems(): + for group, auth in groups.iteritems(): if user and user != auth.get('username', user): # If a username was set in the URI, the entry username # must either match it or be unset