Show More
@@ -1,39 +1,63 b'' | |||||
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 |
@@ -1,21 +1,52 b'' | |||||
|
1 | ||||
|
2 | % prepare repo a | |||
|
3 | % list files in store/data (should show a 'b.d') | |||
|
4 | .hg/store/data/a.i | |||
|
5 | .hg/store/data/b.d | |||
|
6 | .hg/store/data/b.i | |||
|
7 | ||||
|
8 | % default operation | |||
1 | updating working directory |
|
9 | updating working directory | |
2 |
|
|
10 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
3 | a |
|
11 | a | |
4 | checking changesets |
|
12 | checking changesets | |
5 | checking manifests |
|
13 | checking manifests | |
6 | crosschecking files in changesets and manifests |
|
14 | crosschecking files in changesets and manifests | |
7 | checking files |
|
15 | checking files | |
8 |
|
|
16 | 2 files, 11 changesets, 11 total revisions | |
|
17 | ||||
|
18 | % no update | |||
9 | a not present |
|
19 | a not present | |
10 | checking changesets |
|
20 | checking changesets | |
11 | checking manifests |
|
21 | checking manifests | |
12 | crosschecking files in changesets and manifests |
|
22 | crosschecking files in changesets and manifests | |
13 | checking files |
|
23 | checking files | |
14 |
|
|
24 | 2 files, 11 changesets, 11 total revisions | |
|
25 | ||||
|
26 | % default destination | |||
15 | destination directory: a |
|
27 | destination directory: a | |
16 | updating working directory |
|
28 | updating working directory | |
17 |
|
|
29 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
18 | a |
|
30 | a | |
|
31 | ||||
|
32 | % check that we drop the file:// from the path before | |||
|
33 | % writing the .hgrc | |||
19 | updating working directory |
|
34 | updating working directory | |
20 |
|
|
35 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
36 | ||||
|
37 | % check that path aliases are expanded | |||
21 | a#0 |
|
38 | a#0 | |
|
39 | ||||
|
40 | % use --pull | |||
|
41 | requesting all changes | |||
|
42 | adding changesets | |||
|
43 | adding manifests | |||
|
44 | adding file changes | |||
|
45 | added 11 changesets with 11 changes to 2 files | |||
|
46 | updating working directory | |||
|
47 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
48 | checking changesets | |||
|
49 | checking manifests | |||
|
50 | crosschecking files in changesets and manifests | |||
|
51 | checking files | |||
|
52 | 2 files, 11 changesets, 11 total revisions |
General Comments 0
You need to be logged in to leave comments.
Login now