mercurial/debugcommands.py
changeset 37644 77c9ee77687c
parent 37558 8a73132214a3
child 37645 72b0982cd509
equal deleted inserted replaced
37643:1aa4d646d0de 37644:77c9ee77687c
  2910         opener = urlmod.opener(ui, authinfo, **openerargs)
  2910         opener = urlmod.opener(ui, authinfo, **openerargs)
  2911 
  2911 
  2912         if opts['peer'] == 'http2':
  2912         if opts['peer'] == 'http2':
  2913             ui.write(_('creating http peer for wire protocol version 2\n'))
  2913             ui.write(_('creating http peer for wire protocol version 2\n'))
  2914             peer = httppeer.httpv2peer(
  2914             peer = httppeer.httpv2peer(
  2915                 ui, path, 'api/%s' % wireprototypes.HTTPV2,
  2915                 ui, path, 'api/%s' % wireprototypes.HTTP_WIREPROTO_V2,
  2916                 opener, httppeer.urlreq.request, {})
  2916                 opener, httppeer.urlreq.request, {})
  2917         elif opts['peer'] == 'raw':
  2917         elif opts['peer'] == 'raw':
  2918             ui.write(_('using raw connection to peer\n'))
  2918             ui.write(_('using raw connection to peer\n'))
  2919             peer = None
  2919             peer = None
  2920         elif opts['peer']:
  2920         elif opts['peer']: