comparison mercurial/url.py @ 25837:d343806dcf68

http2: mark experimental and developer options
author Matt Mackall <mpm@selenic.com>
date Thu, 25 Jun 2015 17:48:43 -0500
parents 328739ea70c3
children c3efcdba08ea
comparison
equal deleted inserted replaced
25836:dede675dc0c1 25837:d343806dcf68
467 def opener(ui, authinfo=None): 467 def opener(ui, authinfo=None):
468 ''' 468 '''
469 construct an opener suitable for urllib2 469 construct an opener suitable for urllib2
470 authinfo will be added to the password manager 470 authinfo will be added to the password manager
471 ''' 471 '''
472 # experimental config: ui.usehttp2
472 if ui.configbool('ui', 'usehttp2', False): 473 if ui.configbool('ui', 'usehttp2', False):
473 handlers = [httpconnectionmod.http2handler(ui, passwordmgr(ui))] 474 handlers = [httpconnectionmod.http2handler(ui, passwordmgr(ui))]
474 else: 475 else:
475 handlers = [httphandler()] 476 handlers = [httphandler()]
476 if has_https: 477 if has_https: