comparison mercurial/wireprototypes.py @ 40074:f7011b44d205

wireprotoserver: move narrow capabilities to wireprototypes.py This is done because wireprotoserver import wireprotov1server, so you cannot import wireprotoserver in wireprotov1server to use the capabilities constants. Differential Revision: https://phab.mercurial-scm.org/D4890
author Pulkit Goyal <pulkit@yandex-team.ru>
date Fri, 05 Oct 2018 22:31:12 +0300
parents b099e6032f38
children 30f70d11c224
comparison
equal deleted inserted replaced
40073:e92454e69dc3 40074:f7011b44d205
25 SSHV1 = 'ssh-v1' 25 SSHV1 = 'ssh-v1'
26 # These are advertised over the wire. Increment the counters at the end 26 # These are advertised over the wire. Increment the counters at the end
27 # to reflect BC breakages. 27 # to reflect BC breakages.
28 SSHV2 = 'exp-ssh-v2-0002' 28 SSHV2 = 'exp-ssh-v2-0002'
29 HTTP_WIREPROTO_V2 = 'exp-http-v2-0002' 29 HTTP_WIREPROTO_V2 = 'exp-http-v2-0002'
30
31 NARROWCAP = 'exp-narrow-1'
32 ELLIPSESCAP = 'exp-ellipses-1'
30 33
31 # All available wire protocol transports. 34 # All available wire protocol transports.
32 TRANSPORTS = { 35 TRANSPORTS = {
33 SSHV1: { 36 SSHV1: {
34 'transport': 'ssh', 37 'transport': 'ssh',