mercurial/changegroup.py
changeset 26392 127b59787fd5
parent 26272 59c410db8c68
child 26424 60825fbe2be1
--- a/mercurial/changegroup.py	Sat Sep 26 17:24:12 2015 +0800
+++ b/mercurial/changegroup.py	Wed Sep 23 11:33:30 2015 -0700
@@ -163,6 +163,8 @@
         if not alg in util.decompressors:
             raise util.Abort(_('unknown stream compression type: %s')
                              % alg)
+        if alg == 'BZ':
+            alg = '_truncatedBZ'
         self._stream = util.decompressors[alg](fh)
         self._type = alg
         self.callback = None