ssl: remove special case of web.cacerts=! from remoteui()
authorYuya Nishihara <yuya@tcha.org>
Sun, 05 Jun 2016 12:18:20 +0900
changeset 29594 e417664a3339
parent 29593 953839de96ab
child 29595 2c4dc91c4c54
ssl: remove special case of web.cacerts=! from remoteui() It was introduced by b76d8c641746, which is no longer necessary thanks to recent refactoring of sslutil including ef316c653b7f.
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