mercurial/commands.py
changeset 30758 76104a4899ad
parent 30721 4ab19763d71c
child 30762 35b516f800e0
equal deleted inserted replaced
30757:511a4bf52754 30758:76104a4899ad
  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')),