wireproto: split streamres into legacy and modern case
A couple of commands currently require transmission of uncompressed frames with the old MIME type. Split this case from streamres into a new streamres_legacy class. Streamline the remaining code accordingly. Add a new flag to streamres to request uncompressed streams. This is useful for sending data that is already compressed like a pre-built bundle. Expect clients to support uncompressed data. For older clients, zlib will still be used. Differential Revision: https://phab.mercurial-scm.org/D1862
Showing
- hgext/largefiles/proto.py 1 addition, 1 deletionhgext/largefiles/proto.py
- mercurial/hgweb/protocol.py 16 additions, 22 deletionsmercurial/hgweb/protocol.py
- mercurial/sshserver.py 1 addition, 0 deletionsmercurial/sshserver.py
- mercurial/wireproto.py 25 additions, 14 deletionsmercurial/wireproto.py
Loading
Please register or sign in to comment