1381 bcompression = None |
1381 bcompression = None |
1382 else: |
1382 else: |
1383 assert cgversion == '02' |
1383 assert cgversion == '02' |
1384 bversion = 'HG20' |
1384 bversion = 'HG20' |
1385 |
1385 |
1386 bundle2.writebundle(ui, cg, fname, bversion, compression=bcompression) |
1386 # TODO compression options should be derived from bundlespec parsing. |
|
1387 # This is a temporary hack to allow adjusting bundle compression |
|
1388 # level without a) formalizing the bundlespec changes to declare it |
|
1389 # b) introducing a command flag. |
|
1390 compopts = {} |
|
1391 complevel = ui.configint('experimental', 'bundlecomplevel') |
|
1392 if complevel is not None: |
|
1393 compopts['level'] = complevel |
|
1394 |
|
1395 bundle2.writebundle(ui, cg, fname, bversion, compression=bcompression, |
|
1396 compopts=compopts) |
1387 |
1397 |
1388 @command('cat', |
1398 @command('cat', |
1389 [('o', 'output', '', |
1399 [('o', 'output', '', |
1390 _('print output to file with formatted name'), _('FORMAT')), |
1400 _('print output to file with formatted name'), _('FORMAT')), |
1391 ('r', 'rev', '', _('print the given revision'), _('REV')), |
1401 ('r', 'rev', '', _('print the given revision'), _('REV')), |