Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/dispatch.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 | ab93029ab622 |
children | d747774ca9da |
comparison
equal
deleted
inserted
replaced
13322:c19b9282d3a7 | 13328:a939f08fae9c |
---|---|
550 if options['traceback']: | 550 if options['traceback']: |
551 ui.setconfig('ui', 'traceback', 'on') | 551 ui.setconfig('ui', 'traceback', 'on') |
552 if options['noninteractive']: | 552 if options['noninteractive']: |
553 ui.setconfig('ui', 'interactive', 'off') | 553 ui.setconfig('ui', 'interactive', 'off') |
554 | 554 |
555 if cmdoptions.get('insecure', False): | |
556 ui.setconfig('web', 'cacerts', '') | |
557 | |
555 if options['help']: | 558 if options['help']: |
556 return commands.help_(ui, cmd, options['version']) | 559 return commands.help_(ui, cmd, options['version']) |
557 elif options['version']: | 560 elif options['version']: |
558 return commands.version_(ui) | 561 return commands.version_(ui) |
559 elif not cmd: | 562 elif not cmd: |