comparison tests/test-stabilize-result.t @ 3591:98941c28f3e2 mercurial-4.3

test-compat: merge mercurial-4.4 into mercurial-4.3
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 21 Mar 2018 16:18:31 +0100
parents d5adce52cef4 85cdce113c2c
children 7a5c3175015e a77fb9669e99
comparison
equal deleted inserted replaced
3590:d5adce52cef4 3591:98941c28f3e2
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 $ glog --hidden 43 $ glog --hidden
44 @ 3:fb9d051ec0a4@default(draft) bk:[changea] changea 44 @ 4:fb9d051ec0a4@default(draft) bk:[changea] changea
45 | 45 |
46 | x 2:cce2c55b8965@default(draft) bk:[] changea 46 | x 3:c5727dbded3c@default(draft) bk:[] temporary amend commit for 102a90ea7b4a
47 | | 47 | |
48 | | x 2:cce2c55b8965@default(draft) bk:[] changea
49 | |/
48 | x 1:102a90ea7b4a@default(draft) bk:[] addb 50 | x 1:102a90ea7b4a@default(draft) bk:[] addb
49 |/ 51 |/
50 o 0:07f494440405@default(draft) bk:[] adda 52 o 0:07f494440405@default(draft) bk:[] adda
51 53
52 $ hg debugobsolete 54 $ hg debugobsolete
53 102a90ea7b4a3361e4082ed620918c261189a36a fb9d051ec0a450a4aa2ffc8c324979832ef88065 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'amend', 'user': 'test'} 55 102a90ea7b4a3361e4082ed620918c261189a36a fb9d051ec0a450a4aa2ffc8c324979832ef88065 0 (*) {'ef1': '*', 'user': 'test'} (glob)
54 cce2c55b896511e0b6e04173c9450ba822ebc740 0 {102a90ea7b4a3361e4082ed620918c261189a36a} (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '0', 'operation': 'evolve', 'user': 'test'} 56 c5727dbded3c3a6877cf60d6bb552a76812cb844 0 {102a90ea7b4a3361e4082ed620918c261189a36a} (*) {'ef1': '*', 'user': 'test'} (glob)
57 cce2c55b896511e0b6e04173c9450ba822ebc740 0 {102a90ea7b4a3361e4082ed620918c261189a36a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
55 58
56 Test evolve with conflict 59 Test evolve with conflict
57 60
58 $ ls 61 $ ls
59 a 62 a
68 $ echo 'newer a' >> a 71 $ echo 'newer a' >> a
69 $ hg ci -m 'newer a' 72 $ hg ci -m 'newer a'
70 $ hg gdown 73 $ hg gdown
71 gdown have been deprecated in favor of previous 74 gdown have been deprecated in favor of previous
72 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 75 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
73 [3] changea 76 [4] changea
74 $ echo 'a' > a 77 $ echo 'a' > a
75 $ hg amend 78 $ hg amend
76 1 new orphan changesets 79 1 new unstable changesets
77 $ hg evolve 80 $ hg evolve
78 move:[4] newer a 81 move:[5] newer a
79 atop:[5] changea 82 atop:[7] changea
80 merging a 83 merging a
81 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') 84 warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
82 evolve failed! 85 evolve failed!
83 fix conflict and run 'hg evolve --continue' or use 'hg update -C .' to abort 86 fix conflict and run 'hg evolve --continue' or use 'hg update -C .' to abort
84 abort: unresolved merge conflicts (see hg help resolve) 87 abort: unresolved merge conflicts (see hg help resolve)
91 @@ -1,1 +1,3 @@ 94 @@ -1,1 +1,3 @@
92 a 95 a
93 +a 96 +a
94 +newer a 97 +newer a
95 $ hg evolve --continue 98 $ hg evolve --continue
96 evolving 4:3655f0f50885 "newer a" 99 evolving 5:3655f0f50885 "newer a"
97 abort: unresolved merge conflicts (see 'hg help resolve') 100 abort: unresolved merge conflicts (see 'hg help resolve')
98 [255] 101 [255]
99 $ hg resolve -m a 102 $ hg resolve -m a
100 (no more unresolved files) 103 (no more unresolved files)
101 continue: hg evolve --continue 104 continue: hg evolve --continue
102 $ hg evolve --continue 105 $ hg evolve --continue
103 evolving 4:3655f0f50885 "newer a" 106 evolving 5:3655f0f50885 "newer a"
104 working directory is now at 1cf0aacfd363 107 working directory is now at 1cf0aacfd363
105 108
106 Stabilize latecomer with different parent 109 Stabilize latecomer with different parent
107 ========================================= 110 =========================================
108 111
109 (the same-parent case is handled in test-evolve.t) 112 (the same-parent case is handled in test-evolve.t)
110 113
111 $ glog 114 $ glog
112 @ 6:1cf0aacfd363@default(draft) bk:[] newer a 115 @ 8:1cf0aacfd363@default(draft) bk:[] newer a
113 | 116 |
114 o 5:66719795a494@default(draft) bk:[changea] changea 117 o 7:66719795a494@default(draft) bk:[changea] changea
115 | 118 |
116 o 0:07f494440405@default(draft) bk:[] adda 119 o 0:07f494440405@default(draft) bk:[] adda
117 120
118 Add another commit 121 Add another commit
119 122
120 $ hg gdown 123 $ hg gdown
121 gdown have been deprecated in favor of previous 124 gdown have been deprecated in favor of previous
122 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 125 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
123 [5] changea 126 [7] changea
124 $ echo 'c' > c 127 $ echo 'c' > c
125 $ hg add c 128 $ hg add c
126 $ hg commit -m 'add c' 129 $ hg commit -m 'add c'
127 created new head 130 created new head
128 131
129 Get a successors of 8 on it 132 Get a successors of 8 on it
130 133
131 $ hg grab 1cf0aacfd363 134 $ hg grab 1cf0aacfd363
132 grabbing 6:1cf0aacfd363 "newer a" 135 grabbing 8:1cf0aacfd363 "newer a"
133 136
134 Add real change to the successors 137 Add real change to the successors
135 138
136 $ echo 'babar' >> a 139 $ echo 'babar' >> a
137 $ hg amend 140 $ hg amend
138 141
139 Make precursors public 142 Make precursors public
140 143
141 $ hg phase --hidden --public 1cf0aacfd363 144 $ hg phase --hidden --public 1cf0aacfd363
142 1 new phase-divergent changesets 145 1 new bumped changesets
143 $ glog 146 $ glog
144 @ 9:99c21c89bcef@default(draft) bk:[] newer a 147 @ 12:99c21c89bcef@default(draft) bk:[] newer a
145 | 148 |
146 o 7:7bc2f5967f5e@default(draft) bk:[] add c 149 o 9:7bc2f5967f5e@default(draft) bk:[] add c
147 | 150 |
148 | o 6:1cf0aacfd363@default(public) bk:[] newer a 151 | o 8:1cf0aacfd363@default(public) bk:[] newer a
149 |/ 152 |/
150 o 5:66719795a494@default(public) bk:[changea] changea 153 o 7:66719795a494@default(public) bk:[changea] changea
151 | 154 |
152 o 0:07f494440405@default(public) bk:[] adda 155 o 0:07f494440405@default(public) bk:[] adda
153 156
154 157
155 Stabilize! 158 Stabilize!
156 159
157 $ hg evolve --any --dry-run --phase-divergent 160 $ hg evolve --any --dry-run --phase-divergent
158 recreate:[9] newer a 161 recreate:[12] newer a
159 atop:[6] newer a 162 atop:[8] newer a
160 hg rebase --rev 99c21c89bcef --dest 66719795a494; 163 hg rebase --rev 99c21c89bcef --dest 66719795a494;
161 hg update 1cf0aacfd363; 164 hg update 1cf0aacfd363;
162 hg revert --all --rev 99c21c89bcef; 165 hg revert --all --rev 99c21c89bcef;
163 hg commit --msg "phase-divergent update to 99c21c89bcef" 166 hg commit --msg "bumped update to 99c21c89bcef"
164 $ hg evolve --any --confirm --phase-divergent 167 $ hg evolve --any --confirm --phase-divergent
165 recreate:[9] newer a 168 recreate:[12] newer a
166 atop:[6] newer a 169 atop:[8] newer a
167 perform evolve? [Ny] n 170 perform evolve? [Ny] n
168 abort: evolve aborted by user 171 abort: evolve aborted by user
169 [255] 172 [255]
170 $ echo y | hg evolve --any --confirm --config ui.interactive=True --phase-divergent 173 $ echo y | hg evolve --any --confirm --config ui.interactive=True --phase-divergent
171 recreate:[9] newer a 174 recreate:[12] newer a
172 atop:[6] newer a 175 atop:[8] newer a
173 perform evolve? [Ny] y 176 perform evolve? [Ny] y
174 rebasing to destination parent: 66719795a494 177 rebasing to destination parent: 66719795a494
175 computing new diff 178 computing new diff
176 committed as 3d968e0b3097 179 committed as e34e87ea7b83
177 working directory is now at 3d968e0b3097 180 working directory is now at e34e87ea7b83
178 $ glog 181 $ glog
179 @ 11:3d968e0b3097@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: 182 @ 14:e34e87ea7b83@default(draft) bk:[] bumped update to 1cf0aacfd363:
180 | 183 |
181 | o 7:7bc2f5967f5e@default(draft) bk:[] add c 184 | o 9:7bc2f5967f5e@default(draft) bk:[] add c
182 | | 185 | |
183 o | 6:1cf0aacfd363@default(public) bk:[] newer a 186 o | 8:1cf0aacfd363@default(public) bk:[] newer a
184 |/ 187 |/
185 o 5:66719795a494@default(public) bk:[changea] changea 188 o 7:66719795a494@default(public) bk:[changea] changea
186 | 189 |
187 o 0:07f494440405@default(public) bk:[] adda 190 o 0:07f494440405@default(public) bk:[] adda
188 191
189 192
190 Stabilize divergent changesets with same parent 193 Stabilize divergent changesets with same parent
201 > less 204 > less
202 > conflict 205 > conflict
203 > EOF 206 > EOF
204 $ hg ci -m 'More addition' 207 $ hg ci -m 'More addition'
205 $ glog 208 $ glog
206 @ 12:3932c176bbaa@default(draft) bk:[] More addition 209 @ 15:3932c176bbaa@default(draft) bk:[] More addition
207 | 210 |
208 | o 11:3d968e0b3097@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: 211 | o 14:(a7cabd7bd9c2|671b9d7eeaec)@default\(draft\) bk:\[\] bumped update to 1cf0aacfd363: (re)
209 | | 212 | |
210 o | 7:7bc2f5967f5e@default(draft) bk:[] add c 213 o | 9:7bc2f5967f5e@default(draft) bk:[] add c
211 | | 214 | |
212 | o 6:1cf0aacfd363@default(public) bk:[] newer a 215 | o 8:1cf0aacfd363@default(public) bk:[] newer a
213 |/ 216 |/
214 o 5:66719795a494@default(public) bk:[changea] changea 217 o 7:66719795a494@default(public) bk:[changea] changea
215 | 218 |
216 o 0:07f494440405@default(public) bk:[] adda 219 o 0:07f494440405@default(public) bk:[] adda
217 220
218 $ echo 'babar' >> a 221 $ echo 'babar' >> a
219 $ hg amend 222 $ hg amend
224 $ mv a a.old 227 $ mv a a.old
225 $ echo 'jungle' > a 228 $ echo 'jungle' > a
226 $ cat a.old >> a 229 $ cat a.old >> a
227 $ rm a.old 230 $ rm a.old
228 $ hg amend 231 $ hg amend
229 2 new content-divergent changesets 232 2 new divergent changesets
230 $ glog 233 $ glog
231 @ 14:eacc9c8240fe@default(draft) bk:[] More addition 234 @ 19:eacc9c8240fe@default(draft) bk:[] More addition
232 | 235 |
233 | o 13:d2f173e25686@default(draft) bk:[] More addition 236 | o 17:d2f173e25686@default(draft) bk:[] More addition
234 |/ 237 |/
235 | o 11:3d968e0b3097@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: 238 | o 14:(a7cabd7bd9c2|671b9d7eeaec)@default\(draft\) bk:\[\] bumped update to 1cf0aacfd363: (re)
236 | | 239 | |
237 o | 7:7bc2f5967f5e@default(draft) bk:[] add c 240 o | 9:7bc2f5967f5e@default(draft) bk:[] add c
238 | | 241 | |
239 | o 6:1cf0aacfd363@default(public) bk:[] newer a 242 | o 8:1cf0aacfd363@default(public) bk:[] newer a
240 |/ 243 |/
241 o 5:66719795a494@default(public) bk:[changea] changea 244 o 7:66719795a494@default(public) bk:[changea] changea
242 | 245 |
243 o 0:07f494440405@default(public) bk:[] adda 246 o 0:07f494440405@default(public) bk:[] adda
244 247
245 248
246 Stabilize it 249 Stabilize it
247 250
248 $ hg evolve -qn --confirm --content-divergent 251 $ hg evolve -qn --confirm --content-divergent
249 merge:[14] More addition 252 merge:[19] More addition
250 with: [13] More addition 253 with: [17] More addition
251 base: [12] More addition 254 base: [15] More addition
252 perform evolve? [Ny] n 255 perform evolve? [Ny] n
253 abort: evolve aborted by user 256 abort: evolve aborted by user
254 [255] 257 [255]
255 $ echo y | hg evolve -qn --confirm --config ui.interactive=True --content-divergent 258 $ echo y | hg evolve -qn --confirm --config ui.interactive=True --content-divergent
256 merge:[14] More addition 259 merge:[19] More addition
257 with: [13] More addition 260 with: [17] More addition
258 base: [12] More addition 261 base: [15] More addition
259 perform evolve? [Ny] y 262 perform evolve? [Ny] y
260 hg update -c eacc9c8240fe && 263 hg update -c eacc9c8240fe &&
261 hg merge d2f173e25686 && 264 hg merge d2f173e25686 &&
262 hg commit -m "auto merge resolving conflict between eacc9c8240fe and d2f173e25686"&& 265 hg commit -m "auto merge resolving conflict between eacc9c8240fe and d2f173e25686"&&
263 hg up -C 3932c176bbaa && 266 hg up -C 3932c176bbaa &&
264 hg revert --all --rev tip && 267 hg revert --all --rev tip &&
265 hg commit -m "`hg log -r eacc9c8240fe --template={desc}`"; 268 hg commit -m "`hg log -r eacc9c8240fe --template={desc}`";
266 $ hg evolve -v --content-divergent 269 $ hg evolve -v --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 merging content-divergent changeset 273 merging divergent changeset
271 resolving manifests 274 resolving manifests
272 merging a 275 merging a
273 0 files updated, 1 files merged, 0 files removed, 0 files unresolved 276 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
274 amending changeset eacc9c8240fe 277 amending changeset eacc9c8240fe
275 committing files: 278 committing files:
276 a 279 a
277 committing manifest 280 committing manifest
278 committing changelog 281 committing changelog
279 committed changeset 15:f344982e63c4 282 copying changeset 283ccd10e2b8 to 7bc2f5967f5e
283 committing files:
284 a
285 committing manifest
286 committing changelog
287 committed changeset 21:f344982e63c4
280 working directory is now at f344982e63c4 288 working directory is now at f344982e63c4
281 $ hg st 289 $ hg st
282 $ glog 290 $ glog
283 @ 15:f344982e63c4@default(draft) bk:[] More addition 291 @ 21:f344982e63c4@default(draft) bk:[] More addition
284 | 292 |
285 | o 11:3d968e0b3097@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: 293 | o 14:(a7cabd7bd9c2|671b9d7eeaec)@default\(draft\) bk:\[\] bumped update to 1cf0aacfd363: (re)
286 | | 294 | |
287 o | 7:7bc2f5967f5e@default(draft) bk:[] add c 295 o | 9:7bc2f5967f5e@default(draft) bk:[] add c
288 | | 296 | |
289 | o 6:1cf0aacfd363@default(public) bk:[] newer a 297 | o 8:1cf0aacfd363@default(public) bk:[] newer a
290 |/ 298 |/
291 o 5:66719795a494@default(public) bk:[changea] changea 299 o 7:66719795a494@default(public) bk:[changea] changea
292 | 300 |
293 o 0:07f494440405@default(public) bk:[] adda 301 o 0:07f494440405@default(public) bk:[] adda
294 302
295 $ hg summary 303 $ hg summary
296 parent: 15:f344982e63c4 tip 304 parent: 21:f344982e63c4 tip
297 More addition 305 More addition
298 branch: default 306 branch: default
299 commit: (clean) 307 commit: (clean)
300 update: 2 new changesets, 2 branch heads (merge) 308 update: 2 new changesets, 2 branch heads (merge)
301 phases: 3 draft 309 phases: 3 draft
329 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 337 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
330 working directory parent is obsolete! (3932c176bbaa) 338 working directory parent is obsolete! (3932c176bbaa)
331 (use 'hg evolve' to update to its successor: f344982e63c4) 339 (use 'hg evolve' to update to its successor: f344982e63c4)
332 $ echo 'gotta break' >> a 340 $ echo 'gotta break' >> a
333 $ hg amend 341 $ hg amend
334 2 new content-divergent changesets 342 2 new divergent changesets
335 # reamend so that the case is not the first precursor. 343 # reamend so that the case is not the first precursor.
336 $ hg amend -m "More addition (2)" 344 $ hg amend -m "More addition (2)"
337 $ hg phase 'contentdivergent()' 345 $ hg phase 'contentdivergent()'
338 15: draft 346 21: draft
339 17: draft 347 24: draft
340 $ hg evolve -qn --content-divergent 348 $ hg evolve -qn --content-divergent
341 hg update -c 0b336205a5d0 && 349 hg update -c 0b336205a5d0 &&
342 hg merge f344982e63c4 && 350 hg merge f344982e63c4 &&
343 hg commit -m "auto merge resolving conflict between 0b336205a5d0 and f344982e63c4"&& 351 hg commit -m "auto merge resolving conflict between 0b336205a5d0 and f344982e63c4"&&
344 hg up -C 3932c176bbaa && 352 hg up -C 3932c176bbaa &&
345 hg revert --all --rev tip && 353 hg revert --all --rev tip &&
346 hg commit -m "`hg log -r 0b336205a5d0 --template={desc}`"; 354 hg commit -m "`hg log -r 0b336205a5d0 --template={desc}`";
347 $ hg evolve --content-divergent 355 $ hg evolve --content-divergent
348 merge:[17] More addition (2) 356 merge:[24] More addition (2)
349 with: [15] More addition 357 with: [21] More addition
350 base: [12] More addition 358 base: [15] More addition
351 merging a 359 merging a
352 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') 360 warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
353 0 files updated, 0 files merged, 0 files removed, 1 files unresolved 361 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
354 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abort 362 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abort
355 abort: merge conflict between several amendments (this is not automated yet) 363 abort: merge conflict between several amendments (this is not automated yet)