##// END OF EJS Templates
ui: optionally quiesce ssl verification warnings on python 2.5...
Steven Stallion -
r16391:9cf7c9d5 default
parent child Browse files
Show More
@@ -1135,6 +1135,10 b' User interface controls.'
1135 ``remotecmd``
1135 ``remotecmd``
1136 remote command to use for clone/push/pull operations. Default is ``hg``.
1136 remote command to use for clone/push/pull operations. Default is ``hg``.
1137
1137
1138 ``reportoldssl``
1139 Warn if an SSL certificate is unable to be due to using Python
1140 2.5 or earlier. True or False. Default is True.
1141
1138 ``report_untrusted``
1142 ``report_untrusted``
1139 Warn if a ``.hg/hgrc`` file is ignored due to not being owned by a
1143 Warn if a ``.hg/hgrc`` file is ignored due to not being owned by a
1140 trusted user or group. True or False. Default is True.
1144 trusted user or group. True or False. Default is True.
@@ -107,8 +107,9 b' class validator(object):'
107 if hostfingerprint:
107 if hostfingerprint:
108 raise util.Abort(_("host fingerprint for %s can't be "
108 raise util.Abort(_("host fingerprint for %s can't be "
109 "verified (Python too old)") % host)
109 "verified (Python too old)") % host)
110 self.ui.warn(_("warning: certificate for %s can't be verified "
110 if self.ui.configbool('ui', 'reportoldssl', True):
111 "(Python too old)\n") % host)
111 self.ui.warn(_("warning: certificate for %s can't be verified "
112 "(Python too old)\n") % host)
112 return
113 return
113 if not sock.cipher(): # work around http://bugs.python.org/issue13721
114 if not sock.cipher(): # work around http://bugs.python.org/issue13721
114 raise util.Abort(_('%s ssl connection error') % host)
115 raise util.Abort(_('%s ssl connection error') % host)
General Comments 0
You need to be logged in to leave comments. Login now