mercurial/cmdutil.py
changeset 26533 3e61b325e79a
parent 26532 1d1d0914cb76
child 26545 e99c3846d78a
equal deleted inserted replaced
26532:1d1d0914cb76 26533:3e61b325e79a
  3372         except KeyError:
  3372         except KeyError:
  3373             raise util.Abort(_('unknown bundle type specified with --type'))
  3373             raise util.Abort(_('unknown bundle type specified with --type'))
  3374 
  3374 
  3375     if version is None:
  3375     if version is None:
  3376         version = '01'
  3376         version = '01'
       
  3377         if 'generaldelta' in repo.requirements:
       
  3378             version = '02'
  3377     else:
  3379     else:
  3378         try:
  3380         try:
  3379             version = _bundleversionspecs[version]
  3381             version = _bundleversionspecs[version]
  3380         except KeyError:
  3382         except KeyError:
  3381             raise util.Abort(_('unknown bundle type specified with --type'))
  3383             raise util.Abort(_('unknown bundle type specified with --type'))