25 $ hg up 1 |
25 $ hg up 1 |
26 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
26 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
27 (leaving bookmark changea) |
27 (leaving bookmark changea) |
28 $ echo a >> a |
28 $ echo a >> a |
29 $ hg amend -m changea |
29 $ hg amend -m changea |
30 1 new orphan changesets |
30 1 new unstable changesets |
31 $ hg evolve -v --confirm |
31 $ hg evolve -v --confirm |
32 move:[2] changea |
32 move:[2] changea |
33 atop:[3] changea |
33 atop:[4] changea |
34 perform evolve? [Ny] n |
34 perform evolve? [Ny] n |
35 abort: evolve aborted by user |
35 abort: evolve aborted by user |
36 [255] |
36 [255] |
37 $ echo y | hg evolve -v --confirm --config ui.interactive=True |
37 $ echo y | hg evolve -v --confirm --config ui.interactive=True |
38 move:[2] changea |
38 move:[2] changea |
39 atop:[3] changea |
39 atop:[4] changea |
40 perform evolve? [Ny] y |
40 perform evolve? [Ny] y |
41 hg rebase -r cce2c55b8965 -d fb9d051ec0a4 |
41 hg rebase -r cce2c55b8965 -d fb9d051ec0a4 |
42 resolving manifests |
42 resolving manifests |
43 evolution of 2:cce2c55b8965 created no changes to commit |
43 evolution of 2:cce2c55b8965 created no changes to commit |
44 |
44 |
45 $ glog --hidden |
45 $ glog --hidden |
46 @ 3:fb9d051ec0a4@default(draft) bk:[changea] changea |
46 @ 4:fb9d051ec0a4@default(draft) bk:[changea] changea |
47 | |
47 | |
48 | x 2:cce2c55b8965@default(draft) bk:[] changea |
48 | x 3:c5727dbded3c@default(draft) bk:[] temporary amend commit for 102a90ea7b4a |
49 | | |
49 | | |
|
50 | | x 2:cce2c55b8965@default(draft) bk:[] changea |
|
51 | |/ |
50 | x 1:102a90ea7b4a@default(draft) bk:[] addb |
52 | x 1:102a90ea7b4a@default(draft) bk:[] addb |
51 |/ |
53 |/ |
52 o 0:07f494440405@default(draft) bk:[] adda |
54 o 0:07f494440405@default(draft) bk:[] adda |
53 |
55 |
54 $ hg debugobsolete |
56 $ hg debugobsolete |
55 102a90ea7b4a3361e4082ed620918c261189a36a fb9d051ec0a450a4aa2ffc8c324979832ef88065 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'amend', 'user': 'test'} |
57 102a90ea7b4a3361e4082ed620918c261189a36a fb9d051ec0a450a4aa2ffc8c324979832ef88065 0 (*) {'ef1': '*', 'user': 'test'} (glob) |
56 cce2c55b896511e0b6e04173c9450ba822ebc740 0 {102a90ea7b4a3361e4082ed620918c261189a36a} (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'operation': 'evolve', 'user': 'test'} |
58 c5727dbded3c3a6877cf60d6bb552a76812cb844 0 {102a90ea7b4a3361e4082ed620918c261189a36a} (*) {'ef1': '*', 'user': 'test'} (glob) |
|
59 cce2c55b896511e0b6e04173c9450ba822ebc740 0 {102a90ea7b4a3361e4082ed620918c261189a36a} (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'user': 'test'} |
57 |
60 |
58 Test evolve with conflict |
61 Test evolve with conflict |
59 |
62 |
60 $ ls |
63 $ ls |
61 a |
64 a |
97 [255] |
100 [255] |
98 $ hg resolve -m a |
101 $ hg resolve -m a |
99 (no more unresolved files) |
102 (no more unresolved files) |
100 continue: hg evolve --continue |
103 continue: hg evolve --continue |
101 $ hg evolve --continue |
104 $ hg evolve --continue |
102 evolving 4:3655f0f50885 "newer a" |
105 evolving 5:3655f0f50885 "newer a" |
103 working directory is now at 1cf0aacfd363 |
106 working directory is now at 1cf0aacfd363 |
104 |
107 |
105 Stabilize latecomer with different parent |
108 Stabilize latecomer with different parent |
106 ========================================= |
109 ========================================= |
107 |
110 |
108 (the same-parent case is handled in test-evolve.t) |
111 (the same-parent case is handled in test-evolve.t) |
109 |
112 |
110 $ glog |
113 $ glog |
111 @ 6:1cf0aacfd363@default(draft) bk:[] newer a |
114 @ 8:1cf0aacfd363@default(draft) bk:[] newer a |
112 | |
115 | |
113 o 5:66719795a494@default(draft) bk:[changea] changea |
116 o 7:66719795a494@default(draft) bk:[changea] changea |
114 | |
117 | |
115 o 0:07f494440405@default(draft) bk:[] adda |
118 o 0:07f494440405@default(draft) bk:[] adda |
116 |
119 |
117 Add another commit |
120 Add another commit |
118 |
121 |
119 $ hg gdown |
122 $ hg gdown |
120 gdown have been deprecated in favor of previous |
123 gdown have been deprecated in favor of previous |
121 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
124 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
122 [5] changea |
125 [7] changea |
123 $ echo 'c' > c |
126 $ echo 'c' > c |
124 $ hg add c |
127 $ hg add c |
125 $ hg commit -m 'add c' |
128 $ hg commit -m 'add c' |
126 created new head |
129 created new head |
127 |
130 |
128 Get a successors of 8 on it |
131 Get a successors of 8 on it |
129 |
132 |
130 $ hg pick 1cf0aacfd363 |
133 $ hg pick 1cf0aacfd363 |
131 picking 6:1cf0aacfd363 "newer a" |
134 picking 8:1cf0aacfd363 "newer a" |
132 |
135 |
133 Add real change to the successors |
136 Add real change to the successors |
134 |
137 |
135 $ echo 'babar' >> a |
138 $ echo 'babar' >> a |
136 $ hg amend |
139 $ hg amend |
137 |
140 |
138 Make precursors public |
141 Make precursors public |
139 |
142 |
140 $ hg phase --hidden --public 1cf0aacfd363 |
143 $ hg phase --hidden --public 1cf0aacfd363 |
141 1 new phase-divergent changesets |
144 1 new bumped changesets |
142 $ glog |
145 $ glog |
143 @ 9:99c21c89bcef@default(draft) bk:[] newer a |
146 @ 12:99c21c89bcef@default(draft) bk:[] newer a |
144 | |
147 | |
145 o 7:7bc2f5967f5e@default(draft) bk:[] add c |
148 o 9:7bc2f5967f5e@default(draft) bk:[] add c |
146 | |
149 | |
147 | o 6:1cf0aacfd363@default(public) bk:[] newer a |
150 | o 8:1cf0aacfd363@default(public) bk:[] newer a |
148 |/ |
151 |/ |
149 o 5:66719795a494@default(public) bk:[changea] changea |
152 o 7:66719795a494@default(public) bk:[changea] changea |
150 | |
153 | |
151 o 0:07f494440405@default(public) bk:[] adda |
154 o 0:07f494440405@default(public) bk:[] adda |
152 |
155 |
153 |
156 |
154 Stabilize! |
157 Stabilize! |
155 |
158 |
156 $ hg evolve --any --dry-run --phase-divergent |
159 $ hg evolve --any --dry-run --phase-divergent |
157 recreate:[9] newer a |
160 recreate:[12] newer a |
158 atop:[6] newer a |
161 atop:[8] newer a |
159 hg rebase --rev 99c21c89bcef --dest 66719795a494; |
162 hg rebase --rev 99c21c89bcef --dest 66719795a494; |
160 hg update 1cf0aacfd363; |
163 hg update 1cf0aacfd363; |
161 hg revert --all --rev 99c21c89bcef; |
164 hg revert --all --rev 99c21c89bcef; |
162 hg commit --msg "phase-divergent update to 99c21c89bcef" |
165 hg commit --msg "bumped update to 99c21c89bcef" |
163 $ hg evolve --any --confirm --phase-divergent |
166 $ hg evolve --any --confirm --phase-divergent |
164 recreate:[9] newer a |
167 recreate:[12] newer a |
165 atop:[6] newer a |
168 atop:[8] newer a |
166 perform evolve? [Ny] n |
169 perform evolve? [Ny] n |
167 abort: evolve aborted by user |
170 abort: evolve aborted by user |
168 [255] |
171 [255] |
169 $ echo y | hg evolve --any --confirm --config ui.interactive=True --phase-divergent |
172 $ echo y | hg evolve --any --confirm --config ui.interactive=True --phase-divergent |
170 recreate:[9] newer a |
173 recreate:[12] newer a |
171 atop:[6] newer a |
174 atop:[8] newer a |
172 perform evolve? [Ny] y |
175 perform evolve? [Ny] y |
173 rebasing to destination parent: 66719795a494 |
176 rebasing to destination parent: 66719795a494 |
174 computing new diff |
177 computing new diff |
175 committed as 8fc63fe1f297 |
178 committed as cd735a3aeb32 |
176 working directory is now at 8fc63fe1f297 |
179 working directory is now at cd735a3aeb32 |
177 $ glog |
180 $ glog |
178 @ 11:8fc63fe1f297@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: |
181 @ 14:cd735a3aeb32@default(draft) bk:[] bumped update to 1cf0aacfd363: |
179 | |
182 | |
180 | o 7:7bc2f5967f5e@default(draft) bk:[] add c |
183 | o 9:7bc2f5967f5e@default(draft) bk:[] add c |
181 | | |
184 | | |
182 o | 6:1cf0aacfd363@default(public) bk:[] newer a |
185 o | 8:1cf0aacfd363@default(public) bk:[] newer a |
183 |/ |
186 |/ |
184 o 5:66719795a494@default(public) bk:[changea] changea |
187 o 7:66719795a494@default(public) bk:[changea] changea |
185 | |
188 | |
186 o 0:07f494440405@default(public) bk:[] adda |
189 o 0:07f494440405@default(public) bk:[] adda |
187 |
190 |
188 $ hg exp |
191 $ hg exp |
189 # HG changeset patch |
192 # HG changeset patch |
190 # User test |
193 # User test |
191 # Date 0 0 |
194 # Date 0 0 |
192 # Thu Jan 01 00:00:00 1970 +0000 |
195 # Thu Jan 01 00:00:00 1970 +0000 |
193 # Node ID 8fc63fe1f297f356d1156bbbbe865b9911efad74 |
196 # Node ID cd735a3aeb32e80b92f780c4ace1650597d581b2 |
194 # Parent 1cf0aacfd36310b18e403e1594871187e0364a82 |
197 # Parent 1cf0aacfd36310b18e403e1594871187e0364a82 |
195 phase-divergent update to 1cf0aacfd363: |
198 bumped update to 1cf0aacfd363: |
196 |
199 |
197 newer a |
200 newer a |
198 |
201 |
199 diff -r 1cf0aacfd363 -r 8fc63fe1f297 a |
202 diff -r 1cf0aacfd363 -r cd735a3aeb32 a |
200 --- a/a Thu Jan 01 00:00:00 1970 +0000 |
203 --- a/a Thu Jan 01 00:00:00 1970 +0000 |
201 +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
204 +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
202 @@ -1,3 +1,4 @@ |
205 @@ -1,3 +1,4 @@ |
203 a |
206 a |
204 a |
207 a |
242 $ mv a a.old |
245 $ mv a a.old |
243 $ echo 'jungle' > a |
246 $ echo 'jungle' > a |
244 $ cat a.old >> a |
247 $ cat a.old >> a |
245 $ rm a.old |
248 $ rm a.old |
246 $ hg amend |
249 $ hg amend |
247 2 new content-divergent changesets |
250 2 new divergent changesets |
248 $ glog |
251 $ glog |
249 @ 14:eacc9c8240fe@default(draft) bk:[] More addition |
252 @ 19:eacc9c8240fe@default(draft) bk:[] More addition |
250 | |
253 | |
251 | o 13:d2f173e25686@default(draft) bk:[] More addition |
254 | o 17:d2f173e25686@default(draft) bk:[] More addition |
252 |/ |
255 |/ |
253 | o 11:8fc63fe1f297@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: |
256 | o 14:(a7cabd7bd9c2|671b9d7eeaec)@default\(draft\) bk:\[\] bumped update to 1cf0aacfd363: (re) |
254 | | |
257 | | |
255 o | 7:7bc2f5967f5e@default(draft) bk:[] add c |
258 o | 9:7bc2f5967f5e@default(draft) bk:[] add c |
256 | | |
259 | | |
257 | o 6:1cf0aacfd363@default(public) bk:[] newer a |
260 | o 8:1cf0aacfd363@default(public) bk:[] newer a |
258 |/ |
261 |/ |
259 o 5:66719795a494@default(public) bk:[changea] changea |
262 o 7:66719795a494@default(public) bk:[changea] changea |
260 | |
263 | |
261 o 0:07f494440405@default(public) bk:[] adda |
264 o 0:07f494440405@default(public) bk:[] adda |
262 |
265 |
263 |
266 |
264 Stabilize it |
267 Stabilize it |
265 |
268 |
266 $ hg evolve -qn --confirm --content-divergent |
269 $ hg evolve -qn --confirm --content-divergent |
267 merge:[14] More addition |
270 merge:[19] More addition |
268 with: [13] More addition |
271 with: [17] More addition |
269 base: [12] More addition |
272 base: [15] More addition |
270 perform evolve? [Ny] n |
273 perform evolve? [Ny] n |
271 abort: evolve aborted by user |
274 abort: evolve aborted by user |
272 [255] |
275 [255] |
273 $ echo y | hg evolve -qn --confirm --config ui.interactive=True --content-divergent |
276 $ echo y | hg evolve -qn --confirm --config ui.interactive=True --content-divergent |
274 merge:[14] More addition |
277 merge:[19] More addition |
275 with: [13] More addition |
278 with: [17] More addition |
276 base: [12] More addition |
279 base: [15] More addition |
277 perform evolve? [Ny] y |
280 perform evolve? [Ny] y |
278 hg update -c eacc9c8240fe && |
281 hg update -c eacc9c8240fe && |
279 hg merge d2f173e25686 && |
282 hg merge d2f173e25686 && |
280 hg commit -m "auto merge resolving conflict between eacc9c8240fe and d2f173e25686"&& |
283 hg commit -m "auto merge resolving conflict between eacc9c8240fe and d2f173e25686"&& |
281 hg up -C 3932c176bbaa && |
284 hg up -C 3932c176bbaa && |
282 hg revert --all --rev tip && |
285 hg revert --all --rev tip && |
283 hg commit -m "`hg log -r eacc9c8240fe --template={desc}`"; |
286 hg commit -m "`hg log -r eacc9c8240fe --template={desc}`"; |
284 $ hg evolve -v --content-divergent |
287 $ hg evolve -v --content-divergent |
285 merge:[14] More addition |
288 merge:[19] More addition |
286 with: [13] More addition |
289 with: [17] More addition |
287 base: [12] More addition |
290 base: [15] More addition |
288 merging "other" content-divergent changeset 'd2f173e25686' |
291 merging "other" divergent changeset 'd2f173e25686' |
289 resolving manifests |
292 resolving manifests |
290 merging a |
293 merging a |
291 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
294 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
292 committing files: |
295 committing files: |
293 a |
296 a |
294 committing manifest |
297 committing manifest |
295 committing changelog |
298 committing changelog |
296 working directory is now at 4d6ed26797bc |
299 working directory is now at 4d6ed26797bc |
297 $ hg st |
300 $ hg st |
298 $ glog |
301 $ glog |
299 @ 15:4d6ed26797bc@default(draft) bk:[] More addition |
302 | o 14:(a7cabd7bd9c2|671b9d7eeaec)@default\(draft\) bk:\[\] bumped update to 1cf0aacfd363: (re) |
300 | |
303 | |
301 | o 11:8fc63fe1f297@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: |
304 | o 14:cd735a3aeb32@default(draft) bk:[] bumped update to 1cf0aacfd363: |
302 | | |
305 | | |
303 o | 7:7bc2f5967f5e@default(draft) bk:[] add c |
306 o | 9:7bc2f5967f5e@default(draft) bk:[] add c |
304 | | |
307 | | |
305 | o 6:1cf0aacfd363@default(public) bk:[] newer a |
308 | o 8:1cf0aacfd363@default(public) bk:[] newer a |
306 |/ |
309 |/ |
307 o 5:66719795a494@default(public) bk:[changea] changea |
310 o 7:66719795a494@default(public) bk:[changea] changea |
308 | |
311 | |
309 o 0:07f494440405@default(public) bk:[] adda |
312 o 0:07f494440405@default(public) bk:[] adda |
310 |
313 |
311 $ hg summary |
314 $ hg summary |
312 parent: 15:4d6ed26797bc tip |
315 parent: 20:4d6ed26797bc tip |
313 More addition |
316 More addition |
314 branch: default |
317 branch: default |
315 commit: (clean) |
318 commit: (clean) |
316 update: 2 new changesets, 2 branch heads (merge) |
319 update: 2 new changesets, 2 branch heads (merge) |
317 phases: 3 draft |
320 phases: 3 draft |
345 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
348 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
346 working directory parent is obsolete! (3932c176bbaa) |
349 working directory parent is obsolete! (3932c176bbaa) |
347 (use 'hg evolve' to update to its successor: 4d6ed26797bc) |
350 (use 'hg evolve' to update to its successor: 4d6ed26797bc) |
348 $ echo 'gotta break' >> a |
351 $ echo 'gotta break' >> a |
349 $ hg amend |
352 $ hg amend |
350 2 new content-divergent changesets |
353 2 new divergent changesets |
351 # reamend so that the case is not the first precursor. |
354 # reamend so that the case is not the first precursor. |
352 $ hg amend -m "More addition (2)" |
355 $ hg amend -m "More addition (2)" |
353 $ hg phase 'contentdivergent()' |
356 $ hg phase 'contentdivergent()' |
354 15: draft |
357 20: draft |
355 17: draft |
358 23: draft |
356 |
359 |
357 $ glog |
360 $ glog |
358 @ 17:0b336205a5d0@default(draft) bk:[] More addition (2) |
361 @ 23:0b336205a5d0@default(draft) bk:[] More addition (2) |
359 | |
362 | |
360 | o 15:4d6ed26797bc@default(draft) bk:[] More addition |
363 | o 20:4d6ed26797bc@default(draft) bk:[] More addition |
361 |/ |
364 |/ |
362 | o 11:8fc63fe1f297@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: |
365 | o 14:cd735a3aeb32@default(draft) bk:[] bumped update to 1cf0aacfd363: |
363 | | |
366 | | |
364 o | 7:7bc2f5967f5e@default(draft) bk:[] add c |
367 o | 9:7bc2f5967f5e@default(draft) bk:[] add c |
365 | | |
368 | | |
366 | o 6:1cf0aacfd363@default(public) bk:[] newer a |
369 | o 8:1cf0aacfd363@default(public) bk:[] newer a |
367 |/ |
370 |/ |
368 o 5:66719795a494@default(public) bk:[changea] changea |
371 o 7:66719795a494@default(public) bk:[changea] changea |
369 | |
372 | |
370 o 0:07f494440405@default(public) bk:[] adda |
373 o 0:07f494440405@default(public) bk:[] adda |
371 |
374 |
372 |
375 |
373 $ hg evolve -qn --content-divergent |
376 $ hg evolve -qn --content-divergent |
376 hg commit -m "auto merge resolving conflict between 0b336205a5d0 and 4d6ed26797bc"&& |
379 hg commit -m "auto merge resolving conflict between 0b336205a5d0 and 4d6ed26797bc"&& |
377 hg up -C 3932c176bbaa && |
380 hg up -C 3932c176bbaa && |
378 hg revert --all --rev tip && |
381 hg revert --all --rev tip && |
379 hg commit -m "`hg log -r 0b336205a5d0 --template={desc}`"; |
382 hg commit -m "`hg log -r 0b336205a5d0 --template={desc}`"; |
380 $ hg evolve --content-divergent |
383 $ hg evolve --content-divergent |
381 merge:[17] More addition (2) |
384 merge:[23] More addition (2) |
382 with: [15] More addition |
385 with: [20] More addition |
383 base: [12] More addition |
386 base: [15] More addition |
384 merging "other" content-divergent changeset '4d6ed26797bc' |
387 merging "other" divergent changeset '4d6ed26797bc' |
385 merging a |
388 merging a |
386 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') |
389 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') |
387 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
390 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
388 fix conflicts and see `hg help evolve.interrupted` |
391 fix conflicts and see `hg help evolve.interrupted` |
389 [1] |
392 [1] |