[PATCH 1 of 2] url: show full url of proxy server in debug message
Yuya Nishihara
yuya at tcha.org
Sun Feb 18 13:55:09 UTC 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1518959531 -32400
# Sun Feb 18 22:12:11 2018 +0900
# Node ID 20fd00ae43f25ab4db11bafc909a6a659bb74cbe
# Parent 685bcdd236b592bb7c84290268decfb675bbd5ca
url: show full url of proxy server in debug message
This only fixes the debug message spotted by issue5796.
diff --git a/mercurial/url.py b/mercurial/url.py
--- a/mercurial/url.py
+++ b/mercurial/url.py
@@ -126,8 +126,7 @@ class proxyhandler(urlreq.proxyhandler):
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 = {}
More information about the Mercurial-devel
mailing list