Mercurial > public > mercurial-scm > hg
comparison mercurial/httprepo.py @ 3170:36ab673f66a5
do not disclose proxy user and password in debug messages
author | TK Soh <teekaysoh@yahoo.com> |
---|---|
date | Tue, 26 Sep 2006 14:40:21 -0500 |
parents | cff3c58a5766 |
children | 53e843840349 |
comparison
equal
deleted
inserted
replaced
3159:e43fd1623fe1 | 3170:36ab673f66a5 |
---|---|
163 proxyurl = urlparse.urlunsplit(( | 163 proxyurl = urlparse.urlunsplit(( |
164 proxyscheme, netlocunsplit(proxyhost, proxyport, | 164 proxyscheme, netlocunsplit(proxyhost, proxyport, |
165 proxyuser, proxypasswd or ''), | 165 proxyuser, proxypasswd or ''), |
166 proxypath, proxyquery, proxyfrag)) | 166 proxypath, proxyquery, proxyfrag)) |
167 handler = urllib2.ProxyHandler({scheme: proxyurl}) | 167 handler = urllib2.ProxyHandler({scheme: proxyurl}) |
168 ui.debug(_('proxying through %s\n') % proxyurl) | 168 ui.debug(_('proxying through http://%s:%s\n') % |
169 (proxyhost, proxyport)) | |
169 | 170 |
170 # urllib2 takes proxy values from the environment and those | 171 # urllib2 takes proxy values from the environment and those |
171 # will take precedence if found, so drop them | 172 # will take precedence if found, so drop them |
172 for env in ["HTTP_PROXY", "http_proxy", "no_proxy"]: | 173 for env in ["HTTP_PROXY", "http_proxy", "no_proxy"]: |
173 try: | 174 try: |