Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/wireprototypes.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 | 96d735601ca1 |
children | 564a3eec6e63 |
comparison
equal
deleted
inserted
replaced
37643:1aa4d646d0de | 37644:77c9ee77687c |
---|---|
16 # Names of the SSH protocol implementations. | 16 # Names of the SSH protocol implementations. |
17 SSHV1 = 'ssh-v1' | 17 SSHV1 = 'ssh-v1' |
18 # These are advertised over the wire. Increment the counters at the end | 18 # These are advertised over the wire. Increment the counters at the end |
19 # to reflect BC breakages. | 19 # to reflect BC breakages. |
20 SSHV2 = 'exp-ssh-v2-0001' | 20 SSHV2 = 'exp-ssh-v2-0001' |
21 HTTPV2 = 'exp-http-v2-0001' | 21 HTTP_WIREPROTO_V2 = 'exp-http-v2-0001' |
22 | 22 |
23 # All available wire protocol transports. | 23 # All available wire protocol transports. |
24 TRANSPORTS = { | 24 TRANSPORTS = { |
25 SSHV1: { | 25 SSHV1: { |
26 'transport': 'ssh', | 26 'transport': 'ssh', |
33 }, | 33 }, |
34 'http-v1': { | 34 'http-v1': { |
35 'transport': 'http', | 35 'transport': 'http', |
36 'version': 1, | 36 'version': 1, |
37 }, | 37 }, |
38 HTTPV2: { | 38 HTTP_WIREPROTO_V2: { |
39 'transport': 'http', | 39 'transport': 'http', |
40 'version': 2, | 40 'version': 2, |
41 } | 41 } |
42 } | 42 } |
43 | 43 |