"Server certificate verification failed..." on servers with bad certificates
When connecting dealing with an HTTPS server (svn+https) that doesn't have a "good" certificate, the Subversion bindings will throw an exception:
svn.core.SubversionException: ("OPTIONS of 'https://example.com/': Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted (https://example.com/)", 175002)
And there isn't any obvious (ie, listed in
hg help clone or found on Google) way to override this.
Workaround: when you check out the repository with SVN, it will ask you if you want to trust the certificate:
Permanently accept the certificate, then hgsubversion will have no problem talking to the remote server