view tests/test-bad-pull @ 546:c8ae964109c1

Add an empty line after description in verbose mode of show_changeset. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Add an empty line after description in verbose mode of show_changeset. This makes it a little bit easier to see where a new changeset starts. manifest hash: dd0dc3a135ca2fabed03b86116863c93a451670d -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCxOVgW7P1GVgWeRoRAjtdAJ9B/ECd/Rhws2Bd+IcwRyqcYEN0ugCfbug2 Uhy2yUhV+mlrqFkoNBkcOmM= =ttyp -----END PGP SIGNATURE-----
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 01 Jul 2005 07:40:32 +0100
parents 721bfca3a9dc
children 4fc63e22b1fe
line wrap: on
line source

#!/bin/sh -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 &
sleep 2

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

set +x
kill $!