##// END OF EJS Templates
increase code coverage of test-clone...
Adrian Buehlmann -
r6947:a7fcb43a default
parent child Browse files
Show More
@@ -1,39 +1,63 b''
1 1 #!/bin/sh
2 2
3 echo
4 echo % prepare repo a
3 5 mkdir a
4 6 cd a
5 7 hg init
6 8 echo a > a
7 9 hg add a
8 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 26 hg clone . ../b
12 27 cd ../b
13 28 cat a
14 29 hg verify
15 30
16 # No update
31 echo
32 echo % no update
17 33 hg clone -U . ../c
18 34 cd ../c
19 35 cat a 2>/dev/null || echo "a not present"
20 36 hg verify
21 37
22 # Default destination
38 echo
39 echo % default destination
23 40 mkdir ../d
24 41 cd ../d
25 42 hg clone ../a
26 43 cd a
27 44 hg cat a
28 45
29 # check that we drop the file:// from the path before
30 # writing the .hgrc
46 echo
47 echo % "check that we drop the file:// from the path before"
48 echo % "writing the .hgrc"
31 49 cd ../..
32 50 hg clone file://a e
33 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 55 hg clone -q -U --config 'paths.foobar=a#0' foobar f
37 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 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 9 updating working directory
2 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
10 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
3 11 a
4 12 checking changesets
5 13 checking manifests
6 14 crosschecking files in changesets and manifests
7 15 checking files
8 1 files, 1 changesets, 1 total revisions
16 2 files, 11 changesets, 11 total revisions
17
18 % no update
9 19 a not present
10 20 checking changesets
11 21 checking manifests
12 22 crosschecking files in changesets and manifests
13 23 checking files
14 1 files, 1 changesets, 1 total revisions
24 2 files, 11 changesets, 11 total revisions
25
26 % default destination
15 27 destination directory: a
16 28 updating working directory
17 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
29 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
18 30 a
31
32 % check that we drop the file:// from the path before
33 % writing the .hgrc
19 34 updating working directory
20 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
35 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
36
37 % check that path aliases are expanded
21 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