Mercurial > public > mercurial-scm > hg
comparison mercurial/httprepo.py @ 2501:b73552a00b20
Make "[web] allow_push, deny_push" and "[http_proxy] no" use ui.configlist.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 26 Jun 2006 16:47:24 +0200 |
parents | eabcda3ed0dd |
children | f1ebc4311f47 |
comparison
equal
deleted
inserted
replaced
2500:76ff5efe8181 | 2501:b73552a00b20 |
---|---|
118 proxyuser = ui.config("http_proxy", "user") | 118 proxyuser = ui.config("http_proxy", "user") |
119 proxypasswd = ui.config("http_proxy", "passwd") | 119 proxypasswd = ui.config("http_proxy", "passwd") |
120 | 120 |
121 # see if we should use a proxy for this url | 121 # see if we should use a proxy for this url |
122 no_list = [ "localhost", "127.0.0.1" ] | 122 no_list = [ "localhost", "127.0.0.1" ] |
123 no_list.extend([p.strip().lower() for | 123 no_list.extend([p.lower() for |
124 p in ui.config("http_proxy", "no", '').split(',') | 124 p in ui.configlist("http_proxy", "no")]) |
125 if p.strip()]) | |
126 no_list.extend([p.strip().lower() for | 125 no_list.extend([p.strip().lower() for |
127 p in os.getenv("no_proxy", '').split(',') | 126 p in os.getenv("no_proxy", '').split(',') |
128 if p.strip()]) | 127 if p.strip()]) |
129 # "http_proxy.always" config is for running tests on localhost | 128 # "http_proxy.always" config is for running tests on localhost |
130 if (not ui.configbool("http_proxy", "always") and | 129 if (not ui.configbool("http_proxy", "always") and |