Show More
@@ -1,25 +1,25 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg clone http://localhost:20059/ copy |
|
3 | hg clone http://localhost:20059/ copy | |
4 | echo $? |
|
4 | echo $? | |
5 | ls copy |
|
5 | ls copy | |
6 |
|
6 | |||
7 | cat > dumb.py <<EOF |
|
7 | cat > dumb.py <<EOF | |
8 | import BaseHTTPServer, SimpleHTTPServer, signal |
|
8 | import BaseHTTPServer, SimpleHTTPServer, signal | |
9 |
|
9 | |||
10 | def run(server_class=BaseHTTPServer.HTTPServer, |
|
10 | def run(server_class=BaseHTTPServer.HTTPServer, | |
11 | handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): |
|
11 | handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): | |
12 | server_address = ('localhost', 20059) |
|
12 | server_address = ('localhost', 20059) | |
13 | httpd = server_class(server_address, handler_class) |
|
13 | httpd = server_class(server_address, handler_class) | |
14 | httpd.serve_forever() |
|
14 | httpd.serve_forever() | |
15 |
|
15 | |||
16 | signal.signal(signal.SIGTERM, lambda x: sys.exit(0)) |
|
16 | signal.signal(signal.SIGTERM, lambda x: sys.exit(0)) | |
17 | run() |
|
17 | run() | |
18 | EOF |
|
18 | EOF | |
19 |
|
19 | |||
20 | python dumb.py 2>/dev/null & |
|
20 | python dumb.py 2>/dev/null & | |
21 |
|
21 | |||
22 | hg clone http://localhost:20059/foo copy2 |
|
22 | http_proxy= hg clone http://localhost:20059/foo copy2 | |
23 | echo $? |
|
23 | echo $? | |
24 |
|
24 | |||
25 | kill $! |
|
25 | kill $! |
@@ -1,22 +1,22 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | mkdir test |
|
3 | mkdir test | |
4 | cd test |
|
4 | cd test | |
5 | echo foo>foo |
|
5 | echo foo>foo | |
6 | hg init |
|
6 | hg init | |
7 | hg addremove |
|
7 | hg addremove | |
8 | hg commit -m 1 |
|
8 | hg commit -m 1 | |
9 | hg verify |
|
9 | hg verify | |
10 | hg serve -p 20059 > /dev/null & |
|
10 | hg serve -p 20059 > /dev/null & | |
11 | sleep 1 # wait for server to be started |
|
11 | sleep 1 # wait for server to be started | |
12 | cd .. |
|
12 | cd .. | |
13 |
|
13 | |||
14 | hg clone http://localhost:20059/ copy |
|
14 | http_proxy= hg clone http://localhost:20059/ copy | |
15 | cd copy |
|
15 | cd copy | |
16 | hg verify |
|
16 | hg verify | |
17 | hg co |
|
17 | hg co | |
18 | cat foo |
|
18 | cat foo | |
19 | hg manifest |
|
19 | hg manifest | |
20 | hg pull |
|
20 | hg pull | |
21 |
|
21 | |||
22 | kill $! |
|
22 | kill $! |
General Comments 0
You need to be logged in to leave comments.
Login now