Mercurial > evolve
comparison tests/test-exchange-obsmarkers-case-C3.t @ 2268:f2ebe960998b stable
tests: update test to match upstreamable version
Name have been clarified, documentation has been updated and some test-case have
been updated to match the intended test.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Sat, 08 Apr 2017 12:48:20 +0200 |
parents | tests/test-exchange-C3.t@a202f3af890c |
children | 5adb8bdb935e |
comparison
equal
deleted
inserted
replaced
2267:150fee60887a | 2268:f2ebe960998b |
---|---|
1 ============================================ | |
2 Testing obsolescence markers push: Cases C.3 | |
3 ============================================ | |
4 | |
5 Mercurial pushes obsolescences markers relevant to the "pushed-set", the set of | |
6 all changesets that requested to be "in sync" after the push (even if they are | |
7 already on both side). | |
8 | |
9 This test belongs to a series of tests checking such set is properly computed | |
10 and applied. This does not tests "obsmarkers" discovery capabilities. | |
11 | |
12 Category C: advanced case | |
13 TestCase 3: Pruned changeset on precursors of another pruned one | |
14 Variants: | |
15 # a: explicite push | |
16 # b: bare push | |
17 | |
18 C.3 Pruned changeset on precursors of another pruned one | |
19 ======================================================== | |
20 | |
21 .. {{{ | |
22 .. B ⊗ | |
23 .. | | |
24 .. A ø⇠⊗ A' | |
25 .. |/ | |
26 .. ● O | |
27 .. }}} | |
28 .. | |
29 .. Marker exist from: | |
30 .. | |
31 .. * A' succeed to A | |
32 .. * A' (prune | |
33 .. * B (prune) | |
34 .. | |
35 .. Command run: | |
36 .. | |
37 .. * hg push -r A' | |
38 .. * hg push | |
39 .. | |
40 .. Expected exchange: | |
41 .. | |
42 .. * `A ø⇠⊗ A'` | |
43 .. * A (prune) | |
44 .. * B (prune) | |
45 | |
46 Setup | |
47 ----- | |
48 | |
49 $ . $TESTDIR/testlib/exchange-obsmarker-util.sh | |
50 | |
51 Initial | |
52 | |
53 $ setuprepos C.3 | |
54 creating test repo for test case C.3 | |
55 - pulldest | |
56 - main | |
57 - pushdest | |
58 cd into `main` and proceed with env setup | |
59 $ cd main | |
60 $ mkcommit A0 | |
61 $ mkcommit B | |
62 $ hg prune -qd '0 0' . | |
63 $ hg update -q 0 | |
64 $ mkcommit A1 | |
65 created new head | |
66 $ hg debugobsolete `getid 'desc(A0)'` `getid 'desc(A1)'` | |
67 $ hg prune -qd '0 0' . | |
68 $ hg log -G --hidden | |
69 x e5ea8f9c7314 (draft): A1 | |
70 | | |
71 | x 06055a7959d4 (draft): B | |
72 | | | |
73 | x 28b51eb45704 (draft): A0 | |
74 |/ | |
75 @ a9bdc8b26820 (public): O | |
76 | |
77 $ inspect_obsmarkers | |
78 obsstore content | |
79 ================ | |
80 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
81 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
82 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
83 obshashtree | |
84 =========== | |
85 a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04 40be80b35671116f2c61ef25797806536a6eb5a0 | |
86 28b51eb45704506b5c603decd6bf7ac5e0f6a52f beac7228bbe708bc7c9181c3c27f8a17f21dbd9f | |
87 06055a7959d4128e6e3bccfd01482e83a2db8a3a 8b648bd67281e9e525919285ac7b3bb2836c2f02 | |
88 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 dcd2b566ad0983333be704afdc205066e1a6b742 | |
89 obshashrange | |
90 ============ | |
91 rev node index size depth obshash | |
92 0 a9bdc8b26820 0 1 1 40be80b35671 | |
93 $ cd .. | |
94 $ cd .. | |
95 | |
96 $ cp -R C.3 C.3.a | |
97 $ cp -R C.3 C.3.b | |
98 | |
99 Actual Test (explicit push) | |
100 --------------------------- | |
101 | |
102 $ dotest C.3.a O | |
103 ## Running testcase C.3.a | |
104 # testing echange of "O" (a9bdc8b26820) | |
105 ## initial state | |
106 # obstore: main | |
107 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
108 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
109 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
110 # obstore: pushdest | |
111 # obstore: pulldest | |
112 ## pushing "O" from main to pushdest | |
113 pushing to pushdest | |
114 searching for changes | |
115 no changes found | |
116 remote: 3 new obsolescence markers | |
117 ## post push state | |
118 # obstore: main | |
119 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
120 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
121 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
122 # obstore: pushdest | |
123 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
124 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
125 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
126 # obstore: pulldest | |
127 ## pulling "a9bdc8b26820" from main into pulldest | |
128 pulling from main | |
129 no changes found | |
130 3 new obsolescence markers | |
131 ## post pull state | |
132 # obstore: main | |
133 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
134 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
135 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
136 # obstore: pushdest | |
137 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
138 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
139 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
140 # obstore: pulldest | |
141 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
142 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
143 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
144 | |
145 Actual Test (bare push) | |
146 ------------------------------------- | |
147 | |
148 $ dotest C.3.b | |
149 ## Running testcase C.3.b | |
150 ## initial state | |
151 # obstore: main | |
152 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
153 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
154 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
155 # obstore: pushdest | |
156 # obstore: pulldest | |
157 ## pushing from main to pushdest | |
158 pushing to pushdest | |
159 searching for changes | |
160 no changes found | |
161 remote: 3 new obsolescence markers | |
162 ## post push state | |
163 # obstore: main | |
164 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
165 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
166 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
167 # obstore: pushdest | |
168 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
169 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
170 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
171 # obstore: pulldest | |
172 ## pulling from main into pulldest | |
173 pulling from main | |
174 searching for changes | |
175 no changes found | |
176 3 new obsolescence markers | |
177 ## post pull state | |
178 # obstore: main | |
179 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
180 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
181 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
182 # obstore: pushdest | |
183 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
184 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
185 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
186 # obstore: pulldest | |
187 06055a7959d4128e6e3bccfd01482e83a2db8a3a 0 {28b51eb45704506b5c603decd6bf7ac5e0f6a52f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
188 28b51eb45704506b5c603decd6bf7ac5e0f6a52f e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
189 e5ea8f9c73143125d36658e90ef70c6d2027a5b7 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |