changeset 36307:37a1501cbcfd

url: show full url of proxy server in debug message This only fixes the debug message spotted by issue5796.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 18 Feb 2018 22:12:11 +0900
parents 3496bffe266d
children 548316560a05
files mercurial/url.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 = {}