diff mercurial/debugcommands.py @ 37644:77c9ee77687c

wireproto: rename HTTPV2 so it less like HTTP/2 Per review suggestion on D3230 from Augie. Differential Revision: https://phab.mercurial-scm.org/D3295
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 11 Apr 2018 18:15:51 -0700
parents 8a73132214a3
children 72b0982cd509
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Fri Apr 13 11:21:55 2018 -0700
+++ b/mercurial/debugcommands.py	Wed Apr 11 18:15:51 2018 -0700
@@ -2912,7 +2912,7 @@
         if opts['peer'] == 'http2':
             ui.write(_('creating http peer for wire protocol version 2\n'))
             peer = httppeer.httpv2peer(
-                ui, path, 'api/%s' % wireprototypes.HTTPV2,
+                ui, path, 'api/%s' % wireprototypes.HTTP_WIREPROTO_V2,
                 opener, httppeer.urlreq.request, {})
         elif opts['peer'] == 'raw':
             ui.write(_('using raw connection to peer\n'))