mercurial/commands.py
changeset 23895 cda18ded2c48
parent 23891 5827ad0b849e
child 23896 becfecaf9087
equal deleted inserted replaced
23894:f388ceae2250 23895:cda18ded2c48
  1215                                              bundlecaps)
  1215                                              bundlecaps)
  1216     if not cg:
  1216     if not cg:
  1217         scmutil.nochangesfound(ui, repo, outgoing and outgoing.excluded)
  1217         scmutil.nochangesfound(ui, repo, outgoing and outgoing.excluded)
  1218         return 1
  1218         return 1
  1219 
  1219 
  1220     changegroup.writebundle(cg, fname, bundletype)
  1220     changegroup.writebundle(ui, cg, fname, bundletype)
  1221 
  1221 
  1222 @command('cat',
  1222 @command('cat',
  1223     [('o', 'output', '',
  1223     [('o', 'output', '',
  1224      _('print output to file with formatted name'), _('FORMAT')),
  1224      _('print output to file with formatted name'), _('FORMAT')),
  1225     ('r', 'rev', '', _('print the given revision'), _('REV')),
  1225     ('r', 'rev', '', _('print the given revision'), _('REV')),
  2163     bundletype = opts.get('type', 'bzip2').lower()
  2163     bundletype = opts.get('type', 'bzip2').lower()
  2164     btypes = {'none': 'HG10UN', 'bzip2': 'HG10BZ', 'gzip': 'HG10GZ'}
  2164     btypes = {'none': 'HG10UN', 'bzip2': 'HG10BZ', 'gzip': 'HG10GZ'}
  2165     bundletype = btypes.get(bundletype)
  2165     bundletype = btypes.get(bundletype)
  2166     if bundletype not in changegroup.bundletypes:
  2166     if bundletype not in changegroup.bundletypes:
  2167         raise util.Abort(_('unknown bundle type specified with --type'))
  2167         raise util.Abort(_('unknown bundle type specified with --type'))
  2168     changegroup.writebundle(bundle, bundlepath, bundletype)
  2168     changegroup.writebundle(ui, bundle, bundlepath, bundletype)
  2169 
  2169 
  2170 @command('debugignore', [], '')
  2170 @command('debugignore', [], '')
  2171 def debugignore(ui, repo, *values, **opts):
  2171 def debugignore(ui, repo, *values, **opts):
  2172     """display the combined ignore pattern"""
  2172     """display the combined ignore pattern"""
  2173     ignore = repo.dirstate._ignore
  2173     ignore = repo.dirstate._ignore