# HG changeset patch # User Gregory Szorc # Date 1462433662 25200 # Node ID b197e2aba703965ee34605e994bf0b673dc861fc # Parent e9ce33c642e849b93a793d2644a7585236183ff3 dispatch: set ui.insecureconnections when --insecure is used diff -r e9ce33c642e8 -r b197e2aba703 mercurial/dispatch.py --- 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']: