tests/test-clonebundles.t
branchstable
changeset 44729 26ce8e751503
parent 44632 4dacd0cef146
child 44940 89f83e47e9c9
equal deleted inserted replaced
44220:539490756a72 44729:26ce8e751503
    51 Manifest file with invalid URL aborts
    51 Manifest file with invalid URL aborts
    52 
    52 
    53   $ echo 'http://does.not.exist/bundle.hg' > server/.hg/clonebundles.manifest
    53   $ echo 'http://does.not.exist/bundle.hg' > server/.hg/clonebundles.manifest
    54   $ hg clone http://localhost:$HGPORT 404-url
    54   $ hg clone http://localhost:$HGPORT 404-url
    55   applying clone bundle from http://does.not.exist/bundle.hg
    55   applying clone bundle from http://does.not.exist/bundle.hg
    56   error fetching bundle: (.* not known|(\[Errno -?\d+] )?([Nn]o address associated with (host)?name|Temporary failure in name resolution)) (re) (no-windows !)
    56   error fetching bundle: (.* not known|(\[Errno -?\d+] )?([Nn]o address associated with (host)?name|Temporary failure in name resolution|Name does not resolve)) (re) (no-windows !)
    57   error fetching bundle: [Errno 1100*] getaddrinfo failed (glob) (windows !)
    57   error fetching bundle: [Errno 1100*] getaddrinfo failed (glob) (windows !)
    58   abort: error applying bundle
    58   abort: error applying bundle
    59   (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
    59   (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
    60   [255]
    60   [255]
    61 
    61 
   453   finished applying clone bundle
   453   finished applying clone bundle
   454   searching for changes
   454   searching for changes
   455   no changes found
   455   no changes found
   456   2 local changesets published
   456   2 local changesets published
   457 
   457 
       
   458 Test a bad attribute list
       
   459 
       
   460   $ hg --config ui.clonebundleprefers=bad clone -U http://localhost:$HGPORT bad-input
       
   461   abort: invalid ui.clonebundleprefers item: bad
       
   462   (each comma separated item should be key=value pairs)
       
   463   [255]
       
   464   $ hg --config ui.clonebundleprefers=key=val,bad,key2=val2 clone \
       
   465   >    -U http://localhost:$HGPORT bad-input
       
   466   abort: invalid ui.clonebundleprefers item: bad
       
   467   (each comma separated item should be key=value pairs)
       
   468   [255]
       
   469 
       
   470 
   458 Test interaction between clone bundles and --stream
   471 Test interaction between clone bundles and --stream
   459 
   472 
   460 A manifest with just a gzip bundle
   473 A manifest with just a gzip bundle
   461 
   474 
   462   $ cat > server/.hg/clonebundles.manifest << EOF
   475   $ cat > server/.hg/clonebundles.manifest << EOF