##// END OF EJS Templates
Do not use osutil.c with python 2.4 and Windows (issue1364)...
Do not use osutil.c with python 2.4 and Windows (issue1364) Windows python 2.4 os.stat() reports times including DST offset, while osutil.c reports the correct value, which makes status() systematically compare files content. This bug is fixed in python 2.5. Using osutil.py instead of osutil.c is 4x times slower on large repositories but current code is completely unusable. Given few people are likely to use python 2.4 on Windows this solution was considered a good trade-off compared to more invasive solutions trying to address the offset issue.

File last commit:

r10154:d4a62b6d stable
r10521:bde1bb25 stable
Show More
test-bad-pull
30 lines | 735 B | text/plain | TextLexer
Thomas Arendsen Hein
Don't use 'set -x', fix exports, sed and hexdump usage for Solaris.
r800 #!/bin/sh
mpm@selenic.com
commands: report http exceptions nicely...
r395
Benoit Boissinot
Backed out changeset 490e40816cbd...
r7919 hg clone http://localhost:$HGPORT/ copy
echo $?
Alexis S. L. Carvalho
Don't use test -e in tests - sh doesn't like it on Solaris
r3469 test -d copy || echo copy: No such file or directory
mpm@selenic.com
commands: report http exceptions nicely...
r395
cat > dumb.py <<EOF
Bryan O'Sullivan
Allow tests to run in parallel.
r5384 import BaseHTTPServer, SimpleHTTPServer, os, signal
mpm@selenic.com
commands: report http exceptions nicely...
r395
def run(server_class=BaseHTTPServer.HTTPServer,
handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler):
Bryan O'Sullivan
Allow tests to run in parallel.
r5384 server_address = ('localhost', int(os.environ['HGPORT']))
mpm@selenic.com
commands: report http exceptions nicely...
r395 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 &
Vadim Gelfer
tests: record few more daemon pids to be safe
r2572 echo $! >> $DAEMON_PIDS
mpm@selenic.com
commands: report http exceptions nicely...
r395
Alexis S. L. Carvalho
test-bad-pull: try to avoid timing-related failures
r4317 # give the server some time to start running
sleep 1
Wagner Bruna
run-tests.py: clears http_proxy for all tests
r10154 hg clone http://localhost:$HGPORT/foo copy2 2>&1 | \
Vadim Gelfer
test-bad-pull: fix change in error output.
r2438 sed -e 's/404.*/404/' -e 's/Date:.*/Date:/'
Benoit Boissinot
Backed out changeset 490e40816cbd...
r7919 echo $?
mpm@selenic.com
commands: report http exceptions nicely...
r395
Thomas Arendsen Hein
Use "kill $!" to kill running background processes....
r492 kill $!