##// END OF EJS Templates
revlog: skip opener options to pass compression_engine value...
marmoute -
r51932:940445de default
parent child Browse files
Show More
@@ -1149,7 +1149,7 b' def resolverevlogstorevfsoptions(ui, req'
1149 # The compression used for new entries will be "the last one"
1149 # The compression used for new entries will be "the last one"
1150 prefix = r.startswith
1150 prefix = r.startswith
1151 if prefix(b'revlog-compression-') or prefix(b'exp-compression-'):
1151 if prefix(b'revlog-compression-') or prefix(b'exp-compression-'):
1152 options[b'compengine'] = r.split(b'-', 2)[2]
1152 feature_config.compression_engine = r.split(b'-', 2)[2]
1153
1153
1154 options[b'zlib.level'] = ui.configint(b'storage', b'revlog.zlib.level')
1154 options[b'zlib.level'] = ui.configint(b'storage', b'revlog.zlib.level')
1155 if options[b'zlib.level'] is not None:
1155 if options[b'zlib.level'] is not None:
@@ -628,8 +628,6 b' class revlog:'
628 else:
628 else:
629 new_header = REVLOG_DEFAULT_VERSION
629 new_header = REVLOG_DEFAULT_VERSION
630
630
631 if b'compengine' in opts:
632 self.feature_config.compression_engine = opts[b'compengine']
633 comp_engine_opts = self.feature_config.compression_engine_options
631 comp_engine_opts = self.feature_config.compression_engine_options
634 if b'zlib.level' in opts:
632 if b'zlib.level' in opts:
635 comp_engine_opts[b'zlib.level'] = opts[b'zlib.level']
633 comp_engine_opts[b'zlib.level'] = opts[b'zlib.level']
General Comments 0
You need to be logged in to leave comments. Login now