mercurial/sslutil.py
changeset 29115 ef316c653b7f
parent 29113 5b9577edf745
child 29224 7424f4294199
equal deleted inserted replaced
29114:f1081aea19b1 29115:ef316c653b7f
   252     # used, we don't take CAs into consideration, so return early.
   252     # used, we don't take CAs into consideration, so return early.
   253     if ui.insecureconnections:
   253     if ui.insecureconnections:
   254         return kws
   254         return kws
   255 
   255 
   256     cacerts = ui.config('web', 'cacerts')
   256     cacerts = ui.config('web', 'cacerts')
   257     # TODO remove check when we stop setting this config.
       
   258     if cacerts == '!':
       
   259         return kws
       
   260 
   257 
   261     # If a value is set in the config, validate against a path and load
   258     # If a value is set in the config, validate against a path and load
   262     # and require those certs.
   259     # and require those certs.
   263     if cacerts:
   260     if cacerts:
   264         cacerts = util.expandpath(cacerts)
   261         cacerts = util.expandpath(cacerts)