tests/test-clonebundles.t
changeset 26732 69ac9aebbc55
parent 26691 23c0da28c034
child 26761 8270ee357dd9
equal deleted inserted replaced
26731:0c42b6bb2329 26732:69ac9aebbc55
    78 Manifest file with invalid URL aborts
    78 Manifest file with invalid URL aborts
    79 
    79 
    80   $ echo 'http://does.not.exist/bundle.hg' > server/.hg/clonebundles.manifest
    80   $ echo 'http://does.not.exist/bundle.hg' > server/.hg/clonebundles.manifest
    81   $ hg clone http://localhost:$HGPORT 404-url
    81   $ hg clone http://localhost:$HGPORT 404-url
    82   applying clone bundle from http://does.not.exist/bundle.hg
    82   applying clone bundle from http://does.not.exist/bundle.hg
    83   error fetching bundle: [Errno -2] Name or service not known
    83   error fetching bundle: * not known (glob)
    84   abort: error applying bundle
    84   abort: error applying bundle
    85   (if this error persists, consider contacting the server operator or disable clone bundles via "--config experimental.clonebundles=false")
    85   (if this error persists, consider contacting the server operator or disable clone bundles via "--config experimental.clonebundles=false")
    86   [255]
    86   [255]
    87 
    87 
    88 Server is not running aborts
    88 Server is not running aborts
    89 
    89 
    90   $ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/clonebundles.manifest
    90   $ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/clonebundles.manifest
    91   $ hg clone http://localhost:$HGPORT server-not-runner
    91   $ hg clone http://localhost:$HGPORT server-not-runner
    92   applying clone bundle from http://localhost:$HGPORT1/bundle.hg
    92   applying clone bundle from http://localhost:$HGPORT1/bundle.hg
    93   error fetching bundle: [Errno 111] Connection refused
    93   error fetching bundle: Connection refused
    94   abort: error applying bundle
    94   abort: error applying bundle
    95   (if this error persists, consider contacting the server operator or disable clone bundles via "--config experimental.clonebundles=false")
    95   (if this error persists, consider contacting the server operator or disable clone bundles via "--config experimental.clonebundles=false")
    96   [255]
    96   [255]
    97 
    97 
    98 Server returns 404
    98 Server returns 404