diff -r 7a157639b8f2 -r 6cff2ac0ccb9 tests/hghave.py --- a/tests/hghave.py Mon Jul 11 11:05:08 2016 +0200 +++ b/tests/hghave.py Mon Jul 18 11:27:27 2016 -0700 @@ -439,6 +439,11 @@ return len(ctx.get_ca_certs()) > 0 +@check("tls1.2", "TLS 1.2 protocol support") +def has_tls1_2(): + from mercurial import sslutil + return 'tls1.2' in sslutil.supportprotocols + @check("windows", "Windows") def has_windows(): return os.name == 'nt'