mercurial/commands.py
changeset 26640 b13fdcc4e700
parent 26639 92d67e5729b9
child 26641 5c57d01fe64e
equal deleted inserted replaced
26639:92d67e5729b9 26640:b13fdcc4e700
  1240     revs = None
  1240     revs = None
  1241     if 'rev' in opts:
  1241     if 'rev' in opts:
  1242         revs = scmutil.revrange(repo, opts['rev'])
  1242         revs = scmutil.revrange(repo, opts['rev'])
  1243 
  1243 
  1244     bundletype = opts.get('type', 'bzip2').lower()
  1244     bundletype = opts.get('type', 'bzip2').lower()
  1245     cgversion, bcompression = exchange.parsebundlespec(repo, bundletype)
  1245     try:
       
  1246         bcompression, cgversion = exchange.parsebundlespec(
       
  1247                 repo, bundletype, strict=False)
       
  1248     except error.UnsupportedBundleSpecification as e:
       
  1249         raise error.Abort(str(e),
       
  1250                           hint=_('see "hg help bundle" for supported '
       
  1251                                  'values for --type'))
  1246 
  1252 
  1247     if opts.get('all'):
  1253     if opts.get('all'):
  1248         base = ['null']
  1254         base = ['null']
  1249     else:
  1255     else:
  1250         base = scmutil.revrange(repo, opts.get('base'))
  1256         base = scmutil.revrange(repo, opts.get('base'))