##// END OF EJS Templates
test-strip-cross: test handling of linkrev crosses in the manifest
Alexis S. L. Carvalho -
r5912:d67cfe0d default
parent child Browse files
Show More
@@ -37,12 +37,18 b" commit '201' '021 120'"
37
37
38 commit '012 021' '102 201' '120 210'
38 commit '012 021' '102 201' '120 210'
39
39
40 commit 'manifest-file'
41
40 commit '102 120' '012 210' '021 201'
42 commit '102 120' '012 210' '021 201'
41
43
42 commit '201 210' '021 120' '012 102'
44 commit '201 210' '021 120' '012 102'
43
45
46 HGUSER=another-user commit 'manifest-file'
47
48 commit '012' 'manifest-file'
49
44 cd ..
50 cd ..
45 hg clone -q -U -r -1 -r -2 -r -3 orig crossed
51 hg clone -q -U -r -1 -r -2 -r -3 -r -4 -r -6 orig crossed
46
52
47 for i in crossed/.hg/store/00manifest.i crossed/.hg/store/data/*.i; do
53 for i in crossed/.hg/store/00manifest.i crossed/.hg/store/data/*.i; do
48 echo $i
54 echo $i
@@ -50,7 +56,7 b' for i in crossed/.hg/store/00manifest.i '
50 echo
56 echo
51 done
57 done
52
58
53 for i in 0 1 2; do
59 for i in 0 1 2 3 4; do
54 hg clone -q -U --pull crossed $i
60 hg clone -q -U --pull crossed $i
55 echo "% Trying to strip revision $i"
61 echo "% Trying to strip revision $i"
56 hg --cwd $i strip $i 2>&1 | hidefilename
62 hg --cwd $i strip $i 2>&1 | hidefilename
@@ -1,8 +1,10 b''
1 crossed/.hg/store/00manifest.i
1 crossed/.hg/store/00manifest.i
2 rev offset length base linkrev nodeid p1 p2
2 rev offset length base linkrev nodeid p1 p2
3 0 0 112 0 0 6f105cbb914d 000000000000 000000000000
3 0 0 112 0 0 6f105cbb914d 000000000000 000000000000
4 1 112 123 0 1 8f3d04e263e5 000000000000 000000000000
4 1 112 56 1 3 1b55917b3699 000000000000 000000000000
5 2 235 122 0 2 f0ef8726ac4f 000000000000 000000000000
5 2 168 123 1 1 8f3d04e263e5 000000000000 000000000000
6 3 291 122 1 2 f0ef8726ac4f 000000000000 000000000000
7 4 413 87 4 4 0b76e38b4070 000000000000 000000000000
6
8
7 crossed/.hg/store/data/012.i
9 crossed/.hg/store/data/012.i
8 rev offset length base linkrev nodeid p1 p2
10 rev offset length base linkrev nodeid p1 p2
@@ -40,6 +42,11 b' crossed/.hg/store/data/210.i'
40 1 3 3 1 1 5d9299349fc0 000000000000 000000000000
42 1 3 3 1 1 5d9299349fc0 000000000000 000000000000
41 2 6 3 2 0 2661d26c6496 000000000000 000000000000
43 2 6 3 2 0 2661d26c6496 000000000000 000000000000
42
44
45 crossed/.hg/store/data/manifest-file.i
46 rev offset length base linkrev nodeid p1 p2
47 0 0 3 0 3 b8e02f643373 000000000000 000000000000
48 1 3 3 1 4 5d9299349fc0 000000000000 000000000000
49
43 % Trying to strip revision 0
50 % Trying to strip revision 0
44 saving bundle to strip-backup/cbb8c2f0a2e3-backup
51 saving bundle to strip-backup/cbb8c2f0a2e3-backup
45 saving bundle to strip-backup/cbb8c2f0a2e3-temp
52 saving bundle to strip-backup/cbb8c2f0a2e3-temp
@@ -47,13 +54,13 b' adding branch'
47 adding changesets
54 adding changesets
48 adding manifests
55 adding manifests
49 adding file changes
56 adding file changes
50 added 2 changesets with 12 changes to 6 files (+1 heads)
57 added 4 changesets with 15 changes to 7 files (+3 heads)
51 % Verifying
58 % Verifying
52 checking changesets
59 checking changesets
53 checking manifests
60 checking manifests
54 crosschecking files in changesets and manifests
61 crosschecking files in changesets and manifests
55 checking files
62 checking files
56 6 files, 2 changesets, 12 total revisions
63 7 files, 4 changesets, 15 total revisions
57
64
58 % Trying to strip revision 1
65 % Trying to strip revision 1
59 saving bundle to strip-backup/124ecc0cbec9-backup
66 saving bundle to strip-backup/124ecc0cbec9-backup
@@ -62,13 +69,13 b' adding branch'
62 adding changesets
69 adding changesets
63 adding manifests
70 adding manifests
64 adding file changes
71 adding file changes
65 added 1 changesets with 10 changes to 6 files (+1 heads)
72 added 3 changesets with 12 changes to 7 files (+3 heads)
66 % Verifying
73 % Verifying
67 checking changesets
74 checking changesets
68 checking manifests
75 checking manifests
69 crosschecking files in changesets and manifests
76 crosschecking files in changesets and manifests
70 checking files
77 checking files
71 6 files, 2 changesets, 12 total revisions
78 7 files, 4 changesets, 14 total revisions
72
79
73 % Trying to strip revision 2
80 % Trying to strip revision 2
74 saving bundle to strip-backup/f6439b304a1a-backup
81 saving bundle to strip-backup/f6439b304a1a-backup
@@ -77,11 +84,35 b' adding branch'
77 adding changesets
84 adding changesets
78 adding manifests
85 adding manifests
79 adding file changes
86 adding file changes
80 added 0 changesets with 6 changes to 4 files
87 added 2 changesets with 8 changes to 6 files (+2 heads)
81 % Verifying
88 % Verifying
82 checking changesets
89 checking changesets
83 checking manifests
90 checking manifests
84 crosschecking files in changesets and manifests
91 crosschecking files in changesets and manifests
85 checking files
92 checking files
86 6 files, 2 changesets, 12 total revisions
93 7 files, 4 changesets, 14 total revisions
87
94
95 % Trying to strip revision 3
96 saving bundle to strip-backup/6e54ec5db740-backup
97 saving bundle to strip-backup/6e54ec5db740-temp
98 adding branch
99 adding changesets
100 adding manifests
101 adding file changes
102 added 1 changesets with 1 changes to 2 files (+1 heads)
103 % Verifying
104 checking changesets
105 checking manifests
106 crosschecking files in changesets and manifests
107 checking files
108 7 files, 4 changesets, 19 total revisions
109
110 % Trying to strip revision 4
111 saving bundle to strip-backup/9147ea23c156-backup
112 % Verifying
113 checking changesets
114 checking manifests
115 crosschecking files in changesets and manifests
116 checking files
117 7 files, 4 changesets, 19 total revisions
118
General Comments 0
You need to be logged in to leave comments. Login now