equal
deleted
inserted
replaced
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']: |