diff -r 55b5ba8d4e68 -r 93397c4633f6 mercurial/httppeer.py --- a/mercurial/httppeer.py Mon Apr 09 16:54:20 2018 -0700 +++ b/mercurial/httppeer.py Mon Apr 09 19:35:04 2018 -0700 @@ -29,7 +29,7 @@ util, wireproto, wireprotoframing, - wireprotoserver, + wireprotov2server, ) httplib = util.httplib @@ -504,13 +504,13 @@ 'pull': 'ro', }[permission] - url = '%s/api/%s/%s/%s' % (self.url, wireprotoserver.HTTPV2, permission, - name) + url = '%s/api/%s/%s/%s' % (self.url, wireprotov2server.HTTPV2, + permission, name) # TODO modify user-agent to reflect v2. headers = { - r'Accept': wireprotoserver.FRAMINGTYPE, - r'Content-Type': wireprotoserver.FRAMINGTYPE, + r'Accept': wireprotov2server.FRAMINGTYPE, + r'Content-Type': wireprotov2server.FRAMINGTYPE, } # TODO this should be part of a generic peer for the frame-based