mercurial/revlog.py
changeset 51037 d900f74456cc
parent 51036 83ce99f5e7f2
child 51038 8228e8dd96dd
equal deleted inserted replaced
51036:83ce99f5e7f2 51037:d900f74456cc
   635         comp_engine_opts = self.feature_config.compression_engine_options
   635         comp_engine_opts = self.feature_config.compression_engine_options
   636         if b'zlib.level' in opts:
   636         if b'zlib.level' in opts:
   637             comp_engine_opts[b'zlib.level'] = opts[b'zlib.level']
   637             comp_engine_opts[b'zlib.level'] = opts[b'zlib.level']
   638         if b'zstd.level' in opts:
   638         if b'zstd.level' in opts:
   639             comp_engine_opts[b'zstd.level'] = opts[b'zstd.level']
   639             comp_engine_opts[b'zstd.level'] = opts[b'zstd.level']
   640         if b'maxdeltachainspan' in opts:
       
   641             self.delta_config.max_deltachain_span = opts[b'maxdeltachainspan']
       
   642         if self._mmaplargeindex and b'mmapindexthreshold' in opts:
   640         if self._mmaplargeindex and b'mmapindexthreshold' in opts:
   643             mmapindexthreshold = opts[b'mmapindexthreshold']
   641             mmapindexthreshold = opts[b'mmapindexthreshold']
   644             self.data_config.mmap_index_threshold = mmapindexthreshold
   642             self.data_config.mmap_index_threshold = mmapindexthreshold
   645         if b'sparse-revlog' in opts:
   643         if b'sparse-revlog' in opts:
   646             self.delta_config.sparse_revlog = bool(opts[b'sparse-revlog'])
   644             self.delta_config.sparse_revlog = bool(opts[b'sparse-revlog'])