mercurial/bundle2.py
changeset 30439 71b368e3b590
parent 30357 5925bda42dbd
child 30757 511a4bf52754
equal deleted inserted replaced
30438:90933e4e44fd 30439:71b368e3b590
   513         self.capabilities = dict(capabilities)
   513         self.capabilities = dict(capabilities)
   514         self._compengine = util.compengines.forbundletype('UN')
   514         self._compengine = util.compengines.forbundletype('UN')
   515 
   515 
   516     def setcompression(self, alg):
   516     def setcompression(self, alg):
   517         """setup core part compression to <alg>"""
   517         """setup core part compression to <alg>"""
   518         if alg is None:
   518         if alg in (None, 'UN'):
   519             return
   519             return
   520         assert not any(n.lower() == 'Compression' for n, v in self._params)
   520         assert not any(n.lower() == 'Compression' for n, v in self._params)
   521         self.addparam('Compression', alg)
   521         self.addparam('Compression', alg)
   522         self._compengine = util.compengines.forbundletype(alg)
   522         self._compengine = util.compengines.forbundletype(alg)
   523 
   523