##// END OF EJS Templates
Provided platform dependent implementations for explain_exit...
Provided platform dependent implementations for explain_exit os.system return code is system dependent.

File last commit:

r705:57486910 merge default
r782:cdb9e95b default
Show More
test-bad-pull
28 lines | 615 B | text/plain | TextLexer
Thomas Arendsen Hein
Remove bashisms and use /bin/sh instead of /bin/bash....
r544 #!/bin/sh -x
mpm@selenic.com
commands: report http exceptions nicely...
r395
mpm@selenic.com
[PATCH] add clone command...
r485 hg clone http://localhost:20059/ copy
mpm@selenic.com
Fix troubles with clone and exception handling...
r503 echo $?
ls copy
mpm@selenic.com
commands: report http exceptions nicely...
r395
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
Thomas Arendsen Hein
Fixed tests....
r695 set +x # backgrounding sometimes disturbs the order of command tracing
mpm@selenic.com
commands: report http exceptions nicely...
r395 python dumb.py 2>/dev/null &
Thomas Arendsen Hein
Fixed tests....
r695 set -x
mpm@selenic.com
commands: report http exceptions nicely...
r395
mpm@selenic.com
[PATCH] add clone command...
r485 hg clone http://localhost:20059/foo copy2
mpm@selenic.com
Fix troubles with clone and exception handling...
r503 echo $?
mpm@selenic.com
commands: report http exceptions nicely...
r395
mpm@selenic.com
Fix troubles with clone and exception handling...
r503 set +x
Thomas Arendsen Hein
Use "kill $!" to kill running background processes....
r492 kill $!