changeset 29110:b197e2aba703

dispatch: set ui.insecureconnections when --insecure is used
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 05 May 2016 00:34:22 -0700
parents e9ce33c642e8
children 843df550b465
files mercurial/dispatch.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dispatch.py	Thu May 05 00:33:38 2016 -0700
+++ b/mercurial/dispatch.py	Thu May 05 00:34:22 2016 -0700
@@ -829,6 +829,8 @@
 
     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']: