dispatch: stop setting web.cacerts=! to indicate --insecure
authorGregory Szorc <gregory.szorc@gmail.com>
Thu, 05 May 2016 00:40:01 -0700
changeset 29114 f1081aea19b1
parent 29113 5b9577edf745
child 29115 ef316c653b7f
dispatch: stop setting web.cacerts=! to indicate --insecure Consumers needing to know if --insecure was used have already transitioned to using ui.insecureconnections. The previous patch removed the last meaningful consumer looking for web.cacerts=!.
mercurial/dispatch.py
--- a/mercurial/dispatch.py	Thu May 05 00:38:18 2016 -0700
+++ b/mercurial/dispatch.py	Thu May 05 00:40:01 2016 -0700
@@ -830,8 +830,6 @@
     if cmdoptions.get('insecure', False):
         for ui_ in uis:
             ui_.insecureconnections = True
-            # TODO remove once consumers are gone.
-            ui_.setconfig('web', 'cacerts', '!', '--insecure')
 
     if options['version']:
         return commands.version_(ui)