view tests/test-bad-pull @ 541:abaea35387a8

Added support for hg:// and old-http:// to 'hg clone'. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Added support for hg:// and old-http:// to 'hg clone'. manifest hash: 4292cc7927afbec5663b5fff4317a238fb65cdec -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCw44lW7P1GVgWeRoRArWzAJ9AjiCF7poldqFxshV+lAyHZKy2PACgpCt1 KTdmdp+AL6m953NnYc5QNbo= =BWbr -----END PGP SIGNATURE-----
author Thomas Arendsen Hein <thomas@intevation.de>
date Thu, 30 Jun 2005 07:16:05 +0100
parents c6a2e41c8c60
children 3d4d5f2aba9a 4fc63e22b1fe
line wrap: on
line source

#!/bin/bash -x

hg clone http://localhost:20059/ copy
echo $?
ls copy

cat > dumb.py <<EOF
import BaseHTTPServer, SimpleHTTPServer, signal

def run(server_class=BaseHTTPServer.HTTPServer,
        handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler):
    server_address = ('localhost', 20059)
    httpd = server_class(server_address, handler_class)
    httpd.serve_forever()

signal.signal(signal.SIGTERM, lambda x: sys.exit(0))
run()
EOF

python dumb.py 2>/dev/null &

hg clone http://localhost:20059/foo copy2
echo $?

set +x
kill $!