diff mercurial/ui.py @ 30464:e16e234b9ca3

httppeer: do decompression inside _callstream The current HTTP transport protocol only compresses certain command responses and requires calls to that command to call "_callcompressable," which zlib decompresses the response transparently. Upcoming changes will enable *any* response to be compressed with varying compression formats. In order to handle this better, this commit moves the decompression bits to the main function performing the HTTP request. We introduce an underscore-prefixed argument to denote this behavior so it doesn't conflict with a named argument to a command.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 19 Nov 2016 18:31:40 -0800
parents 9df29b7c62cf
children 39d13b8c101d
line wrap: on
line diff