mercurial/bundle2.py
changeset 49336 290c29df1915
parent 48992 bde2e4ef968a
child 49648 9be765b82a90
equal deleted inserted replaced
49335:04cdb442a892 49336:290c29df1915
  1690         )
  1690         )
  1691     elif not bundletype.startswith(b'HG20'):
  1691     elif not bundletype.startswith(b'HG20'):
  1692         raise error.ProgrammingError(b'unknown bundle type: %s' % bundletype)
  1692         raise error.ProgrammingError(b'unknown bundle type: %s' % bundletype)
  1693 
  1693 
  1694     caps = {}
  1694     caps = {}
  1695     if b'obsolescence' in opts:
  1695     if opts.get(b'obsolescence', False):
  1696         caps[b'obsmarkers'] = (b'V1',)
  1696         caps[b'obsmarkers'] = (b'V1',)
  1697     bundle = bundle20(ui, caps)
  1697     bundle = bundle20(ui, caps)
  1698     bundle.setcompression(compression, compopts)
  1698     bundle.setcompression(compression, compopts)
  1699     _addpartsfromopts(ui, repo, bundle, source, outgoing, opts)
  1699     _addpartsfromopts(ui, repo, bundle, source, outgoing, opts)
  1700     chunkiter = bundle.getchunks()
  1700     chunkiter = bundle.getchunks()