mercurial/bundle2.py
changeset 35787 a84dbc87dae9
parent 35783 c97639ad6874
child 35788 b116a66bcc44
--- a/mercurial/bundle2.py	Mon Jan 22 12:38:04 2018 -0800
+++ b/mercurial/bundle2.py	Mon Jan 22 12:12:29 2018 -0800
@@ -599,6 +599,10 @@
         self.capabilities = dict(capabilities)
         self._compengine = util.compengines.forbundletype('UN')
         self._compopts = None
+        # If compression is being handled by a consumer of the raw
+        # data (e.g. the wire protocol), unsetting this flag tells
+        # consumers that the bundle is best left uncompressed.
+        self.prefercompressed = True
 
     def setcompression(self, alg, compopts=None):
         """setup core part compression to <alg>"""