Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
13188:6c9345f9edca | 13192:4d03707916d3 |
---|---|
543 # copy bundle-specific options | 543 # copy bundle-specific options |
544 r = src.config('bundle', 'mainreporoot') | 544 r = src.config('bundle', 'mainreporoot') |
545 if r: | 545 if r: |
546 dst.setconfig('bundle', 'mainreporoot', r) | 546 dst.setconfig('bundle', 'mainreporoot', r) |
547 | 547 |
548 # copy auth and http_proxy section settings | 548 # copy selected local settings to the remote ui |
549 for sect in ('auth', 'http_proxy'): | 549 for sect in ('auth', 'http_proxy'): |
550 for key, val in src.configitems(sect): | 550 for key, val in src.configitems(sect): |
551 dst.setconfig(sect, key, val) | 551 dst.setconfig(sect, key, val) |
552 v = src.config('web', 'cacerts') | |
553 if v: | |
554 dst.setconfig('web', 'cacerts', v) | |
552 | 555 |
553 return dst | 556 return dst |