comparison mercurial/hgweb/protocol.py @ 30562:b3a9ef3d30e8

protocol: declare transport protocol name We add an attribute to the HTTP and SSH protocol implementations identifying the transport so future patches can conditionally expose capabilities on a per-transport basis.
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 28 Nov 2016 20:46:59 -0800
parents 2add671bf55b
children 3f5f0c98cd18
comparison
equal deleted inserted replaced
30561:7c0c722d568d 30562:b3a9ef3d30e8
28 class webproto(wireproto.abstractserverproto): 28 class webproto(wireproto.abstractserverproto):
29 def __init__(self, req, ui): 29 def __init__(self, req, ui):
30 self.req = req 30 self.req = req
31 self.response = '' 31 self.response = ''
32 self.ui = ui 32 self.ui = ui
33 self.name = 'http'
34
33 def getargs(self, args): 35 def getargs(self, args):
34 knownargs = self._args() 36 knownargs = self._args()
35 data = {} 37 data = {}
36 keys = args.split() 38 keys = args.split()
37 for k in keys: 39 for k in keys: