tests/test-clonebundles.t
branchstable
changeset 41290 593718ff5844
parent 40973 97484e1d1834
child 41614 f2f538725d07
equal deleted inserted replaced
41146:fbd168455b26 41290:593718ff5844
    62 Server is not running aborts
    62 Server is not running aborts
    63 
    63 
    64   $ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/clonebundles.manifest
    64   $ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/clonebundles.manifest
    65   $ hg clone http://localhost:$HGPORT server-not-runner
    65   $ hg clone http://localhost:$HGPORT server-not-runner
    66   applying clone bundle from http://localhost:$HGPORT1/bundle.hg
    66   applying clone bundle from http://localhost:$HGPORT1/bundle.hg
    67   error fetching bundle: (.* refused.*|Protocol not supported|(.* )?Cannot assign requested address) (re)
    67   error fetching bundle: (.* refused.*|Protocol not supported|(.* )?\$EADDRNOTAVAIL\$) (re)
    68   abort: error applying bundle
    68   abort: error applying bundle
    69   (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
    69   (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
    70   [255]
    70   [255]
    71 
    71 
    72 Server returns 404
    72 Server returns 404
   293 
   293 
   294 Stream clone bundles are supported
   294 Stream clone bundles are supported
   295 
   295 
   296   $ hg -R server debugcreatestreamclonebundle packed.hg
   296   $ hg -R server debugcreatestreamclonebundle packed.hg
   297   writing 613 bytes for 4 files
   297   writing 613 bytes for 4 files
   298   bundle requirements: generaldelta, revlogv1
   298   bundle requirements: generaldelta, revlogv1, sparserevlog
   299 
   299 
   300 No bundle spec should work
   300 No bundle spec should work
   301 
   301 
   302   $ cat > server/.hg/clonebundles.manifest << EOF
   302   $ cat > server/.hg/clonebundles.manifest << EOF
   303   > http://localhost:$HGPORT1/packed.hg
   303   > http://localhost:$HGPORT1/packed.hg