equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 |
2 |
|
3 echo |
|
4 echo % prepare repo a |
3 mkdir a |
5 mkdir a |
4 cd a |
6 cd a |
5 hg init |
7 hg init |
6 echo a > a |
8 echo a > a |
7 hg add a |
9 hg add a |
8 hg commit -m test -d '0 0' |
10 hg commit -m test -d '0 0' |
|
11 echo first line > b |
|
12 hg add b |
|
13 # create a non-inlined filelog |
|
14 python -c 'for x in range(10000): print x' >> data1 |
|
15 for j in 0 1 2 3 4 5 6 7 8 9; do |
|
16 cat data1 >> b |
|
17 hg commit -m test -d '0 0' |
|
18 done |
|
19 echo % "list files in store/data (should show a 'b.d')" |
|
20 for i in .hg/store/data/*; do |
|
21 echo $i |
|
22 done |
9 |
23 |
10 # Default operation |
24 echo |
|
25 echo % default operation |
11 hg clone . ../b |
26 hg clone . ../b |
12 cd ../b |
27 cd ../b |
13 cat a |
28 cat a |
14 hg verify |
29 hg verify |
15 |
30 |
16 # No update |
31 echo |
|
32 echo % no update |
17 hg clone -U . ../c |
33 hg clone -U . ../c |
18 cd ../c |
34 cd ../c |
19 cat a 2>/dev/null || echo "a not present" |
35 cat a 2>/dev/null || echo "a not present" |
20 hg verify |
36 hg verify |
21 |
37 |
22 # Default destination |
38 echo |
|
39 echo % default destination |
23 mkdir ../d |
40 mkdir ../d |
24 cd ../d |
41 cd ../d |
25 hg clone ../a |
42 hg clone ../a |
26 cd a |
43 cd a |
27 hg cat a |
44 hg cat a |
28 |
45 |
29 # check that we drop the file:// from the path before |
46 echo |
30 # writing the .hgrc |
47 echo % "check that we drop the file:// from the path before" |
|
48 echo % "writing the .hgrc" |
31 cd ../.. |
49 cd ../.. |
32 hg clone file://a e |
50 hg clone file://a e |
33 grep 'file:' e/.hg/hgrc |
51 grep 'file:' e/.hg/hgrc |
34 |
52 |
35 # check that path aliases are expanded |
53 echo |
|
54 echo % check that path aliases are expanded |
36 hg clone -q -U --config 'paths.foobar=a#0' foobar f |
55 hg clone -q -U --config 'paths.foobar=a#0' foobar f |
37 hg -R f showconfig paths.default | sed -e 's,.*/,,' |
56 hg -R f showconfig paths.default | sed -e 's,.*/,,' |
38 |
57 |
|
58 echo |
|
59 echo % use --pull |
|
60 hg clone --pull a g |
|
61 hg -R g verify |
|
62 |
39 exit 0 |
63 exit 0 |