diff -r a2a380e2750f -r 3fde328d0913 mercurial/hg.py --- a/mercurial/hg.py Mon Jul 18 22:25:09 2016 +0200 +++ b/mercurial/hg.py Tue Jul 19 19:57:34 2016 -0700 @@ -923,7 +923,7 @@ dst.setconfig('bundle', 'mainreporoot', r, 'copied') # copy selected local settings to the remote ui - for sect in ('auth', 'hostfingerprints', 'http_proxy'): + for sect in ('auth', 'hostfingerprints', 'hostsecurity', 'http_proxy'): for key, val in src.configitems(sect): dst.setconfig(sect, key, val, 'copied') v = src.config('web', 'cacerts')