mercurial/bundle2.py
changeset 30985 f01df5d2fe49
parent 30906 1f51b4658f21
parent 30877 aa25989b0658
child 31483 413b44003462
equal deleted inserted replaced
30984:afaf3c2b129c 30985:f01df5d2fe49
   513 
   513 
   514     def setcompression(self, alg, compopts=None):
   514     def setcompression(self, alg, compopts=None):
   515         """setup core part compression to <alg>"""
   515         """setup core part compression to <alg>"""
   516         if alg in (None, 'UN'):
   516         if alg in (None, 'UN'):
   517             return
   517             return
   518         assert not any(n.lower() == 'Compression' for n, v in self._params)
   518         assert not any(n.lower() == 'compression' for n, v in self._params)
   519         self.addparam('Compression', alg)
   519         self.addparam('Compression', alg)
   520         self._compengine = util.compengines.forbundletype(alg)
   520         self._compengine = util.compengines.forbundletype(alg)
   521         self._compopts = compopts
   521         self._compopts = compopts
   522 
   522 
   523     @property
   523     @property