Mercurial > hg
comparison mercurial/wireprotoserver.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 | a24f4638d6c1 |
children | cf8677cd7286 |
comparison
equal
deleted
inserted
replaced
40073:e92454e69dc3 | 40074:f7011b44d205 |
---|---|
35 HTTP_OK = 200 | 35 HTTP_OK = 200 |
36 | 36 |
37 HGTYPE = 'application/mercurial-0.1' | 37 HGTYPE = 'application/mercurial-0.1' |
38 HGTYPE2 = 'application/mercurial-0.2' | 38 HGTYPE2 = 'application/mercurial-0.2' |
39 HGERRTYPE = 'application/hg-error' | 39 HGERRTYPE = 'application/hg-error' |
40 | |
41 NARROWCAP = 'exp-narrow-1' | |
42 ELLIPSESCAP = 'exp-ellipses-1' | |
43 | 40 |
44 SSHV1 = wireprototypes.SSHV1 | 41 SSHV1 = wireprototypes.SSHV1 |
45 SSHV2 = wireprototypes.SSHV2 | 42 SSHV2 = wireprototypes.SSHV2 |
46 | 43 |
47 def decodevaluefromheaders(req, headerprefix): | 44 def decodevaluefromheaders(req, headerprefix): |