equal
deleted
inserted
replaced
|
1 #!/bin/sh |
|
2 |
|
3 mkdir test |
|
4 cd test |
|
5 hg init |
|
6 for i in 0 1 2 3 4 5 6 7 8; do |
|
7 echo $i >> foo |
|
8 hg commit -A -m $i -d "1000000 0" |
|
9 done |
|
10 hg verify |
|
11 hg serve -p 20059 -d --pid-file=hg.pid |
|
12 cd .. |
|
13 |
|
14 hg init new |
|
15 # http incoming |
|
16 http_proxy= hg -R new incoming http://localhost:20059/ |
|
17 # local incoming |
|
18 hg -R new incoming test |
|
19 |
|
20 # test with --bundle |
|
21 http_proxy= hg -R new incoming --bundle test.hg http://localhost:20059/ |
|
22 hg -R new incoming --bundle test2.hg test |
|
23 |
|
24 # test the resulting bundles |
|
25 hg init temp |
|
26 hg init temp2 |
|
27 hg -R temp unbundle test.hg |
|
28 hg -R temp2 unbundle test2.hg |
|
29 hg -R temp tip |
|
30 hg -R temp2 tip |
|
31 |
|
32 rm -rf temp temp2 new |
|
33 |
|
34 # test outgoing |
|
35 hg clone test test-dev |
|
36 cd test-dev |
|
37 for i in 9 10 11 12 13; do |
|
38 echo $i >> foo |
|
39 hg commit -A -m $i -d "1000000 0" |
|
40 done |
|
41 hg verify |
|
42 cd .. |
|
43 hg -R test-dev outgoing test |
|
44 http_proxy= hg -R test-dev outgoing http://localhost:20059/ |
|
45 |
|
46 kill `cat test/hg.pid` |