--- a/mercurial/sslutil.py Fri Jul 01 18:03:51 2016 -0700
+++ b/mercurial/sslutil.py Fri Jul 01 19:04:39 2016 -0700
@@ -197,7 +197,7 @@
cafile)
else:
# CAs not defined in config. Try to find system bundles.
- cafile = _defaultcacerts()
+ cafile = _defaultcacerts(ui)
if cafile:
ui.debug('using %s for CA file\n' % cafile)
@@ -430,7 +430,7 @@
return (exe.startswith('/usr/bin/python') or
exe.startswith('/system/library/frameworks/python.framework/'))
-def _defaultcacerts():
+def _defaultcacerts(ui):
"""return path to default CA certificates or None."""
if _plainapplepython():
dummycert = os.path.join(os.path.dirname(__file__), 'dummycert.pem')