mercurial/commands.py
changeset 28666 ae53ecc47414
parent 28654 5474dc73680f
child 28669 c4b727795d6a
equal deleted inserted replaced
28655:0e330d7d9f53 28666:ae53ecc47414
  1432         bcompression = None
  1432         bcompression = None
  1433     else:
  1433     else:
  1434         assert cgversion == '02'
  1434         assert cgversion == '02'
  1435         bversion = 'HG20'
  1435         bversion = 'HG20'
  1436 
  1436 
  1437 
  1437     bundle2.writebundle(ui, cg, fname, bversion, compression=bcompression)
  1438     changegroup.writebundle(ui, cg, fname, bversion, compression=bcompression)
       
  1439 
  1438 
  1440 @command('cat',
  1439 @command('cat',
  1441     [('o', 'output', '',
  1440     [('o', 'output', '',
  1442      _('print output to file with formatted name'), _('FORMAT')),
  1441      _('print output to file with formatted name'), _('FORMAT')),
  1443     ('r', 'rev', '', _('print the given revision'), _('REV')),
  1442     ('r', 'rev', '', _('print the given revision'), _('REV')),
  2480     btypes = {'none': 'HG10UN',
  2479     btypes = {'none': 'HG10UN',
  2481               'bzip2': 'HG10BZ',
  2480               'bzip2': 'HG10BZ',
  2482               'gzip': 'HG10GZ',
  2481               'gzip': 'HG10GZ',
  2483               'bundle2': 'HG20'}
  2482               'bundle2': 'HG20'}
  2484     bundletype = btypes.get(bundletype)
  2483     bundletype = btypes.get(bundletype)
  2485     if bundletype not in changegroup.bundletypes:
  2484     if bundletype not in bundle2.bundletypes:
  2486         raise error.Abort(_('unknown bundle type specified with --type'))
  2485         raise error.Abort(_('unknown bundle type specified with --type'))
  2487     changegroup.writebundle(ui, bundle, bundlepath, bundletype)
  2486     bundle2.writebundle(ui, bundle, bundlepath, bundletype)
  2488 
  2487 
  2489 @command('debugignore', [], '[FILE]')
  2488 @command('debugignore', [], '[FILE]')
  2490 def debugignore(ui, repo, *files, **opts):
  2489 def debugignore(ui, repo, *files, **opts):
  2491     """display the combined ignore pattern and information about ignored files
  2490     """display the combined ignore pattern and information about ignored files
  2492 
  2491