tests/test-bad-pull
changeset 503 c6a2e41c8c60
parent 495 e94cebc60d96
child 544 3d4d5f2aba9a
child 547 4fc63e22b1fe
equal deleted inserted replaced
502:509e62469cb1 503:c6a2e41c8c60
     1 #!/bin/bash
     1 #!/bin/bash -x
     2 
     2 
     3 hg clone http://localhost:20059/ copy
     3 hg clone http://localhost:20059/ copy
     4 cd copy
     4 echo $?
     5 hg verify
     5 ls copy
     6 hg co
       
     7 cat foo
       
     8 hg manifest
       
     9 
     6 
    10 cat > dumb.py <<EOF
     7 cat > dumb.py <<EOF
    11 import BaseHTTPServer, SimpleHTTPServer, signal
     8 import BaseHTTPServer, SimpleHTTPServer, signal
    12 
     9 
    13 def run(server_class=BaseHTTPServer.HTTPServer,
    10 def run(server_class=BaseHTTPServer.HTTPServer,
    21 EOF
    18 EOF
    22 
    19 
    23 python dumb.py 2>/dev/null &
    20 python dumb.py 2>/dev/null &
    24 
    21 
    25 hg clone http://localhost:20059/foo copy2
    22 hg clone http://localhost:20059/foo copy2
    26 cd copy2
    23 echo $?
    27 hg verify
       
    28 hg co
       
    29 cat foo
       
    30 hg manifest
       
    31 
    24 
       
    25 set +x
    32 kill $!
    26 kill $!