diff mercurial/hg.py @ 13192:4d03707916d3 stable

https: use web.cacerts configuration from local repo to validate remote repo
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 27 Dec 2010 17:49:58 +0100
parents 8888e56ac417
children 3bbbde6f3e9f b335882c2f21
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Dec 22 13:25:00 2010 -0600
+++ b/mercurial/hg.py	Mon Dec 27 17:49:58 2010 +0100
@@ -545,9 +545,12 @@
     if r:
         dst.setconfig('bundle', 'mainreporoot', r)
 
-    # copy auth and http_proxy section settings
+    # copy selected local settings to the remote ui
     for sect in ('auth', 'http_proxy'):
         for key, val in src.configitems(sect):
             dst.setconfig(sect, key, val)
+    v = src.config('web', 'cacerts')
+    if v:
+        dst.setconfig('web', 'cacerts', v)
 
     return dst