mercurial/bundle2.py
changeset 50519 3c0da0fa0eed
parent 50518 f2bcb56a1d39
child 50524 58adcabc295f
equal deleted inserted replaced
50518:f2bcb56a1d39 50519:3c0da0fa0eed
  1884 
  1884 
  1885     if not streamclone.allowservergeneration(repo):
  1885     if not streamclone.allowservergeneration(repo):
  1886         msg = _(b'stream data requested but server does not allow this feature')
  1886         msg = _(b'stream data requested but server does not allow this feature')
  1887         hint = _(b'the client seems buggy')
  1887         hint = _(b'the client seems buggy')
  1888         raise error.Abort(msg, hint=hint)
  1888         raise error.Abort(msg, hint=hint)
       
  1889     if not (b'stream' in bundler.capabilities):
       
  1890         msg = _(
       
  1891             b'stream data requested but supported streaming clone versions were not specified'
       
  1892         )
       
  1893         hint = _(b'the client seems buggy')
       
  1894         raise error.Abort(msg, hint=hint)
       
  1895     if not (b'v2' in bundler.capabilities[b'stream']):
       
  1896         raise error.Abort(_(b'the client does not support streamclone v2'))
  1889 
  1897 
  1890     # Stream clones don't compress well. And compression undermines a
  1898     # Stream clones don't compress well. And compression undermines a
  1891     # goal of stream clones, which is to be fast. Communicate the desire
  1899     # goal of stream clones, which is to be fast. Communicate the desire
  1892     # to avoid compression to consumers of the bundle.
  1900     # to avoid compression to consumers of the bundle.
  1893     bundler.prefercompressed = False
  1901     bundler.prefercompressed = False