diff mercurial/commands.py @ 13328:a939f08fae9c stable

url: add --insecure option to bypass verification of ssl certificates If --insecure specified, it behaves in the same way as no web.cacerts configured. Also shows hint for --insecure option when _verifycert() failed. But currently the hint isn't displayed on SSLError, because it needs a certain level of changes.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 29 Jan 2011 23:23:24 +0900
parents 827a1cc127bf
children 4e92ad05fe18 02aa06a021a0
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Jan 31 13:33:41 2011 +0100
+++ b/mercurial/commands.py	Sat Jan 29 23:23:24 2011 +0900
@@ -3943,6 +3943,8 @@
      _('specify ssh command to use'), _('CMD')),
     ('', 'remotecmd', '',
      _('specify hg command to run on the remote side'), _('CMD')),
+    ('', 'insecure', None,
+     _('do not verify server certificate (ignoring web.cacerts config)')),
 ]
 
 walkopts = [