--- a/mercurial/exchange.py Tue Oct 13 11:45:30 2015 -0700
+++ b/mercurial/exchange.py Tue Oct 13 10:59:41 2015 -0700
@@ -12,6 +12,7 @@
import discovery, phases, obsolete, bookmarks as bookmod, bundle2, pushkey
import lock as lockmod
import streamclone
+import sslutil
import tags
import url as urlmod
@@ -1670,6 +1671,11 @@
'spec: %s\n' % (entry['URL'], str(e)))
continue
+ if 'REQUIRESNI' in entry and not sslutil.hassni:
+ repo.ui.debug('filtering %s because SNI not supported\n' %
+ entry['URL'])
+ continue
+
newentries.append(entry)
return newentries