diff -r 953839de96ab -r e417664a3339 mercurial/hg.py --- a/mercurial/hg.py Sun Jul 17 15:13:51 2016 -0700 +++ b/mercurial/hg.py Sun Jun 05 12:18:20 2016 +0900 @@ -927,9 +927,7 @@ for key, val in src.configitems(sect): dst.setconfig(sect, key, val, 'copied') v = src.config('web', 'cacerts') - if v == '!': - dst.setconfig('web', 'cacerts', v, 'copied') - elif v: + if v: dst.setconfig('web', 'cacerts', util.expandpath(v), 'copied') return dst