##// END OF EJS Templates
test-phase-exchange: stabilize for Windows
Matt Harbison -
r33508:d09de637 default
parent child Browse files
Show More
@@ -1,1343 +1,1349
1 #require killdaemons
1 #require killdaemons
2
2
3 $ cat >> $HGRCPATH << EOF
3 $ cat >> $HGRCPATH << EOF
4 > [extensions]
4 > [extensions]
5 > phasereport=$TESTDIR/testlib/ext-phase-report.py
5 > phasereport=$TESTDIR/testlib/ext-phase-report.py
6 > EOF
6 > EOF
7
7
8 $ hgph() { hg log -G --template "{rev} {phase} {desc} - {node|short}\n" $*; }
8 $ hgph() { hg log -G --template "{rev} {phase} {desc} - {node|short}\n" $*; }
9
9
10 $ mkcommit() {
10 $ mkcommit() {
11 > echo "$1" > "$1"
11 > echo "$1" > "$1"
12 > hg add "$1"
12 > hg add "$1"
13 > message="$1"
13 > message="$1"
14 > shift
14 > shift
15 > hg ci -m "$message" $*
15 > hg ci -m "$message" $*
16 > }
16 > }
17
17
18 $ hg init alpha
18 $ hg init alpha
19 $ cd alpha
19 $ cd alpha
20 $ mkcommit a-A
20 $ mkcommit a-A
21 test-debug-phase: new rev 0: x -> 1
21 test-debug-phase: new rev 0: x -> 1
22 $ mkcommit a-B
22 $ mkcommit a-B
23 test-debug-phase: new rev 1: x -> 1
23 test-debug-phase: new rev 1: x -> 1
24 $ mkcommit a-C
24 $ mkcommit a-C
25 test-debug-phase: new rev 2: x -> 1
25 test-debug-phase: new rev 2: x -> 1
26 $ mkcommit a-D
26 $ mkcommit a-D
27 test-debug-phase: new rev 3: x -> 1
27 test-debug-phase: new rev 3: x -> 1
28 $ hgph
28 $ hgph
29 @ 3 draft a-D - b555f63b6063
29 @ 3 draft a-D - b555f63b6063
30 |
30 |
31 o 2 draft a-C - 54acac6f23ab
31 o 2 draft a-C - 54acac6f23ab
32 |
32 |
33 o 1 draft a-B - 548a3d25dbf0
33 o 1 draft a-B - 548a3d25dbf0
34 |
34 |
35 o 0 draft a-A - 054250a37db4
35 o 0 draft a-A - 054250a37db4
36
36
37
37
38 $ hg init ../beta
38 $ hg init ../beta
39 $ hg push -r 1 ../beta
39 $ hg push -r 1 ../beta
40 pushing to ../beta
40 pushing to ../beta
41 searching for changes
41 searching for changes
42 adding changesets
42 adding changesets
43 adding manifests
43 adding manifests
44 adding file changes
44 adding file changes
45 added 2 changesets with 2 changes to 2 files
45 added 2 changesets with 2 changes to 2 files
46 test-debug-phase: new rev 0: x -> 0
46 test-debug-phase: new rev 0: x -> 0
47 test-debug-phase: new rev 1: x -> 0
47 test-debug-phase: new rev 1: x -> 0
48 test-debug-phase: move rev 0: 1 -> 0
48 test-debug-phase: move rev 0: 1 -> 0
49 test-debug-phase: move rev 1: 1 -> 0
49 test-debug-phase: move rev 1: 1 -> 0
50 $ hgph
50 $ hgph
51 @ 3 draft a-D - b555f63b6063
51 @ 3 draft a-D - b555f63b6063
52 |
52 |
53 o 2 draft a-C - 54acac6f23ab
53 o 2 draft a-C - 54acac6f23ab
54 |
54 |
55 o 1 public a-B - 548a3d25dbf0
55 o 1 public a-B - 548a3d25dbf0
56 |
56 |
57 o 0 public a-A - 054250a37db4
57 o 0 public a-A - 054250a37db4
58
58
59
59
60 $ cd ../beta
60 $ cd ../beta
61 $ hgph
61 $ hgph
62 o 1 public a-B - 548a3d25dbf0
62 o 1 public a-B - 548a3d25dbf0
63 |
63 |
64 o 0 public a-A - 054250a37db4
64 o 0 public a-A - 054250a37db4
65
65
66 $ hg up -q
66 $ hg up -q
67 $ mkcommit b-A
67 $ mkcommit b-A
68 test-debug-phase: new rev 2: x -> 1
68 test-debug-phase: new rev 2: x -> 1
69 $ hgph
69 $ hgph
70 @ 2 draft b-A - f54f1bb90ff3
70 @ 2 draft b-A - f54f1bb90ff3
71 |
71 |
72 o 1 public a-B - 548a3d25dbf0
72 o 1 public a-B - 548a3d25dbf0
73 |
73 |
74 o 0 public a-A - 054250a37db4
74 o 0 public a-A - 054250a37db4
75
75
76 $ hg pull ../alpha
76 $ hg pull ../alpha
77 pulling from ../alpha
77 pulling from ../alpha
78 searching for changes
78 searching for changes
79 adding changesets
79 adding changesets
80 adding manifests
80 adding manifests
81 adding file changes
81 adding file changes
82 added 2 changesets with 2 changes to 2 files (+1 heads)
82 added 2 changesets with 2 changes to 2 files (+1 heads)
83 test-debug-phase: new rev 3: x -> 0
83 test-debug-phase: new rev 3: x -> 0
84 test-debug-phase: new rev 4: x -> 0
84 test-debug-phase: new rev 4: x -> 0
85 (run 'hg heads' to see heads, 'hg merge' to merge)
85 (run 'hg heads' to see heads, 'hg merge' to merge)
86 $ hgph
86 $ hgph
87 o 4 public a-D - b555f63b6063
87 o 4 public a-D - b555f63b6063
88 |
88 |
89 o 3 public a-C - 54acac6f23ab
89 o 3 public a-C - 54acac6f23ab
90 |
90 |
91 | @ 2 draft b-A - f54f1bb90ff3
91 | @ 2 draft b-A - f54f1bb90ff3
92 |/
92 |/
93 o 1 public a-B - 548a3d25dbf0
93 o 1 public a-B - 548a3d25dbf0
94 |
94 |
95 o 0 public a-A - 054250a37db4
95 o 0 public a-A - 054250a37db4
96
96
97
97
98 pull did not updated ../alpha state.
98 pull did not updated ../alpha state.
99 push from alpha to beta should update phase even if nothing is transferred
99 push from alpha to beta should update phase even if nothing is transferred
100
100
101 $ cd ../alpha
101 $ cd ../alpha
102 $ hgph # not updated by remote pull
102 $ hgph # not updated by remote pull
103 @ 3 draft a-D - b555f63b6063
103 @ 3 draft a-D - b555f63b6063
104 |
104 |
105 o 2 draft a-C - 54acac6f23ab
105 o 2 draft a-C - 54acac6f23ab
106 |
106 |
107 o 1 public a-B - 548a3d25dbf0
107 o 1 public a-B - 548a3d25dbf0
108 |
108 |
109 o 0 public a-A - 054250a37db4
109 o 0 public a-A - 054250a37db4
110
110
111 $ hg push -r 2 ../beta
111 $ hg push -r 2 ../beta
112 pushing to ../beta
112 pushing to ../beta
113 searching for changes
113 searching for changes
114 no changes found
114 no changes found
115 test-debug-phase: move rev 2: 1 -> 0
115 test-debug-phase: move rev 2: 1 -> 0
116 [1]
116 [1]
117 $ hgph
117 $ hgph
118 @ 3 draft a-D - b555f63b6063
118 @ 3 draft a-D - b555f63b6063
119 |
119 |
120 o 2 public a-C - 54acac6f23ab
120 o 2 public a-C - 54acac6f23ab
121 |
121 |
122 o 1 public a-B - 548a3d25dbf0
122 o 1 public a-B - 548a3d25dbf0
123 |
123 |
124 o 0 public a-A - 054250a37db4
124 o 0 public a-A - 054250a37db4
125
125
126 $ hg push ../beta
126 $ hg push ../beta
127 pushing to ../beta
127 pushing to ../beta
128 searching for changes
128 searching for changes
129 no changes found
129 no changes found
130 test-debug-phase: move rev 3: 1 -> 0
130 test-debug-phase: move rev 3: 1 -> 0
131 [1]
131 [1]
132 $ hgph
132 $ hgph
133 @ 3 public a-D - b555f63b6063
133 @ 3 public a-D - b555f63b6063
134 |
134 |
135 o 2 public a-C - 54acac6f23ab
135 o 2 public a-C - 54acac6f23ab
136 |
136 |
137 o 1 public a-B - 548a3d25dbf0
137 o 1 public a-B - 548a3d25dbf0
138 |
138 |
139 o 0 public a-A - 054250a37db4
139 o 0 public a-A - 054250a37db4
140
140
141
141
142 update must update phase of common changeset too
142 update must update phase of common changeset too
143
143
144 $ hg pull ../beta # getting b-A
144 $ hg pull ../beta # getting b-A
145 pulling from ../beta
145 pulling from ../beta
146 searching for changes
146 searching for changes
147 adding changesets
147 adding changesets
148 adding manifests
148 adding manifests
149 adding file changes
149 adding file changes
150 added 1 changesets with 1 changes to 1 files (+1 heads)
150 added 1 changesets with 1 changes to 1 files (+1 heads)
151 test-debug-phase: new rev 4: x -> 0
151 test-debug-phase: new rev 4: x -> 0
152 (run 'hg heads' to see heads, 'hg merge' to merge)
152 (run 'hg heads' to see heads, 'hg merge' to merge)
153
153
154 $ cd ../beta
154 $ cd ../beta
155 $ hgph # not updated by remote pull
155 $ hgph # not updated by remote pull
156 o 4 public a-D - b555f63b6063
156 o 4 public a-D - b555f63b6063
157 |
157 |
158 o 3 public a-C - 54acac6f23ab
158 o 3 public a-C - 54acac6f23ab
159 |
159 |
160 | @ 2 draft b-A - f54f1bb90ff3
160 | @ 2 draft b-A - f54f1bb90ff3
161 |/
161 |/
162 o 1 public a-B - 548a3d25dbf0
162 o 1 public a-B - 548a3d25dbf0
163 |
163 |
164 o 0 public a-A - 054250a37db4
164 o 0 public a-A - 054250a37db4
165
165
166 $ hg pull ../alpha
166 $ hg pull ../alpha
167 pulling from ../alpha
167 pulling from ../alpha
168 searching for changes
168 searching for changes
169 no changes found
169 no changes found
170 test-debug-phase: move rev 2: 1 -> 0
170 test-debug-phase: move rev 2: 1 -> 0
171 $ hgph
171 $ hgph
172 o 4 public a-D - b555f63b6063
172 o 4 public a-D - b555f63b6063
173 |
173 |
174 o 3 public a-C - 54acac6f23ab
174 o 3 public a-C - 54acac6f23ab
175 |
175 |
176 | @ 2 public b-A - f54f1bb90ff3
176 | @ 2 public b-A - f54f1bb90ff3
177 |/
177 |/
178 o 1 public a-B - 548a3d25dbf0
178 o 1 public a-B - 548a3d25dbf0
179 |
179 |
180 o 0 public a-A - 054250a37db4
180 o 0 public a-A - 054250a37db4
181
181
182
182
183 Publish configuration option
183 Publish configuration option
184 ----------------------------
184 ----------------------------
185
185
186 Pull
186 Pull
187 ````
187 ````
188
188
189 changegroup are added without phase movement
189 changegroup are added without phase movement
190
190
191 $ hg bundle -a ../base.bundle
191 $ hg bundle -a ../base.bundle
192 5 changesets found
192 5 changesets found
193 $ cd ..
193 $ cd ..
194 $ hg init mu
194 $ hg init mu
195 $ cd mu
195 $ cd mu
196 $ cat > .hg/hgrc << EOF
196 $ cat > .hg/hgrc << EOF
197 > [phases]
197 > [phases]
198 > publish=0
198 > publish=0
199 > EOF
199 > EOF
200 $ hg unbundle ../base.bundle
200 $ hg unbundle ../base.bundle
201 adding changesets
201 adding changesets
202 adding manifests
202 adding manifests
203 adding file changes
203 adding file changes
204 added 5 changesets with 5 changes to 5 files (+1 heads)
204 added 5 changesets with 5 changes to 5 files (+1 heads)
205 test-debug-phase: new rev 0: x -> 1
205 test-debug-phase: new rev 0: x -> 1
206 test-debug-phase: new rev 1: x -> 1
206 test-debug-phase: new rev 1: x -> 1
207 test-debug-phase: new rev 2: x -> 1
207 test-debug-phase: new rev 2: x -> 1
208 test-debug-phase: new rev 3: x -> 1
208 test-debug-phase: new rev 3: x -> 1
209 test-debug-phase: new rev 4: x -> 1
209 test-debug-phase: new rev 4: x -> 1
210 (run 'hg heads' to see heads, 'hg merge' to merge)
210 (run 'hg heads' to see heads, 'hg merge' to merge)
211 $ hgph
211 $ hgph
212 o 4 draft a-D - b555f63b6063
212 o 4 draft a-D - b555f63b6063
213 |
213 |
214 o 3 draft a-C - 54acac6f23ab
214 o 3 draft a-C - 54acac6f23ab
215 |
215 |
216 | o 2 draft b-A - f54f1bb90ff3
216 | o 2 draft b-A - f54f1bb90ff3
217 |/
217 |/
218 o 1 draft a-B - 548a3d25dbf0
218 o 1 draft a-B - 548a3d25dbf0
219 |
219 |
220 o 0 draft a-A - 054250a37db4
220 o 0 draft a-A - 054250a37db4
221
221
222 $ cd ..
222 $ cd ..
223
223
224 Pulling from publish=False to publish=False does not move boundary.
224 Pulling from publish=False to publish=False does not move boundary.
225
225
226 $ hg init nu
226 $ hg init nu
227 $ cd nu
227 $ cd nu
228 $ cat > .hg/hgrc << EOF
228 $ cat > .hg/hgrc << EOF
229 > [phases]
229 > [phases]
230 > publish=0
230 > publish=0
231 > EOF
231 > EOF
232 $ hg pull ../mu -r 54acac6f23ab
232 $ hg pull ../mu -r 54acac6f23ab
233 pulling from ../mu
233 pulling from ../mu
234 adding changesets
234 adding changesets
235 adding manifests
235 adding manifests
236 adding file changes
236 adding file changes
237 added 3 changesets with 3 changes to 3 files
237 added 3 changesets with 3 changes to 3 files
238 test-debug-phase: new rev 0: x -> 1
238 test-debug-phase: new rev 0: x -> 1
239 test-debug-phase: new rev 1: x -> 1
239 test-debug-phase: new rev 1: x -> 1
240 test-debug-phase: new rev 2: x -> 1
240 test-debug-phase: new rev 2: x -> 1
241 (run 'hg update' to get a working copy)
241 (run 'hg update' to get a working copy)
242 $ hgph
242 $ hgph
243 o 2 draft a-C - 54acac6f23ab
243 o 2 draft a-C - 54acac6f23ab
244 |
244 |
245 o 1 draft a-B - 548a3d25dbf0
245 o 1 draft a-B - 548a3d25dbf0
246 |
246 |
247 o 0 draft a-A - 054250a37db4
247 o 0 draft a-A - 054250a37db4
248
248
249
249
250 Even for common
250 Even for common
251
251
252 $ hg pull ../mu -r f54f1bb90ff3
252 $ hg pull ../mu -r f54f1bb90ff3
253 pulling from ../mu
253 pulling from ../mu
254 searching for changes
254 searching for changes
255 adding changesets
255 adding changesets
256 adding manifests
256 adding manifests
257 adding file changes
257 adding file changes
258 added 1 changesets with 1 changes to 1 files (+1 heads)
258 added 1 changesets with 1 changes to 1 files (+1 heads)
259 test-debug-phase: new rev 3: x -> 1
259 test-debug-phase: new rev 3: x -> 1
260 (run 'hg heads' to see heads, 'hg merge' to merge)
260 (run 'hg heads' to see heads, 'hg merge' to merge)
261 $ hgph
261 $ hgph
262 o 3 draft b-A - f54f1bb90ff3
262 o 3 draft b-A - f54f1bb90ff3
263 |
263 |
264 | o 2 draft a-C - 54acac6f23ab
264 | o 2 draft a-C - 54acac6f23ab
265 |/
265 |/
266 o 1 draft a-B - 548a3d25dbf0
266 o 1 draft a-B - 548a3d25dbf0
267 |
267 |
268 o 0 draft a-A - 054250a37db4
268 o 0 draft a-A - 054250a37db4
269
269
270
270
271
271
272 Pulling from Publish=True to Publish=False move boundary in common set.
272 Pulling from Publish=True to Publish=False move boundary in common set.
273 we are in nu
273 we are in nu
274
274
275 $ hg pull ../alpha -r b555f63b6063
275 $ hg pull ../alpha -r b555f63b6063
276 pulling from ../alpha
276 pulling from ../alpha
277 searching for changes
277 searching for changes
278 adding changesets
278 adding changesets
279 adding manifests
279 adding manifests
280 adding file changes
280 adding file changes
281 added 1 changesets with 1 changes to 1 files
281 added 1 changesets with 1 changes to 1 files
282 test-debug-phase: move rev 0: 1 -> 0
282 test-debug-phase: move rev 0: 1 -> 0
283 test-debug-phase: move rev 1: 1 -> 0
283 test-debug-phase: move rev 1: 1 -> 0
284 test-debug-phase: move rev 2: 1 -> 0
284 test-debug-phase: move rev 2: 1 -> 0
285 test-debug-phase: new rev 4: x -> 0
285 test-debug-phase: new rev 4: x -> 0
286 (run 'hg update' to get a working copy)
286 (run 'hg update' to get a working copy)
287 $ hgph # f54f1bb90ff3 stay draft, not ancestor of -r
287 $ hgph # f54f1bb90ff3 stay draft, not ancestor of -r
288 o 4 public a-D - b555f63b6063
288 o 4 public a-D - b555f63b6063
289 |
289 |
290 | o 3 draft b-A - f54f1bb90ff3
290 | o 3 draft b-A - f54f1bb90ff3
291 | |
291 | |
292 o | 2 public a-C - 54acac6f23ab
292 o | 2 public a-C - 54acac6f23ab
293 |/
293 |/
294 o 1 public a-B - 548a3d25dbf0
294 o 1 public a-B - 548a3d25dbf0
295 |
295 |
296 o 0 public a-A - 054250a37db4
296 o 0 public a-A - 054250a37db4
297
297
298
298
299 pulling from Publish=False to publish=False with some public
299 pulling from Publish=False to publish=False with some public
300
300
301 $ hg up -q f54f1bb90ff3
301 $ hg up -q f54f1bb90ff3
302 $ mkcommit n-A
302 $ mkcommit n-A
303 test-debug-phase: new rev 5: x -> 1
303 test-debug-phase: new rev 5: x -> 1
304 $ mkcommit n-B
304 $ mkcommit n-B
305 test-debug-phase: new rev 6: x -> 1
305 test-debug-phase: new rev 6: x -> 1
306 $ hgph
306 $ hgph
307 @ 6 draft n-B - 145e75495359
307 @ 6 draft n-B - 145e75495359
308 |
308 |
309 o 5 draft n-A - d6bcb4f74035
309 o 5 draft n-A - d6bcb4f74035
310 |
310 |
311 | o 4 public a-D - b555f63b6063
311 | o 4 public a-D - b555f63b6063
312 | |
312 | |
313 o | 3 draft b-A - f54f1bb90ff3
313 o | 3 draft b-A - f54f1bb90ff3
314 | |
314 | |
315 | o 2 public a-C - 54acac6f23ab
315 | o 2 public a-C - 54acac6f23ab
316 |/
316 |/
317 o 1 public a-B - 548a3d25dbf0
317 o 1 public a-B - 548a3d25dbf0
318 |
318 |
319 o 0 public a-A - 054250a37db4
319 o 0 public a-A - 054250a37db4
320
320
321 $ cd ../mu
321 $ cd ../mu
322 $ hg pull ../nu
322 $ hg pull ../nu
323 pulling from ../nu
323 pulling from ../nu
324 searching for changes
324 searching for changes
325 adding changesets
325 adding changesets
326 adding manifests
326 adding manifests
327 adding file changes
327 adding file changes
328 added 2 changesets with 2 changes to 2 files
328 added 2 changesets with 2 changes to 2 files
329 test-debug-phase: move rev 0: 1 -> 0
329 test-debug-phase: move rev 0: 1 -> 0
330 test-debug-phase: move rev 1: 1 -> 0
330 test-debug-phase: move rev 1: 1 -> 0
331 test-debug-phase: move rev 3: 1 -> 0
331 test-debug-phase: move rev 3: 1 -> 0
332 test-debug-phase: move rev 4: 1 -> 0
332 test-debug-phase: move rev 4: 1 -> 0
333 test-debug-phase: new rev 5: x -> 1
333 test-debug-phase: new rev 5: x -> 1
334 test-debug-phase: new rev 6: x -> 1
334 test-debug-phase: new rev 6: x -> 1
335 (run 'hg update' to get a working copy)
335 (run 'hg update' to get a working copy)
336 $ hgph
336 $ hgph
337 o 6 draft n-B - 145e75495359
337 o 6 draft n-B - 145e75495359
338 |
338 |
339 o 5 draft n-A - d6bcb4f74035
339 o 5 draft n-A - d6bcb4f74035
340 |
340 |
341 | o 4 public a-D - b555f63b6063
341 | o 4 public a-D - b555f63b6063
342 | |
342 | |
343 | o 3 public a-C - 54acac6f23ab
343 | o 3 public a-C - 54acac6f23ab
344 | |
344 | |
345 o | 2 draft b-A - f54f1bb90ff3
345 o | 2 draft b-A - f54f1bb90ff3
346 |/
346 |/
347 o 1 public a-B - 548a3d25dbf0
347 o 1 public a-B - 548a3d25dbf0
348 |
348 |
349 o 0 public a-A - 054250a37db4
349 o 0 public a-A - 054250a37db4
350
350
351 $ cd ..
351 $ cd ..
352
352
353 pulling into publish=True
353 pulling into publish=True
354
354
355 $ cd alpha
355 $ cd alpha
356 $ hgph
356 $ hgph
357 o 4 public b-A - f54f1bb90ff3
357 o 4 public b-A - f54f1bb90ff3
358 |
358 |
359 | @ 3 public a-D - b555f63b6063
359 | @ 3 public a-D - b555f63b6063
360 | |
360 | |
361 | o 2 public a-C - 54acac6f23ab
361 | o 2 public a-C - 54acac6f23ab
362 |/
362 |/
363 o 1 public a-B - 548a3d25dbf0
363 o 1 public a-B - 548a3d25dbf0
364 |
364 |
365 o 0 public a-A - 054250a37db4
365 o 0 public a-A - 054250a37db4
366
366
367 $ hg pull ../mu
367 $ hg pull ../mu
368 pulling from ../mu
368 pulling from ../mu
369 searching for changes
369 searching for changes
370 adding changesets
370 adding changesets
371 adding manifests
371 adding manifests
372 adding file changes
372 adding file changes
373 added 2 changesets with 2 changes to 2 files
373 added 2 changesets with 2 changes to 2 files
374 test-debug-phase: new rev 5: x -> 1
374 test-debug-phase: new rev 5: x -> 1
375 test-debug-phase: new rev 6: x -> 1
375 test-debug-phase: new rev 6: x -> 1
376 (run 'hg update' to get a working copy)
376 (run 'hg update' to get a working copy)
377 $ hgph
377 $ hgph
378 o 6 draft n-B - 145e75495359
378 o 6 draft n-B - 145e75495359
379 |
379 |
380 o 5 draft n-A - d6bcb4f74035
380 o 5 draft n-A - d6bcb4f74035
381 |
381 |
382 o 4 public b-A - f54f1bb90ff3
382 o 4 public b-A - f54f1bb90ff3
383 |
383 |
384 | @ 3 public a-D - b555f63b6063
384 | @ 3 public a-D - b555f63b6063
385 | |
385 | |
386 | o 2 public a-C - 54acac6f23ab
386 | o 2 public a-C - 54acac6f23ab
387 |/
387 |/
388 o 1 public a-B - 548a3d25dbf0
388 o 1 public a-B - 548a3d25dbf0
389 |
389 |
390 o 0 public a-A - 054250a37db4
390 o 0 public a-A - 054250a37db4
391
391
392 $ cd ..
392 $ cd ..
393
393
394 pulling back into original repo
394 pulling back into original repo
395
395
396 $ cd nu
396 $ cd nu
397 $ hg pull ../alpha
397 $ hg pull ../alpha
398 pulling from ../alpha
398 pulling from ../alpha
399 searching for changes
399 searching for changes
400 no changes found
400 no changes found
401 test-debug-phase: move rev 3: 1 -> 0
401 test-debug-phase: move rev 3: 1 -> 0
402 test-debug-phase: move rev 5: 1 -> 0
402 test-debug-phase: move rev 5: 1 -> 0
403 test-debug-phase: move rev 6: 1 -> 0
403 test-debug-phase: move rev 6: 1 -> 0
404 $ hgph
404 $ hgph
405 @ 6 public n-B - 145e75495359
405 @ 6 public n-B - 145e75495359
406 |
406 |
407 o 5 public n-A - d6bcb4f74035
407 o 5 public n-A - d6bcb4f74035
408 |
408 |
409 | o 4 public a-D - b555f63b6063
409 | o 4 public a-D - b555f63b6063
410 | |
410 | |
411 o | 3 public b-A - f54f1bb90ff3
411 o | 3 public b-A - f54f1bb90ff3
412 | |
412 | |
413 | o 2 public a-C - 54acac6f23ab
413 | o 2 public a-C - 54acac6f23ab
414 |/
414 |/
415 o 1 public a-B - 548a3d25dbf0
415 o 1 public a-B - 548a3d25dbf0
416 |
416 |
417 o 0 public a-A - 054250a37db4
417 o 0 public a-A - 054250a37db4
418
418
419
419
420 Push
420 Push
421 ````
421 ````
422
422
423 (inserted)
423 (inserted)
424
424
425 Test that phase are pushed even when they are nothing to pus
425 Test that phase are pushed even when they are nothing to pus
426 (this might be tested later bu are very convenient to not alter too much test)
426 (this might be tested later bu are very convenient to not alter too much test)
427
427
428 Push back to alpha
428 Push back to alpha
429
429
430 $ hg push ../alpha # from nu
430 $ hg push ../alpha # from nu
431 pushing to ../alpha
431 pushing to ../alpha
432 searching for changes
432 searching for changes
433 no changes found
433 no changes found
434 test-debug-phase: move rev 5: 1 -> 0
434 test-debug-phase: move rev 5: 1 -> 0
435 test-debug-phase: move rev 6: 1 -> 0
435 test-debug-phase: move rev 6: 1 -> 0
436 [1]
436 [1]
437 $ cd ..
437 $ cd ..
438 $ cd alpha
438 $ cd alpha
439 $ hgph
439 $ hgph
440 o 6 public n-B - 145e75495359
440 o 6 public n-B - 145e75495359
441 |
441 |
442 o 5 public n-A - d6bcb4f74035
442 o 5 public n-A - d6bcb4f74035
443 |
443 |
444 o 4 public b-A - f54f1bb90ff3
444 o 4 public b-A - f54f1bb90ff3
445 |
445 |
446 | @ 3 public a-D - b555f63b6063
446 | @ 3 public a-D - b555f63b6063
447 | |
447 | |
448 | o 2 public a-C - 54acac6f23ab
448 | o 2 public a-C - 54acac6f23ab
449 |/
449 |/
450 o 1 public a-B - 548a3d25dbf0
450 o 1 public a-B - 548a3d25dbf0
451 |
451 |
452 o 0 public a-A - 054250a37db4
452 o 0 public a-A - 054250a37db4
453
453
454
454
455 (end insertion)
455 (end insertion)
456
456
457
457
458 initial setup
458 initial setup
459
459
460 $ hg log -G # of alpha
460 $ hg log -G # of alpha
461 o changeset: 6:145e75495359
461 o changeset: 6:145e75495359
462 | tag: tip
462 | tag: tip
463 | user: test
463 | user: test
464 | date: Thu Jan 01 00:00:00 1970 +0000
464 | date: Thu Jan 01 00:00:00 1970 +0000
465 | summary: n-B
465 | summary: n-B
466 |
466 |
467 o changeset: 5:d6bcb4f74035
467 o changeset: 5:d6bcb4f74035
468 | user: test
468 | user: test
469 | date: Thu Jan 01 00:00:00 1970 +0000
469 | date: Thu Jan 01 00:00:00 1970 +0000
470 | summary: n-A
470 | summary: n-A
471 |
471 |
472 o changeset: 4:f54f1bb90ff3
472 o changeset: 4:f54f1bb90ff3
473 | parent: 1:548a3d25dbf0
473 | parent: 1:548a3d25dbf0
474 | user: test
474 | user: test
475 | date: Thu Jan 01 00:00:00 1970 +0000
475 | date: Thu Jan 01 00:00:00 1970 +0000
476 | summary: b-A
476 | summary: b-A
477 |
477 |
478 | @ changeset: 3:b555f63b6063
478 | @ changeset: 3:b555f63b6063
479 | | user: test
479 | | user: test
480 | | date: Thu Jan 01 00:00:00 1970 +0000
480 | | date: Thu Jan 01 00:00:00 1970 +0000
481 | | summary: a-D
481 | | summary: a-D
482 | |
482 | |
483 | o changeset: 2:54acac6f23ab
483 | o changeset: 2:54acac6f23ab
484 |/ user: test
484 |/ user: test
485 | date: Thu Jan 01 00:00:00 1970 +0000
485 | date: Thu Jan 01 00:00:00 1970 +0000
486 | summary: a-C
486 | summary: a-C
487 |
487 |
488 o changeset: 1:548a3d25dbf0
488 o changeset: 1:548a3d25dbf0
489 | user: test
489 | user: test
490 | date: Thu Jan 01 00:00:00 1970 +0000
490 | date: Thu Jan 01 00:00:00 1970 +0000
491 | summary: a-B
491 | summary: a-B
492 |
492 |
493 o changeset: 0:054250a37db4
493 o changeset: 0:054250a37db4
494 user: test
494 user: test
495 date: Thu Jan 01 00:00:00 1970 +0000
495 date: Thu Jan 01 00:00:00 1970 +0000
496 summary: a-A
496 summary: a-A
497
497
498 $ mkcommit a-E
498 $ mkcommit a-E
499 test-debug-phase: new rev 7: x -> 1
499 test-debug-phase: new rev 7: x -> 1
500 $ mkcommit a-F
500 $ mkcommit a-F
501 test-debug-phase: new rev 8: x -> 1
501 test-debug-phase: new rev 8: x -> 1
502 $ mkcommit a-G
502 $ mkcommit a-G
503 test-debug-phase: new rev 9: x -> 1
503 test-debug-phase: new rev 9: x -> 1
504 $ hg up d6bcb4f74035 -q
504 $ hg up d6bcb4f74035 -q
505 $ mkcommit a-H
505 $ mkcommit a-H
506 test-debug-phase: new rev 10: x -> 1
506 test-debug-phase: new rev 10: x -> 1
507 created new head
507 created new head
508 $ hgph
508 $ hgph
509 @ 10 draft a-H - 967b449fbc94
509 @ 10 draft a-H - 967b449fbc94
510 |
510 |
511 | o 9 draft a-G - 3e27b6f1eee1
511 | o 9 draft a-G - 3e27b6f1eee1
512 | |
512 | |
513 | o 8 draft a-F - b740e3e5c05d
513 | o 8 draft a-F - b740e3e5c05d
514 | |
514 | |
515 | o 7 draft a-E - e9f537e46dea
515 | o 7 draft a-E - e9f537e46dea
516 | |
516 | |
517 +---o 6 public n-B - 145e75495359
517 +---o 6 public n-B - 145e75495359
518 | |
518 | |
519 o | 5 public n-A - d6bcb4f74035
519 o | 5 public n-A - d6bcb4f74035
520 | |
520 | |
521 o | 4 public b-A - f54f1bb90ff3
521 o | 4 public b-A - f54f1bb90ff3
522 | |
522 | |
523 | o 3 public a-D - b555f63b6063
523 | o 3 public a-D - b555f63b6063
524 | |
524 | |
525 | o 2 public a-C - 54acac6f23ab
525 | o 2 public a-C - 54acac6f23ab
526 |/
526 |/
527 o 1 public a-B - 548a3d25dbf0
527 o 1 public a-B - 548a3d25dbf0
528 |
528 |
529 o 0 public a-A - 054250a37db4
529 o 0 public a-A - 054250a37db4
530
530
531
531
532 Pulling from bundle does not alter phases of changeset not present in the bundle
532 Pulling from bundle does not alter phases of changeset not present in the bundle
533
533
534 $ hg bundle --base 1 -r 6 -r 3 ../partial-bundle.hg
534 $ hg bundle --base 1 -r 6 -r 3 ../partial-bundle.hg
535 5 changesets found
535 5 changesets found
536 $ hg pull ../partial-bundle.hg
536 $ hg pull ../partial-bundle.hg
537 pulling from ../partial-bundle.hg
537 pulling from ../partial-bundle.hg
538 searching for changes
538 searching for changes
539 no changes found
539 no changes found
540 $ hgph
540 $ hgph
541 @ 10 draft a-H - 967b449fbc94
541 @ 10 draft a-H - 967b449fbc94
542 |
542 |
543 | o 9 draft a-G - 3e27b6f1eee1
543 | o 9 draft a-G - 3e27b6f1eee1
544 | |
544 | |
545 | o 8 draft a-F - b740e3e5c05d
545 | o 8 draft a-F - b740e3e5c05d
546 | |
546 | |
547 | o 7 draft a-E - e9f537e46dea
547 | o 7 draft a-E - e9f537e46dea
548 | |
548 | |
549 +---o 6 public n-B - 145e75495359
549 +---o 6 public n-B - 145e75495359
550 | |
550 | |
551 o | 5 public n-A - d6bcb4f74035
551 o | 5 public n-A - d6bcb4f74035
552 | |
552 | |
553 o | 4 public b-A - f54f1bb90ff3
553 o | 4 public b-A - f54f1bb90ff3
554 | |
554 | |
555 | o 3 public a-D - b555f63b6063
555 | o 3 public a-D - b555f63b6063
556 | |
556 | |
557 | o 2 public a-C - 54acac6f23ab
557 | o 2 public a-C - 54acac6f23ab
558 |/
558 |/
559 o 1 public a-B - 548a3d25dbf0
559 o 1 public a-B - 548a3d25dbf0
560 |
560 |
561 o 0 public a-A - 054250a37db4
561 o 0 public a-A - 054250a37db4
562
562
563
563
564 Pushing to Publish=False (unknown changeset)
564 Pushing to Publish=False (unknown changeset)
565
565
566 $ hg push ../mu -r b740e3e5c05d # a-F
566 $ hg push ../mu -r b740e3e5c05d # a-F
567 pushing to ../mu
567 pushing to ../mu
568 searching for changes
568 searching for changes
569 adding changesets
569 adding changesets
570 adding manifests
570 adding manifests
571 adding file changes
571 adding file changes
572 added 2 changesets with 2 changes to 2 files
572 added 2 changesets with 2 changes to 2 files
573 test-debug-phase: new rev 7: x -> 1
573 test-debug-phase: new rev 7: x -> 1
574 test-debug-phase: new rev 8: x -> 1
574 test-debug-phase: new rev 8: x -> 1
575 $ hgph
575 $ hgph
576 @ 10 draft a-H - 967b449fbc94
576 @ 10 draft a-H - 967b449fbc94
577 |
577 |
578 | o 9 draft a-G - 3e27b6f1eee1
578 | o 9 draft a-G - 3e27b6f1eee1
579 | |
579 | |
580 | o 8 draft a-F - b740e3e5c05d
580 | o 8 draft a-F - b740e3e5c05d
581 | |
581 | |
582 | o 7 draft a-E - e9f537e46dea
582 | o 7 draft a-E - e9f537e46dea
583 | |
583 | |
584 +---o 6 public n-B - 145e75495359
584 +---o 6 public n-B - 145e75495359
585 | |
585 | |
586 o | 5 public n-A - d6bcb4f74035
586 o | 5 public n-A - d6bcb4f74035
587 | |
587 | |
588 o | 4 public b-A - f54f1bb90ff3
588 o | 4 public b-A - f54f1bb90ff3
589 | |
589 | |
590 | o 3 public a-D - b555f63b6063
590 | o 3 public a-D - b555f63b6063
591 | |
591 | |
592 | o 2 public a-C - 54acac6f23ab
592 | o 2 public a-C - 54acac6f23ab
593 |/
593 |/
594 o 1 public a-B - 548a3d25dbf0
594 o 1 public a-B - 548a3d25dbf0
595 |
595 |
596 o 0 public a-A - 054250a37db4
596 o 0 public a-A - 054250a37db4
597
597
598
598
599 $ cd ../mu
599 $ cd ../mu
600 $ hgph # again f54f1bb90ff3, d6bcb4f74035 and 145e75495359 stay draft,
600 $ hgph # again f54f1bb90ff3, d6bcb4f74035 and 145e75495359 stay draft,
601 > # not ancestor of -r
601 > # not ancestor of -r
602 o 8 draft a-F - b740e3e5c05d
602 o 8 draft a-F - b740e3e5c05d
603 |
603 |
604 o 7 draft a-E - e9f537e46dea
604 o 7 draft a-E - e9f537e46dea
605 |
605 |
606 | o 6 draft n-B - 145e75495359
606 | o 6 draft n-B - 145e75495359
607 | |
607 | |
608 | o 5 draft n-A - d6bcb4f74035
608 | o 5 draft n-A - d6bcb4f74035
609 | |
609 | |
610 o | 4 public a-D - b555f63b6063
610 o | 4 public a-D - b555f63b6063
611 | |
611 | |
612 o | 3 public a-C - 54acac6f23ab
612 o | 3 public a-C - 54acac6f23ab
613 | |
613 | |
614 | o 2 draft b-A - f54f1bb90ff3
614 | o 2 draft b-A - f54f1bb90ff3
615 |/
615 |/
616 o 1 public a-B - 548a3d25dbf0
616 o 1 public a-B - 548a3d25dbf0
617 |
617 |
618 o 0 public a-A - 054250a37db4
618 o 0 public a-A - 054250a37db4
619
619
620
620
621 Pushing to Publish=True (unknown changeset)
621 Pushing to Publish=True (unknown changeset)
622
622
623 $ hg push ../beta -r b740e3e5c05d
623 $ hg push ../beta -r b740e3e5c05d
624 pushing to ../beta
624 pushing to ../beta
625 searching for changes
625 searching for changes
626 adding changesets
626 adding changesets
627 adding manifests
627 adding manifests
628 adding file changes
628 adding file changes
629 added 2 changesets with 2 changes to 2 files
629 added 2 changesets with 2 changes to 2 files
630 test-debug-phase: new rev 5: x -> 0
630 test-debug-phase: new rev 5: x -> 0
631 test-debug-phase: new rev 6: x -> 0
631 test-debug-phase: new rev 6: x -> 0
632 test-debug-phase: move rev 7: 1 -> 0
632 test-debug-phase: move rev 7: 1 -> 0
633 test-debug-phase: move rev 8: 1 -> 0
633 test-debug-phase: move rev 8: 1 -> 0
634 $ hgph # again f54f1bb90ff3, d6bcb4f74035 and 145e75495359 stay draft,
634 $ hgph # again f54f1bb90ff3, d6bcb4f74035 and 145e75495359 stay draft,
635 > # not ancestor of -r
635 > # not ancestor of -r
636 o 8 public a-F - b740e3e5c05d
636 o 8 public a-F - b740e3e5c05d
637 |
637 |
638 o 7 public a-E - e9f537e46dea
638 o 7 public a-E - e9f537e46dea
639 |
639 |
640 | o 6 draft n-B - 145e75495359
640 | o 6 draft n-B - 145e75495359
641 | |
641 | |
642 | o 5 draft n-A - d6bcb4f74035
642 | o 5 draft n-A - d6bcb4f74035
643 | |
643 | |
644 o | 4 public a-D - b555f63b6063
644 o | 4 public a-D - b555f63b6063
645 | |
645 | |
646 o | 3 public a-C - 54acac6f23ab
646 o | 3 public a-C - 54acac6f23ab
647 | |
647 | |
648 | o 2 draft b-A - f54f1bb90ff3
648 | o 2 draft b-A - f54f1bb90ff3
649 |/
649 |/
650 o 1 public a-B - 548a3d25dbf0
650 o 1 public a-B - 548a3d25dbf0
651 |
651 |
652 o 0 public a-A - 054250a37db4
652 o 0 public a-A - 054250a37db4
653
653
654
654
655 Pushing to Publish=True (common changeset)
655 Pushing to Publish=True (common changeset)
656
656
657 $ cd ../beta
657 $ cd ../beta
658 $ hg push ../alpha
658 $ hg push ../alpha
659 pushing to ../alpha
659 pushing to ../alpha
660 searching for changes
660 searching for changes
661 no changes found
661 no changes found
662 test-debug-phase: move rev 7: 1 -> 0
662 test-debug-phase: move rev 7: 1 -> 0
663 test-debug-phase: move rev 8: 1 -> 0
663 test-debug-phase: move rev 8: 1 -> 0
664 [1]
664 [1]
665 $ hgph
665 $ hgph
666 o 6 public a-F - b740e3e5c05d
666 o 6 public a-F - b740e3e5c05d
667 |
667 |
668 o 5 public a-E - e9f537e46dea
668 o 5 public a-E - e9f537e46dea
669 |
669 |
670 o 4 public a-D - b555f63b6063
670 o 4 public a-D - b555f63b6063
671 |
671 |
672 o 3 public a-C - 54acac6f23ab
672 o 3 public a-C - 54acac6f23ab
673 |
673 |
674 | @ 2 public b-A - f54f1bb90ff3
674 | @ 2 public b-A - f54f1bb90ff3
675 |/
675 |/
676 o 1 public a-B - 548a3d25dbf0
676 o 1 public a-B - 548a3d25dbf0
677 |
677 |
678 o 0 public a-A - 054250a37db4
678 o 0 public a-A - 054250a37db4
679
679
680 $ cd ../alpha
680 $ cd ../alpha
681 $ hgph
681 $ hgph
682 @ 10 draft a-H - 967b449fbc94
682 @ 10 draft a-H - 967b449fbc94
683 |
683 |
684 | o 9 draft a-G - 3e27b6f1eee1
684 | o 9 draft a-G - 3e27b6f1eee1
685 | |
685 | |
686 | o 8 public a-F - b740e3e5c05d
686 | o 8 public a-F - b740e3e5c05d
687 | |
687 | |
688 | o 7 public a-E - e9f537e46dea
688 | o 7 public a-E - e9f537e46dea
689 | |
689 | |
690 +---o 6 public n-B - 145e75495359
690 +---o 6 public n-B - 145e75495359
691 | |
691 | |
692 o | 5 public n-A - d6bcb4f74035
692 o | 5 public n-A - d6bcb4f74035
693 | |
693 | |
694 o | 4 public b-A - f54f1bb90ff3
694 o | 4 public b-A - f54f1bb90ff3
695 | |
695 | |
696 | o 3 public a-D - b555f63b6063
696 | o 3 public a-D - b555f63b6063
697 | |
697 | |
698 | o 2 public a-C - 54acac6f23ab
698 | o 2 public a-C - 54acac6f23ab
699 |/
699 |/
700 o 1 public a-B - 548a3d25dbf0
700 o 1 public a-B - 548a3d25dbf0
701 |
701 |
702 o 0 public a-A - 054250a37db4
702 o 0 public a-A - 054250a37db4
703
703
704
704
705 Pushing to Publish=False (common changeset that change phase + unknown one)
705 Pushing to Publish=False (common changeset that change phase + unknown one)
706
706
707 $ hg push ../mu -r 967b449fbc94 -f
707 $ hg push ../mu -r 967b449fbc94 -f
708 pushing to ../mu
708 pushing to ../mu
709 searching for changes
709 searching for changes
710 adding changesets
710 adding changesets
711 adding manifests
711 adding manifests
712 adding file changes
712 adding file changes
713 added 1 changesets with 1 changes to 1 files (+1 heads)
713 added 1 changesets with 1 changes to 1 files (+1 heads)
714 test-debug-phase: move rev 2: 1 -> 0
714 test-debug-phase: move rev 2: 1 -> 0
715 test-debug-phase: move rev 5: 1 -> 0
715 test-debug-phase: move rev 5: 1 -> 0
716 test-debug-phase: new rev 9: x -> 1
716 test-debug-phase: new rev 9: x -> 1
717 $ hgph
717 $ hgph
718 @ 10 draft a-H - 967b449fbc94
718 @ 10 draft a-H - 967b449fbc94
719 |
719 |
720 | o 9 draft a-G - 3e27b6f1eee1
720 | o 9 draft a-G - 3e27b6f1eee1
721 | |
721 | |
722 | o 8 public a-F - b740e3e5c05d
722 | o 8 public a-F - b740e3e5c05d
723 | |
723 | |
724 | o 7 public a-E - e9f537e46dea
724 | o 7 public a-E - e9f537e46dea
725 | |
725 | |
726 +---o 6 public n-B - 145e75495359
726 +---o 6 public n-B - 145e75495359
727 | |
727 | |
728 o | 5 public n-A - d6bcb4f74035
728 o | 5 public n-A - d6bcb4f74035
729 | |
729 | |
730 o | 4 public b-A - f54f1bb90ff3
730 o | 4 public b-A - f54f1bb90ff3
731 | |
731 | |
732 | o 3 public a-D - b555f63b6063
732 | o 3 public a-D - b555f63b6063
733 | |
733 | |
734 | o 2 public a-C - 54acac6f23ab
734 | o 2 public a-C - 54acac6f23ab
735 |/
735 |/
736 o 1 public a-B - 548a3d25dbf0
736 o 1 public a-B - 548a3d25dbf0
737 |
737 |
738 o 0 public a-A - 054250a37db4
738 o 0 public a-A - 054250a37db4
739
739
740 $ cd ../mu
740 $ cd ../mu
741 $ hgph # d6bcb4f74035 should have changed phase
741 $ hgph # d6bcb4f74035 should have changed phase
742 > # 145e75495359 is still draft. not ancestor of -r
742 > # 145e75495359 is still draft. not ancestor of -r
743 o 9 draft a-H - 967b449fbc94
743 o 9 draft a-H - 967b449fbc94
744 |
744 |
745 | o 8 public a-F - b740e3e5c05d
745 | o 8 public a-F - b740e3e5c05d
746 | |
746 | |
747 | o 7 public a-E - e9f537e46dea
747 | o 7 public a-E - e9f537e46dea
748 | |
748 | |
749 +---o 6 draft n-B - 145e75495359
749 +---o 6 draft n-B - 145e75495359
750 | |
750 | |
751 o | 5 public n-A - d6bcb4f74035
751 o | 5 public n-A - d6bcb4f74035
752 | |
752 | |
753 | o 4 public a-D - b555f63b6063
753 | o 4 public a-D - b555f63b6063
754 | |
754 | |
755 | o 3 public a-C - 54acac6f23ab
755 | o 3 public a-C - 54acac6f23ab
756 | |
756 | |
757 o | 2 public b-A - f54f1bb90ff3
757 o | 2 public b-A - f54f1bb90ff3
758 |/
758 |/
759 o 1 public a-B - 548a3d25dbf0
759 o 1 public a-B - 548a3d25dbf0
760 |
760 |
761 o 0 public a-A - 054250a37db4
761 o 0 public a-A - 054250a37db4
762
762
763
763
764
764
765 Pushing to Publish=True (common changeset from publish=False)
765 Pushing to Publish=True (common changeset from publish=False)
766
766
767 (in mu)
767 (in mu)
768 $ hg push ../alpha
768 $ hg push ../alpha
769 pushing to ../alpha
769 pushing to ../alpha
770 searching for changes
770 searching for changes
771 no changes found
771 no changes found
772 test-debug-phase: move rev 10: 1 -> 0
772 test-debug-phase: move rev 10: 1 -> 0
773 test-debug-phase: move rev 6: 1 -> 0
773 test-debug-phase: move rev 6: 1 -> 0
774 test-debug-phase: move rev 9: 1 -> 0
774 test-debug-phase: move rev 9: 1 -> 0
775 [1]
775 [1]
776 $ hgph
776 $ hgph
777 o 9 public a-H - 967b449fbc94
777 o 9 public a-H - 967b449fbc94
778 |
778 |
779 | o 8 public a-F - b740e3e5c05d
779 | o 8 public a-F - b740e3e5c05d
780 | |
780 | |
781 | o 7 public a-E - e9f537e46dea
781 | o 7 public a-E - e9f537e46dea
782 | |
782 | |
783 +---o 6 public n-B - 145e75495359
783 +---o 6 public n-B - 145e75495359
784 | |
784 | |
785 o | 5 public n-A - d6bcb4f74035
785 o | 5 public n-A - d6bcb4f74035
786 | |
786 | |
787 | o 4 public a-D - b555f63b6063
787 | o 4 public a-D - b555f63b6063
788 | |
788 | |
789 | o 3 public a-C - 54acac6f23ab
789 | o 3 public a-C - 54acac6f23ab
790 | |
790 | |
791 o | 2 public b-A - f54f1bb90ff3
791 o | 2 public b-A - f54f1bb90ff3
792 |/
792 |/
793 o 1 public a-B - 548a3d25dbf0
793 o 1 public a-B - 548a3d25dbf0
794 |
794 |
795 o 0 public a-A - 054250a37db4
795 o 0 public a-A - 054250a37db4
796
796
797 $ hgph -R ../alpha # a-H should have been synced to 0
797 $ hgph -R ../alpha # a-H should have been synced to 0
798 @ 10 public a-H - 967b449fbc94
798 @ 10 public a-H - 967b449fbc94
799 |
799 |
800 | o 9 draft a-G - 3e27b6f1eee1
800 | o 9 draft a-G - 3e27b6f1eee1
801 | |
801 | |
802 | o 8 public a-F - b740e3e5c05d
802 | o 8 public a-F - b740e3e5c05d
803 | |
803 | |
804 | o 7 public a-E - e9f537e46dea
804 | o 7 public a-E - e9f537e46dea
805 | |
805 | |
806 +---o 6 public n-B - 145e75495359
806 +---o 6 public n-B - 145e75495359
807 | |
807 | |
808 o | 5 public n-A - d6bcb4f74035
808 o | 5 public n-A - d6bcb4f74035
809 | |
809 | |
810 o | 4 public b-A - f54f1bb90ff3
810 o | 4 public b-A - f54f1bb90ff3
811 | |
811 | |
812 | o 3 public a-D - b555f63b6063
812 | o 3 public a-D - b555f63b6063
813 | |
813 | |
814 | o 2 public a-C - 54acac6f23ab
814 | o 2 public a-C - 54acac6f23ab
815 |/
815 |/
816 o 1 public a-B - 548a3d25dbf0
816 o 1 public a-B - 548a3d25dbf0
817 |
817 |
818 o 0 public a-A - 054250a37db4
818 o 0 public a-A - 054250a37db4
819
819
820
820
821
821
822 Bare push with next changeset and common changeset needing sync (issue3575)
822 Bare push with next changeset and common changeset needing sync (issue3575)
823
823
824 (reset some stat on remote repo to avoid confusing other tests)
824 (reset some stat on remote repo to avoid confusing other tests)
825
825
826 $ hg -R ../alpha --config extensions.strip= strip --no-backup 967b449fbc94
826 $ hg -R ../alpha --config extensions.strip= strip --no-backup 967b449fbc94
827 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
827 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
828 $ hg phase --force --draft b740e3e5c05d 967b449fbc94
828 $ hg phase --force --draft b740e3e5c05d 967b449fbc94
829 test-debug-phase: move rev 8: 0 -> 1
829 test-debug-phase: move rev 8: 0 -> 1
830 test-debug-phase: move rev 9: 0 -> 1
830 test-debug-phase: move rev 9: 0 -> 1
831 $ hg push -fv ../alpha
831 $ hg push -fv ../alpha
832 pushing to ../alpha
832 pushing to ../alpha
833 searching for changes
833 searching for changes
834 1 changesets found
834 1 changesets found
835 uncompressed size of bundle content:
835 uncompressed size of bundle content:
836 178 (changelog)
836 178 (changelog)
837 165 (manifests)
837 165 (manifests)
838 131 a-H
838 131 a-H
839 adding changesets
839 adding changesets
840 adding manifests
840 adding manifests
841 adding file changes
841 adding file changes
842 added 1 changesets with 1 changes to 1 files (+1 heads)
842 added 1 changesets with 1 changes to 1 files (+1 heads)
843 test-debug-phase: new rev 10: x -> 0
843 test-debug-phase: new rev 10: x -> 0
844 test-debug-phase: move rev 8: 1 -> 0
844 test-debug-phase: move rev 8: 1 -> 0
845 test-debug-phase: move rev 9: 1 -> 0
845 test-debug-phase: move rev 9: 1 -> 0
846 $ hgph
846 $ hgph
847 o 9 public a-H - 967b449fbc94
847 o 9 public a-H - 967b449fbc94
848 |
848 |
849 | o 8 public a-F - b740e3e5c05d
849 | o 8 public a-F - b740e3e5c05d
850 | |
850 | |
851 | o 7 public a-E - e9f537e46dea
851 | o 7 public a-E - e9f537e46dea
852 | |
852 | |
853 +---o 6 public n-B - 145e75495359
853 +---o 6 public n-B - 145e75495359
854 | |
854 | |
855 o | 5 public n-A - d6bcb4f74035
855 o | 5 public n-A - d6bcb4f74035
856 | |
856 | |
857 | o 4 public a-D - b555f63b6063
857 | o 4 public a-D - b555f63b6063
858 | |
858 | |
859 | o 3 public a-C - 54acac6f23ab
859 | o 3 public a-C - 54acac6f23ab
860 | |
860 | |
861 o | 2 public b-A - f54f1bb90ff3
861 o | 2 public b-A - f54f1bb90ff3
862 |/
862 |/
863 o 1 public a-B - 548a3d25dbf0
863 o 1 public a-B - 548a3d25dbf0
864 |
864 |
865 o 0 public a-A - 054250a37db4
865 o 0 public a-A - 054250a37db4
866
866
867
867
868 $ hg -R ../alpha update 967b449fbc94 #for latter test consistency
868 $ hg -R ../alpha update 967b449fbc94 #for latter test consistency
869 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
869 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
870 $ hgph -R ../alpha
870 $ hgph -R ../alpha
871 @ 10 public a-H - 967b449fbc94
871 @ 10 public a-H - 967b449fbc94
872 |
872 |
873 | o 9 draft a-G - 3e27b6f1eee1
873 | o 9 draft a-G - 3e27b6f1eee1
874 | |
874 | |
875 | o 8 public a-F - b740e3e5c05d
875 | o 8 public a-F - b740e3e5c05d
876 | |
876 | |
877 | o 7 public a-E - e9f537e46dea
877 | o 7 public a-E - e9f537e46dea
878 | |
878 | |
879 +---o 6 public n-B - 145e75495359
879 +---o 6 public n-B - 145e75495359
880 | |
880 | |
881 o | 5 public n-A - d6bcb4f74035
881 o | 5 public n-A - d6bcb4f74035
882 | |
882 | |
883 o | 4 public b-A - f54f1bb90ff3
883 o | 4 public b-A - f54f1bb90ff3
884 | |
884 | |
885 | o 3 public a-D - b555f63b6063
885 | o 3 public a-D - b555f63b6063
886 | |
886 | |
887 | o 2 public a-C - 54acac6f23ab
887 | o 2 public a-C - 54acac6f23ab
888 |/
888 |/
889 o 1 public a-B - 548a3d25dbf0
889 o 1 public a-B - 548a3d25dbf0
890 |
890 |
891 o 0 public a-A - 054250a37db4
891 o 0 public a-A - 054250a37db4
892
892
893
893
894 Discovery locally secret changeset on a remote repository:
894 Discovery locally secret changeset on a remote repository:
895
895
896 - should make it non-secret
896 - should make it non-secret
897
897
898 $ cd ../alpha
898 $ cd ../alpha
899 $ mkcommit A-secret --config phases.new-commit=2
899 $ mkcommit A-secret --config phases.new-commit=2
900 test-debug-phase: new rev 11: x -> 2
900 test-debug-phase: new rev 11: x -> 2
901 $ hgph
901 $ hgph
902 @ 11 secret A-secret - 435b5d83910c
902 @ 11 secret A-secret - 435b5d83910c
903 |
903 |
904 o 10 public a-H - 967b449fbc94
904 o 10 public a-H - 967b449fbc94
905 |
905 |
906 | o 9 draft a-G - 3e27b6f1eee1
906 | o 9 draft a-G - 3e27b6f1eee1
907 | |
907 | |
908 | o 8 public a-F - b740e3e5c05d
908 | o 8 public a-F - b740e3e5c05d
909 | |
909 | |
910 | o 7 public a-E - e9f537e46dea
910 | o 7 public a-E - e9f537e46dea
911 | |
911 | |
912 +---o 6 public n-B - 145e75495359
912 +---o 6 public n-B - 145e75495359
913 | |
913 | |
914 o | 5 public n-A - d6bcb4f74035
914 o | 5 public n-A - d6bcb4f74035
915 | |
915 | |
916 o | 4 public b-A - f54f1bb90ff3
916 o | 4 public b-A - f54f1bb90ff3
917 | |
917 | |
918 | o 3 public a-D - b555f63b6063
918 | o 3 public a-D - b555f63b6063
919 | |
919 | |
920 | o 2 public a-C - 54acac6f23ab
920 | o 2 public a-C - 54acac6f23ab
921 |/
921 |/
922 o 1 public a-B - 548a3d25dbf0
922 o 1 public a-B - 548a3d25dbf0
923 |
923 |
924 o 0 public a-A - 054250a37db4
924 o 0 public a-A - 054250a37db4
925
925
926 $ hg bundle --base 'parents(.)' -r . ../secret-bundle.hg
926 $ hg bundle --base 'parents(.)' -r . ../secret-bundle.hg
927 1 changesets found
927 1 changesets found
928 $ hg -R ../mu unbundle ../secret-bundle.hg
928 $ hg -R ../mu unbundle ../secret-bundle.hg
929 adding changesets
929 adding changesets
930 adding manifests
930 adding manifests
931 adding file changes
931 adding file changes
932 added 1 changesets with 1 changes to 1 files
932 added 1 changesets with 1 changes to 1 files
933 test-debug-phase: new rev 10: x -> 1
933 test-debug-phase: new rev 10: x -> 1
934 (run 'hg update' to get a working copy)
934 (run 'hg update' to get a working copy)
935 $ hgph -R ../mu
935 $ hgph -R ../mu
936 o 10 draft A-secret - 435b5d83910c
936 o 10 draft A-secret - 435b5d83910c
937 |
937 |
938 o 9 public a-H - 967b449fbc94
938 o 9 public a-H - 967b449fbc94
939 |
939 |
940 | o 8 public a-F - b740e3e5c05d
940 | o 8 public a-F - b740e3e5c05d
941 | |
941 | |
942 | o 7 public a-E - e9f537e46dea
942 | o 7 public a-E - e9f537e46dea
943 | |
943 | |
944 +---o 6 public n-B - 145e75495359
944 +---o 6 public n-B - 145e75495359
945 | |
945 | |
946 o | 5 public n-A - d6bcb4f74035
946 o | 5 public n-A - d6bcb4f74035
947 | |
947 | |
948 | o 4 public a-D - b555f63b6063
948 | o 4 public a-D - b555f63b6063
949 | |
949 | |
950 | o 3 public a-C - 54acac6f23ab
950 | o 3 public a-C - 54acac6f23ab
951 | |
951 | |
952 o | 2 public b-A - f54f1bb90ff3
952 o | 2 public b-A - f54f1bb90ff3
953 |/
953 |/
954 o 1 public a-B - 548a3d25dbf0
954 o 1 public a-B - 548a3d25dbf0
955 |
955 |
956 o 0 public a-A - 054250a37db4
956 o 0 public a-A - 054250a37db4
957
957
958 $ hg pull ../mu
958 $ hg pull ../mu
959 pulling from ../mu
959 pulling from ../mu
960 searching for changes
960 searching for changes
961 no changes found
961 no changes found
962 test-debug-phase: move rev 11: 2 -> 1
962 test-debug-phase: move rev 11: 2 -> 1
963 $ hgph
963 $ hgph
964 @ 11 draft A-secret - 435b5d83910c
964 @ 11 draft A-secret - 435b5d83910c
965 |
965 |
966 o 10 public a-H - 967b449fbc94
966 o 10 public a-H - 967b449fbc94
967 |
967 |
968 | o 9 draft a-G - 3e27b6f1eee1
968 | o 9 draft a-G - 3e27b6f1eee1
969 | |
969 | |
970 | o 8 public a-F - b740e3e5c05d
970 | o 8 public a-F - b740e3e5c05d
971 | |
971 | |
972 | o 7 public a-E - e9f537e46dea
972 | o 7 public a-E - e9f537e46dea
973 | |
973 | |
974 +---o 6 public n-B - 145e75495359
974 +---o 6 public n-B - 145e75495359
975 | |
975 | |
976 o | 5 public n-A - d6bcb4f74035
976 o | 5 public n-A - d6bcb4f74035
977 | |
977 | |
978 o | 4 public b-A - f54f1bb90ff3
978 o | 4 public b-A - f54f1bb90ff3
979 | |
979 | |
980 | o 3 public a-D - b555f63b6063
980 | o 3 public a-D - b555f63b6063
981 | |
981 | |
982 | o 2 public a-C - 54acac6f23ab
982 | o 2 public a-C - 54acac6f23ab
983 |/
983 |/
984 o 1 public a-B - 548a3d25dbf0
984 o 1 public a-B - 548a3d25dbf0
985 |
985 |
986 o 0 public a-A - 054250a37db4
986 o 0 public a-A - 054250a37db4
987
987
988
988
989 pushing a locally public and draft changesets remotely secret should make them
989 pushing a locally public and draft changesets remotely secret should make them
990 appear on the remote side.
990 appear on the remote side.
991
991
992 $ hg -R ../mu phase --secret --force 967b449fbc94
992 $ hg -R ../mu phase --secret --force 967b449fbc94
993 test-debug-phase: move rev 9: 0 -> 2
993 test-debug-phase: move rev 9: 0 -> 2
994 test-debug-phase: move rev 10: 1 -> 2
994 test-debug-phase: move rev 10: 1 -> 2
995 $ hg push -r 435b5d83910c ../mu
995 $ hg push -r 435b5d83910c ../mu
996 pushing to ../mu
996 pushing to ../mu
997 searching for changes
997 searching for changes
998 abort: push creates new remote head 435b5d83910c!
998 abort: push creates new remote head 435b5d83910c!
999 (merge or see 'hg help push' for details about pushing new heads)
999 (merge or see 'hg help push' for details about pushing new heads)
1000 [255]
1000 [255]
1001 $ hg push -fr 435b5d83910c ../mu # because the push will create new visible head
1001 $ hg push -fr 435b5d83910c ../mu # because the push will create new visible head
1002 pushing to ../mu
1002 pushing to ../mu
1003 searching for changes
1003 searching for changes
1004 adding changesets
1004 adding changesets
1005 adding manifests
1005 adding manifests
1006 adding file changes
1006 adding file changes
1007 added 0 changesets with 0 changes to 2 files
1007 added 0 changesets with 0 changes to 2 files
1008 test-debug-phase: move rev 9: 2 -> 0
1008 test-debug-phase: move rev 9: 2 -> 0
1009 test-debug-phase: move rev 10: 2 -> 1
1009 test-debug-phase: move rev 10: 2 -> 1
1010 $ hgph -R ../mu
1010 $ hgph -R ../mu
1011 o 10 draft A-secret - 435b5d83910c
1011 o 10 draft A-secret - 435b5d83910c
1012 |
1012 |
1013 o 9 public a-H - 967b449fbc94
1013 o 9 public a-H - 967b449fbc94
1014 |
1014 |
1015 | o 8 public a-F - b740e3e5c05d
1015 | o 8 public a-F - b740e3e5c05d
1016 | |
1016 | |
1017 | o 7 public a-E - e9f537e46dea
1017 | o 7 public a-E - e9f537e46dea
1018 | |
1018 | |
1019 +---o 6 public n-B - 145e75495359
1019 +---o 6 public n-B - 145e75495359
1020 | |
1020 | |
1021 o | 5 public n-A - d6bcb4f74035
1021 o | 5 public n-A - d6bcb4f74035
1022 | |
1022 | |
1023 | o 4 public a-D - b555f63b6063
1023 | o 4 public a-D - b555f63b6063
1024 | |
1024 | |
1025 | o 3 public a-C - 54acac6f23ab
1025 | o 3 public a-C - 54acac6f23ab
1026 | |
1026 | |
1027 o | 2 public b-A - f54f1bb90ff3
1027 o | 2 public b-A - f54f1bb90ff3
1028 |/
1028 |/
1029 o 1 public a-B - 548a3d25dbf0
1029 o 1 public a-B - 548a3d25dbf0
1030 |
1030 |
1031 o 0 public a-A - 054250a37db4
1031 o 0 public a-A - 054250a37db4
1032
1032
1033
1033
1034 pull new changeset with common draft locally
1034 pull new changeset with common draft locally
1035
1035
1036 $ hg up -q 967b449fbc94 # create a new root for draft
1036 $ hg up -q 967b449fbc94 # create a new root for draft
1037 $ mkcommit 'alpha-more'
1037 $ mkcommit 'alpha-more'
1038 test-debug-phase: new rev 12: x -> 1
1038 test-debug-phase: new rev 12: x -> 1
1039 created new head
1039 created new head
1040 $ hg push -fr . ../mu
1040 $ hg push -fr . ../mu
1041 pushing to ../mu
1041 pushing to ../mu
1042 searching for changes
1042 searching for changes
1043 adding changesets
1043 adding changesets
1044 adding manifests
1044 adding manifests
1045 adding file changes
1045 adding file changes
1046 added 1 changesets with 1 changes to 1 files (+1 heads)
1046 added 1 changesets with 1 changes to 1 files (+1 heads)
1047 test-debug-phase: new rev 11: x -> 1
1047 test-debug-phase: new rev 11: x -> 1
1048 $ cd ../mu
1048 $ cd ../mu
1049 $ hg phase --secret --force 1c5cfd894796
1049 $ hg phase --secret --force 1c5cfd894796
1050 test-debug-phase: move rev 11: 1 -> 2
1050 test-debug-phase: move rev 11: 1 -> 2
1051 $ hg up -q 435b5d83910c
1051 $ hg up -q 435b5d83910c
1052 $ mkcommit 'mu-more'
1052 $ mkcommit 'mu-more'
1053 test-debug-phase: new rev 12: x -> 1
1053 test-debug-phase: new rev 12: x -> 1
1054 $ cd ../alpha
1054 $ cd ../alpha
1055 $ hg pull ../mu
1055 $ hg pull ../mu
1056 pulling from ../mu
1056 pulling from ../mu
1057 searching for changes
1057 searching for changes
1058 adding changesets
1058 adding changesets
1059 adding manifests
1059 adding manifests
1060 adding file changes
1060 adding file changes
1061 added 1 changesets with 1 changes to 1 files
1061 added 1 changesets with 1 changes to 1 files
1062 test-debug-phase: new rev 13: x -> 1
1062 test-debug-phase: new rev 13: x -> 1
1063 (run 'hg update' to get a working copy)
1063 (run 'hg update' to get a working copy)
1064 $ hgph
1064 $ hgph
1065 o 13 draft mu-more - 5237fb433fc8
1065 o 13 draft mu-more - 5237fb433fc8
1066 |
1066 |
1067 | @ 12 draft alpha-more - 1c5cfd894796
1067 | @ 12 draft alpha-more - 1c5cfd894796
1068 | |
1068 | |
1069 o | 11 draft A-secret - 435b5d83910c
1069 o | 11 draft A-secret - 435b5d83910c
1070 |/
1070 |/
1071 o 10 public a-H - 967b449fbc94
1071 o 10 public a-H - 967b449fbc94
1072 |
1072 |
1073 | o 9 draft a-G - 3e27b6f1eee1
1073 | o 9 draft a-G - 3e27b6f1eee1
1074 | |
1074 | |
1075 | o 8 public a-F - b740e3e5c05d
1075 | o 8 public a-F - b740e3e5c05d
1076 | |
1076 | |
1077 | o 7 public a-E - e9f537e46dea
1077 | o 7 public a-E - e9f537e46dea
1078 | |
1078 | |
1079 +---o 6 public n-B - 145e75495359
1079 +---o 6 public n-B - 145e75495359
1080 | |
1080 | |
1081 o | 5 public n-A - d6bcb4f74035
1081 o | 5 public n-A - d6bcb4f74035
1082 | |
1082 | |
1083 o | 4 public b-A - f54f1bb90ff3
1083 o | 4 public b-A - f54f1bb90ff3
1084 | |
1084 | |
1085 | o 3 public a-D - b555f63b6063
1085 | o 3 public a-D - b555f63b6063
1086 | |
1086 | |
1087 | o 2 public a-C - 54acac6f23ab
1087 | o 2 public a-C - 54acac6f23ab
1088 |/
1088 |/
1089 o 1 public a-B - 548a3d25dbf0
1089 o 1 public a-B - 548a3d25dbf0
1090 |
1090 |
1091 o 0 public a-A - 054250a37db4
1091 o 0 public a-A - 054250a37db4
1092
1092
1093
1093
1094 Test that test are properly ignored on remote event when existing locally
1094 Test that test are properly ignored on remote event when existing locally
1095
1095
1096 $ cd ..
1096 $ cd ..
1097 $ hg clone -qU -r b555f63b6063 -r f54f1bb90ff3 beta gamma
1097 $ hg clone -qU -r b555f63b6063 -r f54f1bb90ff3 beta gamma
1098 test-debug-phase: new rev 0: x -> 0
1098 test-debug-phase: new rev 0: x -> 0
1099 test-debug-phase: new rev 1: x -> 0
1099 test-debug-phase: new rev 1: x -> 0
1100 test-debug-phase: new rev 2: x -> 0
1100 test-debug-phase: new rev 2: x -> 0
1101 test-debug-phase: new rev 3: x -> 0
1101 test-debug-phase: new rev 3: x -> 0
1102 test-debug-phase: new rev 4: x -> 0
1102 test-debug-phase: new rev 4: x -> 0
1103
1103
1104 # pathological case are
1104 # pathological case are
1105 #
1105 #
1106 # * secret remotely
1106 # * secret remotely
1107 # * known locally
1107 # * known locally
1108 # * repo have uncommon changeset
1108 # * repo have uncommon changeset
1109
1109
1110 $ hg -R beta phase --secret --force f54f1bb90ff3
1110 $ hg -R beta phase --secret --force f54f1bb90ff3
1111 test-debug-phase: move rev 2: 0 -> 2
1111 test-debug-phase: move rev 2: 0 -> 2
1112 $ hg -R gamma phase --draft --force f54f1bb90ff3
1112 $ hg -R gamma phase --draft --force f54f1bb90ff3
1113 test-debug-phase: move rev 2: 0 -> 1
1113 test-debug-phase: move rev 2: 0 -> 1
1114
1114
1115 $ cd gamma
1115 $ cd gamma
1116 $ hg pull ../beta
1116 $ hg pull ../beta
1117 pulling from ../beta
1117 pulling from ../beta
1118 searching for changes
1118 searching for changes
1119 adding changesets
1119 adding changesets
1120 adding manifests
1120 adding manifests
1121 adding file changes
1121 adding file changes
1122 added 2 changesets with 2 changes to 2 files
1122 added 2 changesets with 2 changes to 2 files
1123 test-debug-phase: new rev 5: x -> 0
1123 test-debug-phase: new rev 5: x -> 0
1124 test-debug-phase: new rev 6: x -> 0
1124 test-debug-phase: new rev 6: x -> 0
1125 (run 'hg update' to get a working copy)
1125 (run 'hg update' to get a working copy)
1126 $ hg phase f54f1bb90ff3
1126 $ hg phase f54f1bb90ff3
1127 2: draft
1127 2: draft
1128
1128
1129 same over the wire
1129 same over the wire
1130
1130
1131 $ cd ../beta
1131 $ cd ../beta
1132 $ hg serve -p $HGPORT -d --pid-file=../beta.pid -E ../beta-error.log
1132 $ hg serve -p $HGPORT -d --pid-file=../beta.pid -E ../beta-error.log
1133 $ cat ../beta.pid >> $DAEMON_PIDS
1133 $ cat ../beta.pid >> $DAEMON_PIDS
1134 $ cd ../gamma
1134 $ cd ../gamma
1135
1135
1136 $ hg pull http://localhost:$HGPORT/ # bundle2+
1136 $ hg pull http://localhost:$HGPORT/ # bundle2+
1137 pulling from http://localhost:$HGPORT/
1137 pulling from http://localhost:$HGPORT/
1138 searching for changes
1138 searching for changes
1139 no changes found
1139 no changes found
1140 $ hg phase f54f1bb90ff3
1140 $ hg phase f54f1bb90ff3
1141 2: draft
1141 2: draft
1142
1142
1143 enforce bundle1
1143 enforce bundle1
1144
1144
1145 $ hg pull http://localhost:$HGPORT/ --config devel.legacy.exchange=bundle1
1145 $ hg pull http://localhost:$HGPORT/ --config devel.legacy.exchange=bundle1
1146 pulling from http://localhost:$HGPORT/
1146 pulling from http://localhost:$HGPORT/
1147 searching for changes
1147 searching for changes
1148 no changes found
1148 no changes found
1149 $ hg phase f54f1bb90ff3
1149 $ hg phase f54f1bb90ff3
1150 2: draft
1150 2: draft
1151
1151
1152 check that secret local on both side are not synced to public
1152 check that secret local on both side are not synced to public
1153
1153
1154 $ hg push -r b555f63b6063 http://localhost:$HGPORT/
1154 $ hg push -r b555f63b6063 http://localhost:$HGPORT/
1155 pushing to http://localhost:$HGPORT/
1155 pushing to http://localhost:$HGPORT/
1156 searching for changes
1156 searching for changes
1157 no changes found
1157 no changes found
1158 [1]
1158 [1]
1159 $ hg phase f54f1bb90ff3
1159 $ hg phase f54f1bb90ff3
1160 2: draft
1160 2: draft
1161
1161
1162 put the changeset in the draft state again
1162 put the changeset in the draft state again
1163 (first test after this one expect to be able to copy)
1163 (first test after this one expect to be able to copy)
1164
1164
1165 $ cd ..
1165 $ cd ..
1166
1166
1167
1167
1168 Test Clone behavior
1168 Test Clone behavior
1169
1169
1170 A. Clone without secret changeset
1170 A. Clone without secret changeset
1171
1171
1172 1. cloning non-publishing repository
1172 1. cloning non-publishing repository
1173 (Phase should be preserved)
1173 (Phase should be preserved)
1174
1174
1175 # make sure there is no secret so we can use a copy clone
1175 # make sure there is no secret so we can use a copy clone
1176
1176
1177 $ hg -R mu phase --draft 'secret()'
1177 $ hg -R mu phase --draft 'secret()'
1178 test-debug-phase: move rev 11: 2 -> 1
1178 test-debug-phase: move rev 11: 2 -> 1
1179
1179
1180 $ hg clone -U mu Tau
1180 $ hg clone -U mu Tau
1181 $ hgph -R Tau
1181 $ hgph -R Tau
1182 o 12 draft mu-more - 5237fb433fc8
1182 o 12 draft mu-more - 5237fb433fc8
1183 |
1183 |
1184 | o 11 draft alpha-more - 1c5cfd894796
1184 | o 11 draft alpha-more - 1c5cfd894796
1185 | |
1185 | |
1186 o | 10 draft A-secret - 435b5d83910c
1186 o | 10 draft A-secret - 435b5d83910c
1187 |/
1187 |/
1188 o 9 public a-H - 967b449fbc94
1188 o 9 public a-H - 967b449fbc94
1189 |
1189 |
1190 | o 8 public a-F - b740e3e5c05d
1190 | o 8 public a-F - b740e3e5c05d
1191 | |
1191 | |
1192 | o 7 public a-E - e9f537e46dea
1192 | o 7 public a-E - e9f537e46dea
1193 | |
1193 | |
1194 +---o 6 public n-B - 145e75495359
1194 +---o 6 public n-B - 145e75495359
1195 | |
1195 | |
1196 o | 5 public n-A - d6bcb4f74035
1196 o | 5 public n-A - d6bcb4f74035
1197 | |
1197 | |
1198 | o 4 public a-D - b555f63b6063
1198 | o 4 public a-D - b555f63b6063
1199 | |
1199 | |
1200 | o 3 public a-C - 54acac6f23ab
1200 | o 3 public a-C - 54acac6f23ab
1201 | |
1201 | |
1202 o | 2 public b-A - f54f1bb90ff3
1202 o | 2 public b-A - f54f1bb90ff3
1203 |/
1203 |/
1204 o 1 public a-B - 548a3d25dbf0
1204 o 1 public a-B - 548a3d25dbf0
1205 |
1205 |
1206 o 0 public a-A - 054250a37db4
1206 o 0 public a-A - 054250a37db4
1207
1207
1208
1208
1209 2. cloning publishing repository
1209 2. cloning publishing repository
1210
1210
1211 (everything should be public)
1211 (everything should be public)
1212
1212
1213 $ hg clone -U alpha Upsilon
1213 $ hg clone -U alpha Upsilon
1214 $ hgph -R Upsilon
1214 $ hgph -R Upsilon
1215 o 13 public mu-more - 5237fb433fc8
1215 o 13 public mu-more - 5237fb433fc8
1216 |
1216 |
1217 | o 12 public alpha-more - 1c5cfd894796
1217 | o 12 public alpha-more - 1c5cfd894796
1218 | |
1218 | |
1219 o | 11 public A-secret - 435b5d83910c
1219 o | 11 public A-secret - 435b5d83910c
1220 |/
1220 |/
1221 o 10 public a-H - 967b449fbc94
1221 o 10 public a-H - 967b449fbc94
1222 |
1222 |
1223 | o 9 public a-G - 3e27b6f1eee1
1223 | o 9 public a-G - 3e27b6f1eee1
1224 | |
1224 | |
1225 | o 8 public a-F - b740e3e5c05d
1225 | o 8 public a-F - b740e3e5c05d
1226 | |
1226 | |
1227 | o 7 public a-E - e9f537e46dea
1227 | o 7 public a-E - e9f537e46dea
1228 | |
1228 | |
1229 +---o 6 public n-B - 145e75495359
1229 +---o 6 public n-B - 145e75495359
1230 | |
1230 | |
1231 o | 5 public n-A - d6bcb4f74035
1231 o | 5 public n-A - d6bcb4f74035
1232 | |
1232 | |
1233 o | 4 public b-A - f54f1bb90ff3
1233 o | 4 public b-A - f54f1bb90ff3
1234 | |
1234 | |
1235 | o 3 public a-D - b555f63b6063
1235 | o 3 public a-D - b555f63b6063
1236 | |
1236 | |
1237 | o 2 public a-C - 54acac6f23ab
1237 | o 2 public a-C - 54acac6f23ab
1238 |/
1238 |/
1239 o 1 public a-B - 548a3d25dbf0
1239 o 1 public a-B - 548a3d25dbf0
1240 |
1240 |
1241 o 0 public a-A - 054250a37db4
1241 o 0 public a-A - 054250a37db4
1242
1242
1243 #if unix-permissions no-root
1243 #if unix-permissions no-root
1244
1244
1245 Pushing From an unlockable repo
1245 Pushing From an unlockable repo
1246 --------------------------------
1246 --------------------------------
1247 (issue3684)
1247 (issue3684)
1248
1248
1249 Unability to lock the source repo should not prevent the push. It will prevent
1249 Unability to lock the source repo should not prevent the push. It will prevent
1250 the retrieval of remote phase during push. For example, pushing to a publishing
1250 the retrieval of remote phase during push. For example, pushing to a publishing
1251 server won't turn changeset public.
1251 server won't turn changeset public.
1252
1252
1253 1. Test that push is not prevented
1253 1. Test that push is not prevented
1254
1254
1255 $ hg init Phi
1255 $ hg init Phi
1256 $ cd Upsilon
1256 $ cd Upsilon
1257 $ chmod -R -w .hg
1257 $ chmod -R -w .hg
1258 $ hg push ../Phi
1258 $ hg push ../Phi
1259 pushing to ../Phi
1259 pushing to ../Phi
1260 searching for changes
1260 searching for changes
1261 adding changesets
1261 adding changesets
1262 adding manifests
1262 adding manifests
1263 adding file changes
1263 adding file changes
1264 added 14 changesets with 14 changes to 14 files (+3 heads)
1264 added 14 changesets with 14 changes to 14 files (+3 heads)
1265 test-debug-phase: new rev 0: x -> 0
1265 test-debug-phase: new rev 0: x -> 0
1266 test-debug-phase: new rev 1: x -> 0
1266 test-debug-phase: new rev 1: x -> 0
1267 test-debug-phase: new rev 2: x -> 0
1267 test-debug-phase: new rev 2: x -> 0
1268 test-debug-phase: new rev 3: x -> 0
1268 test-debug-phase: new rev 3: x -> 0
1269 test-debug-phase: new rev 4: x -> 0
1269 test-debug-phase: new rev 4: x -> 0
1270 test-debug-phase: new rev 5: x -> 0
1270 test-debug-phase: new rev 5: x -> 0
1271 test-debug-phase: new rev 6: x -> 0
1271 test-debug-phase: new rev 6: x -> 0
1272 test-debug-phase: new rev 7: x -> 0
1272 test-debug-phase: new rev 7: x -> 0
1273 test-debug-phase: new rev 8: x -> 0
1273 test-debug-phase: new rev 8: x -> 0
1274 test-debug-phase: new rev 9: x -> 0
1274 test-debug-phase: new rev 9: x -> 0
1275 test-debug-phase: new rev 10: x -> 0
1275 test-debug-phase: new rev 10: x -> 0
1276 test-debug-phase: new rev 11: x -> 0
1276 test-debug-phase: new rev 11: x -> 0
1277 test-debug-phase: new rev 12: x -> 0
1277 test-debug-phase: new rev 12: x -> 0
1278 test-debug-phase: new rev 13: x -> 0
1278 test-debug-phase: new rev 13: x -> 0
1279 $ chmod -R +w .hg
1279 $ chmod -R +w .hg
1280
1280
1281 2. Test that failed phases movement are reported
1281 2. Test that failed phases movement are reported
1282
1282
1283 $ hg phase --force --draft 3
1283 $ hg phase --force --draft 3
1284 test-debug-phase: move rev 3: 0 -> 1
1284 test-debug-phase: move rev 3: 0 -> 1
1285 test-debug-phase: move rev 7: 0 -> 1
1285 test-debug-phase: move rev 7: 0 -> 1
1286 test-debug-phase: move rev 8: 0 -> 1
1286 test-debug-phase: move rev 8: 0 -> 1
1287 test-debug-phase: move rev 9: 0 -> 1
1287 test-debug-phase: move rev 9: 0 -> 1
1288 $ chmod -R -w .hg
1288 $ chmod -R -w .hg
1289 $ hg push ../Phi
1289 $ hg push ../Phi
1290 pushing to ../Phi
1290 pushing to ../Phi
1291 searching for changes
1291 searching for changes
1292 no changes found
1292 no changes found
1293 cannot lock source repo, skipping local public phase update
1293 cannot lock source repo, skipping local public phase update
1294 [1]
1294 [1]
1295 $ chmod -R +w .hg
1295 $ chmod -R +w .hg
1296
1296
1297 $ cd ..
1297 $ cd ..
1298
1298
1299 #endif
1299 #endif
1300
1300
1301 Test that clone behaves like pull and doesn't
1301 Test that clone behaves like pull and doesn't publish changesets as plain push
1302 publish changesets as plain push does
1302 does. The conditional output accounts for changes in the conditional block
1303 above.
1303
1304
1304 $ hg -R Upsilon phase -q --force --draft 2
1305 $ hg -R Upsilon phase -q --force --draft 2
1305 test-debug-phase: move rev 2: 0 -> 1
1306 test-debug-phase: move rev 2: 0 -> 1
1307 test-debug-phase: move rev 3: 0 -> 1 (unix-permissions no-root !)
1308 test-debug-phase: move rev 7: 0 -> 1 (unix-permissions no-root !)
1309 test-debug-phase: move rev 8: 0 -> 1 (unix-permissions no-root !)
1310 test-debug-phase: move rev 9: 0 -> 1 (unix-permissions no-root !)
1311
1306 $ hg clone -q Upsilon Pi -r 7
1312 $ hg clone -q Upsilon Pi -r 7
1307 test-debug-phase: new rev 0: x -> 0
1313 test-debug-phase: new rev 0: x -> 0
1308 test-debug-phase: new rev 1: x -> 0
1314 test-debug-phase: new rev 1: x -> 0
1309 test-debug-phase: new rev 2: x -> 0
1315 test-debug-phase: new rev 2: x -> 0
1310 test-debug-phase: new rev 3: x -> 0
1316 test-debug-phase: new rev 3: x -> 0
1311 test-debug-phase: new rev 4: x -> 0
1317 test-debug-phase: new rev 4: x -> 0
1312 $ hgph Upsilon -r 'min(draft())'
1318 $ hgph Upsilon -r 'min(draft())'
1313 o 2 draft a-C - 54acac6f23ab
1319 o 2 draft a-C - 54acac6f23ab
1314 |
1320 |
1315 ~
1321 ~
1316
1322
1317 $ hg -R Upsilon push Pi -r 7
1323 $ hg -R Upsilon push Pi -r 7
1318 pushing to Pi
1324 pushing to Pi
1319 searching for changes
1325 searching for changes
1320 no changes found
1326 no changes found
1321 test-debug-phase: move rev 2: 1 -> 0
1327 test-debug-phase: move rev 2: 1 -> 0
1322 test-debug-phase: move rev 3: 1 -> 0
1328 test-debug-phase: move rev 3: 1 -> 0
1323 test-debug-phase: move rev 7: 1 -> 0
1329 test-debug-phase: move rev 7: 1 -> 0
1324 [1]
1330 [1]
1325 $ hgph Upsilon -r 'min(draft())'
1331 $ hgph Upsilon -r 'min(draft())'
1326 o 8 draft a-F - b740e3e5c05d
1332 o 8 draft a-F - b740e3e5c05d
1327 |
1333 |
1328 ~
1334 ~
1329
1335
1330 $ hg -R Upsilon push Pi -r 8
1336 $ hg -R Upsilon push Pi -r 8
1331 pushing to Pi
1337 pushing to Pi
1332 searching for changes
1338 searching for changes
1333 adding changesets
1339 adding changesets
1334 adding manifests
1340 adding manifests
1335 adding file changes
1341 adding file changes
1336 added 1 changesets with 1 changes to 1 files
1342 added 1 changesets with 1 changes to 1 files
1337 test-debug-phase: new rev 5: x -> 0
1343 test-debug-phase: new rev 5: x -> 0
1338 test-debug-phase: move rev 8: 1 -> 0
1344 test-debug-phase: move rev 8: 1 -> 0
1339
1345
1340 $ hgph Upsilon -r 'min(draft())'
1346 $ hgph Upsilon -r 'min(draft())'
1341 o 9 draft a-G - 3e27b6f1eee1
1347 o 9 draft a-G - 3e27b6f1eee1
1342 |
1348 |
1343 ~
1349 ~
General Comments 0
You need to be logged in to leave comments. Login now