Mercurial > public > mercurial-scm > hg
comparison mercurial/httprepo.py @ 2509:6350b01d173f
merge with wsgi changes.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Tue, 27 Jun 2006 00:10:41 -0700 |
parents | b73552a00b20 |
children | f1ebc4311f47 |
comparison
equal
deleted
inserted
replaced
2508:ab460a3f0e3a | 2509:6350b01d173f |
---|---|
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 |