url: show full url of proxy server in debug message
authorYuya Nishihara <yuya@tcha.org>
Sun, 18 Feb 2018 22:12:11 +0900
changeset 36307 37a1501cbcfd
parent 36306 3496bffe266d
child 36308 548316560a05
url: show full url of proxy server in debug message This only fixes the debug message spotted by issue5796.
mercurial/url.py
--- a/mercurial/url.py	Mon Feb 19 00:31:01 2018 +0530
+++ b/mercurial/url.py	Sun Feb 18 22:12:11 2018 +0900
@@ -126,8 +126,7 @@
 
             proxyurl = str(proxy)
             proxies = {'http': proxyurl, 'https': proxyurl}
-            ui.debug('proxying through http://%s:%s\n' %
-                      (proxy.host, proxy.port))
+            ui.debug('proxying through %s\n' % util.hidepassword(proxyurl))
         else:
             proxies = {}