mercurial/sslutil.py
changeset 29484 53b7fc7cc2bb
parent 29483 918dce4b8c26
child 29486 a62c00f6dd04
equal deleted inserted replaced
29483:918dce4b8c26 29484:53b7fc7cc2bb
   193             if cafile:
   193             if cafile:
   194                 cafile = util.expandpath(cafile)
   194                 cafile = util.expandpath(cafile)
   195                 if not os.path.exists(cafile):
   195                 if not os.path.exists(cafile):
   196                     raise error.Abort(_('could not find web.cacerts: %s') %
   196                     raise error.Abort(_('could not find web.cacerts: %s') %
   197                                       cafile)
   197                                       cafile)
   198             else:
   198             elif s['allowloaddefaultcerts']:
   199                 # CAs not defined in config. Try to find system bundles.
   199                 # CAs not defined in config. Try to find system bundles.
   200                 cafile = _defaultcacerts(ui)
   200                 cafile = _defaultcacerts(ui)
   201                 if cafile:
   201                 if cafile:
   202                     ui.debug('using %s for CA file\n' % cafile)
   202                     ui.debug('using %s for CA file\n' % cafile)
   203 
   203