mercurial/bundle2.py
changeset 30439 71b368e3b590
parent 30357 5925bda42dbd
child 30757 511a4bf52754
--- a/mercurial/bundle2.py	Thu Nov 10 23:15:02 2016 -0800
+++ b/mercurial/bundle2.py	Thu Nov 10 23:29:01 2016 -0800
@@ -515,7 +515,7 @@
 
     def setcompression(self, alg):
         """setup core part compression to <alg>"""
-        if alg is None:
+        if alg in (None, 'UN'):
             return
         assert not any(n.lower() == 'Compression' for n, v in self._params)
         self.addparam('Compression', alg)