##// END OF EJS Templates
bundle: introduce per-engine compression level...
Joerg Sonnenberger -
r37787:6a7ff581 default
parent child Browse files
Show More
@@ -1260,7 +1260,10 b' def bundle(ui, repo, fname, dest=None, *'
1260 # level without a) formalizing the bundlespec changes to declare it
1260 # level without a) formalizing the bundlespec changes to declare it
1261 # b) introducing a command flag.
1261 # b) introducing a command flag.
1262 compopts = {}
1262 compopts = {}
1263 complevel = ui.configint('experimental', 'bundlecomplevel')
1263 complevel = ui.configint('experimental',
1264 'bundlecomplevel.' + bundlespec.compression)
1265 if complevel is None:
1266 complevel = ui.configint('experimental', 'bundlecomplevel')
1264 if complevel is not None:
1267 if complevel is not None:
1265 compopts['level'] = complevel
1268 compopts['level'] = complevel
1266
1269
@@ -440,6 +440,18 b" coreconfigitem('experimental', 'bundle2l"
440 coreconfigitem('experimental', 'bundlecomplevel',
440 coreconfigitem('experimental', 'bundlecomplevel',
441 default=None,
441 default=None,
442 )
442 )
443 coreconfigitem('experimental', 'bundlecomplevel.bzip2',
444 default=None,
445 )
446 coreconfigitem('experimental', 'bundlecomplevel.gzip',
447 default=None,
448 )
449 coreconfigitem('experimental', 'bundlecomplevel.none',
450 default=None,
451 )
452 coreconfigitem('experimental', 'bundlecomplevel.zstd',
453 default=None,
454 )
443 coreconfigitem('experimental', 'changegroup3',
455 coreconfigitem('experimental', 'changegroup3',
444 default=False,
456 default=False,
445 )
457 )
@@ -154,6 +154,11 b' Compression level can be adjusted for bu'
154 $ f --size gzip-v2-level1.hg
154 $ f --size gzip-v2-level1.hg
155 gzip-v2-level1.hg: size=475
155 gzip-v2-level1.hg: size=475
156
156
157 $ hg --config experimental.bundlecomplevel.gzip=1 --config experimental.bundlelevel=9 bundle -a -t gzip-v2 gzip-v2-level1.hg
158 1 changesets found
159 $ f --size gzip-v2-level1.hg
160 gzip-v2-level1.hg: size=475
161
157 $ cd ..
162 $ cd ..
158
163
159 #if zstd
164 #if zstd
General Comments 0
You need to be logged in to leave comments. Login now