Mercurial > evolve
comparison tests/test-evolve-topic.t @ 6396:e5bd76f95145 mercurial-5.5
test-compat: merge mercurial-5.6 into mercurial-5.5
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 06 Feb 2023 21:38:31 +0400 |
parents | 1328195f76a9 |
children |
comparison
equal
deleted
inserted
replaced
6350:0aff320554d2 | 6396:e5bd76f95145 |
---|---|
126 | 126 |
127 $ hg evolve --all --update | 127 $ hg evolve --all --update |
128 move:[s3] add eee | 128 move:[s3] add eee |
129 atop:[s2] add ddd | 129 atop:[s2] add ddd |
130 move:[s4] add fff | 130 move:[s4] add fff |
131 working directory is now at 070c5573d8f9 | 131 working directory is now at ad43ddbeead9 |
132 $ hg log -G | 132 $ hg log -G |
133 @ 13 - {foo} 070c5573d8f9 add fff (draft) | 133 @ 13 - {foo} ad43ddbeead9 add fff (draft) |
134 | | 134 | |
135 o 12 - {foo} 42b49017ff90 add eee (draft) | 135 o 12 - {foo} 42b49017ff90 add eee (draft) |
136 | | 136 | |
137 o 10 - {foo} d9cacd156ffc add ddd (draft) | 137 o 10 - {foo} d9cacd156ffc add ddd (draft) |
138 | | 138 | |
164 move:[6] add ggg | 164 move:[6] add ggg |
165 atop:[13] add fff | 165 atop:[13] add fff |
166 move:[7] add hhh | 166 move:[7] add hhh |
167 move:[8] add iii | 167 move:[8] add iii |
168 move:[9] add jjj | 168 move:[9] add jjj |
169 working directory is now at 9bf430c106b7 | 169 working directory is now at fed0f67a2171 |
170 $ hg log -G | 170 $ hg log -G |
171 @ 17 - {bar} 9bf430c106b7 add jjj (draft) | 171 @ 17 - {bar} fed0f67a2171 add jjj (draft) |
172 | | 172 | |
173 o 16 - {bar} d2dc89c57700 add iii (draft) | 173 o 16 - {bar} 94e899639b23 add iii (draft) |
174 | | 174 | |
175 o 15 - {bar} 20bc4d02aa62 add hhh (draft) | 175 o 15 - {bar} 55e5cd2b6cd6 add hhh (draft) |
176 | | 176 | |
177 o 14 - {bar} 16d6f664b17c add ggg (draft) | 177 o 14 - {bar} 56107a7ddeaf add ggg (draft) |
178 | | 178 | |
179 o 13 - {foo} 070c5573d8f9 add fff (draft) | 179 o 13 - {foo} ad43ddbeead9 add fff (draft) |
180 | | 180 | |
181 o 12 - {foo} 42b49017ff90 add eee (draft) | 181 o 12 - {foo} 42b49017ff90 add eee (draft) |
182 | | 182 | |
183 o 10 - {foo} d9cacd156ffc add ddd (draft) | 183 o 10 - {foo} d9cacd156ffc add ddd (draft) |
184 | | 184 | |
225 [12] add eee | 225 [12] add eee |
226 | 226 |
227 Testing when instability is involved | 227 Testing when instability is involved |
228 | 228 |
229 $ hg log -G | 229 $ hg log -G |
230 o 17 - {bar} 9bf430c106b7 add jjj (draft) | 230 o 17 - {bar} fed0f67a2171 add jjj (draft) |
231 | | 231 | |
232 o 16 - {bar} d2dc89c57700 add iii (draft) | 232 o 16 - {bar} 94e899639b23 add iii (draft) |
233 | | 233 | |
234 o 15 - {bar} 20bc4d02aa62 add hhh (draft) | 234 o 15 - {bar} 55e5cd2b6cd6 add hhh (draft) |
235 | | 235 | |
236 o 14 - {bar} 16d6f664b17c add ggg (draft) | 236 o 14 - {bar} 56107a7ddeaf add ggg (draft) |
237 | | 237 | |
238 o 13 - {foo} 070c5573d8f9 add fff (draft) | 238 o 13 - {foo} ad43ddbeead9 add fff (draft) |
239 | | 239 | |
240 @ 12 - {foo} 42b49017ff90 add eee (draft) | 240 @ 12 - {foo} 42b49017ff90 add eee (draft) |
241 | | 241 | |
242 o 10 - {foo} d9cacd156ffc add ddd (draft) | 242 o 10 - {foo} d9cacd156ffc add ddd (draft) |
243 | | 243 | |
245 | | 245 | |
246 o 1 - {} a4dbed0837ea add bbb (draft) | 246 o 1 - {} a4dbed0837ea add bbb (draft) |
247 | | 247 | |
248 o 0 - {} 199cc73e9a0b add aaa (draft) | 248 o 0 - {} 199cc73e9a0b add aaa (draft) |
249 | 249 |
250 $ hg topic -r 070c5573d8f9 bar | 250 $ hg topic -r ad43ddbeead9 bar |
251 4 new orphan changesets | 251 4 new orphan changesets |
252 changed topic on 1 changesets to "bar" | 252 changed topic on 1 changesets to "bar" |
253 $ hg log -r 18 -T '{rev}: {join(extras, " ")}\n' | 253 $ hg log -r 18 -T '{rev}: {join(extras, " ")}\n' |
254 18: _rewrite_noise=[0-9a-f]+ amend_source=[0-9a-f]+ branch=default rebase_source=[0-9a-f]+ topic=bar (re) | 254 18: _rewrite_noise=[0-9a-f]+ branch=default rebase_source=[0-9a-f]+ topic=bar (re) |
255 $ hg up 16d6f664b17c | 255 $ hg up 56107a7ddeaf |
256 switching to topic bar | 256 switching to topic bar |
257 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 257 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
258 | 258 |
259 $ hg stack | 259 $ hg stack |
260 ### topic: bar | 260 ### topic: bar |
272 | 272 |
273 Testing issue 5708 when we are on obsolete changeset and there is active topic | 273 Testing issue 5708 when we are on obsolete changeset and there is active topic |
274 ------------------------------------------------------------------------------ | 274 ------------------------------------------------------------------------------ |
275 | 275 |
276 $ hg log --graph | 276 $ hg log --graph |
277 @ 18 - {bar} c80027c7cda1 add fff (draft) | 277 @ 18 - {bar} 8dde0971132d add fff (draft) |
278 | | 278 | |
279 | * 17 - {bar} 9bf430c106b7 add jjj (draft) | 279 | * 17 - {bar} fed0f67a2171 add jjj (draft) |
280 | | | 280 | | |
281 | * 16 - {bar} d2dc89c57700 add iii (draft) | 281 | * 16 - {bar} 94e899639b23 add iii (draft) |
282 | | | 282 | | |
283 | * 15 - {bar} 20bc4d02aa62 add hhh (draft) | 283 | * 15 - {bar} 55e5cd2b6cd6 add hhh (draft) |
284 | | | 284 | | |
285 | * 14 - {bar} 16d6f664b17c add ggg (draft) | 285 | * 14 - {bar} 56107a7ddeaf add ggg (draft) |
286 | | | 286 | | |
287 | x 13 - {foo} 070c5573d8f9 add fff (draft) | 287 | x 13 - {foo} ad43ddbeead9 add fff (draft) |
288 |/ | 288 |/ |
289 o 12 - {foo} 42b49017ff90 add eee (draft) | 289 o 12 - {foo} 42b49017ff90 add eee (draft) |
290 | | 290 | |
291 o 10 - {foo} d9cacd156ffc add ddd (draft) | 291 o 10 - {foo} d9cacd156ffc add ddd (draft) |
292 | | 292 | |
301 * bar (5 changesets, 4 unstable) | 301 * bar (5 changesets, 4 unstable) |
302 foo (3 changesets) | 302 foo (3 changesets) |
303 | 303 |
304 When the current topic, obsoleted changesets topic and successor topic are same | 304 When the current topic, obsoleted changesets topic and successor topic are same |
305 | 305 |
306 $ hg up 20bc4d02aa62 | 306 $ hg up 55e5cd2b6cd6 |
307 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 307 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
308 $ echo foobar >> hhh | 308 $ echo foobar >> hhh |
309 $ hg amend | 309 $ hg amend |
310 $ hg up 20bc4d02aa62 | 310 $ hg up 55e5cd2b6cd6 |
311 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 311 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
312 working directory parent is obsolete! (20bc4d02aa62) | 312 working directory parent is obsolete! (55e5cd2b6cd6) |
313 (use 'hg evolve' to update to its successor: d834582d9ee3) | 313 (use 'hg evolve' to update to its successor: 604c23b08613) |
314 $ hg log -Gr 14:: | 314 $ hg log -Gr 14:: |
315 * 19 - {bar} d834582d9ee3 add hhh (draft) | 315 * 19 - {bar} 604c23b08613 add hhh (draft) |
316 | | 316 | |
317 | * 17 - {bar} 9bf430c106b7 add jjj (draft) | 317 | * 17 - {bar} fed0f67a2171 add jjj (draft) |
318 | | | 318 | | |
319 | * 16 - {bar} d2dc89c57700 add iii (draft) | 319 | * 16 - {bar} 94e899639b23 add iii (draft) |
320 | | | 320 | | |
321 | @ 15 - {bar} 20bc4d02aa62 add hhh (draft) | 321 | @ 15 - {bar} 55e5cd2b6cd6 add hhh (draft) |
322 |/ | 322 |/ |
323 * 14 - {bar} 16d6f664b17c add ggg (draft) | 323 * 14 - {bar} 56107a7ddeaf add ggg (draft) |
324 | | 324 | |
325 ~ | 325 ~ |
326 | 326 |
327 $ hg prev | 327 $ hg prev |
328 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 328 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
329 [s2] add ggg | 329 [s2] add ggg |
330 | 330 |
331 When the current topic and successors topic are same, but obsolete cset has | 331 When the current topic and successors topic are same, but obsolete cset has |
332 different topic | 332 different topic |
333 | 333 |
334 $ hg rebase -s d2dc89c57700 -d d834582d9ee3 --config extensions.rebase= | 334 $ hg rebase -s 94e899639b23 -d 604c23b08613 --config extensions.rebase= |
335 rebasing 16:d2dc89c57700 "add iii" (bar) | 335 rebasing 16:94e899639b23 "add iii" (bar) |
336 1 new orphan changesets | 336 1 new orphan changesets |
337 rebasing 17:9bf430c106b7 "add jjj" (bar) | 337 rebasing 17:fed0f67a2171 "add jjj" (bar) |
338 1 new orphan changesets | 338 1 new orphan changesets |
339 $ hg log -Gr 42b49017ff90:: | 339 $ hg log -Gr 42b49017ff90:: |
340 * 21 - {bar} 7542e76aba2c add jjj (draft) | 340 * 21 - {bar} 573bbc059289 add jjj (draft) |
341 | | 341 | |
342 * 20 - {bar} 7858bd7e9906 add iii (draft) | 342 * 20 - {bar} 8e94e3065186 add iii (draft) |
343 | | 343 | |
344 * 19 - {bar} d834582d9ee3 add hhh (draft) | 344 * 19 - {bar} 604c23b08613 add hhh (draft) |
345 | | 345 | |
346 | o 18 - {bar} c80027c7cda1 add fff (draft) | 346 | o 18 - {bar} 8dde0971132d add fff (draft) |
347 | | | 347 | | |
348 @ | 14 - {bar} 16d6f664b17c add ggg (draft) | 348 @ | 14 - {bar} 56107a7ddeaf add ggg (draft) |
349 | | | 349 | | |
350 x | 13 - {foo} 070c5573d8f9 add fff (draft) | 350 x | 13 - {foo} ad43ddbeead9 add fff (draft) |
351 |/ | 351 |/ |
352 o 12 - {foo} 42b49017ff90 add eee (draft) | 352 o 12 - {foo} 42b49017ff90 add eee (draft) |
353 | | 353 | |
354 ~ | 354 ~ |
355 | 355 |
356 $ hg up 070c5573d8f9 | 356 $ hg up ad43ddbeead9 |
357 switching to topic foo | 357 switching to topic foo |
358 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 358 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
359 working directory parent is obsolete! (070c5573d8f9) | 359 working directory parent is obsolete! (ad43ddbeead9) |
360 (use 'hg evolve' to update to its successor: c80027c7cda1) | 360 (use 'hg evolve' to update to its successor: 8dde0971132d) |
361 | 361 |
362 $ hg topic bar | 362 $ hg topic bar |
363 | 363 |
364 $ hg prev | 364 $ hg prev |
365 no parent in topic "bar" | 365 no parent in topic "bar" |
367 [1] | 367 [1] |
368 | 368 |
369 When current topic and obsolete cset topic are same but successor has different | 369 When current topic and obsolete cset topic are same but successor has different |
370 one | 370 one |
371 | 371 |
372 $ hg up 070c5573d8f9 | 372 $ hg up ad43ddbeead9 |
373 switching to topic foo | 373 switching to topic foo |
374 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 374 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
375 $ hg prev | 375 $ hg prev |
376 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 376 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
377 [s3] add eee | 377 [s3] add eee |
390 $ echo "changes in hhh" > hhh | 390 $ echo "changes in hhh" > hhh |
391 $ hg add hhh | 391 $ hg add hhh |
392 $ hg ci --amend | 392 $ hg ci --amend |
393 4 new orphan changesets | 393 4 new orphan changesets |
394 $ hg log -G | 394 $ hg log -G |
395 @ 26 - {bar} 239dcab64bc0 add fff (draft) | 395 @ 26 - {bar} 235873f1950b add fff (draft) |
396 | | 396 | |
397 | * 25 - {bar} e49f8682fb23 add jjj (draft) | 397 | * 25 - {bar} ed0b505ff189 add jjj (draft) |
398 | | | 398 | | |
399 | * 24 - {bar} 318094e157e3 add iii (draft) | 399 | * 24 - {bar} 50b1b9387d50 add iii (draft) |
400 | | | 400 | | |
401 | * 23 - {bar} aa8b0df2da21 add hhh (draft) | 401 | * 23 - {bar} 0d4bb3a72a5b add hhh (draft) |
402 | | | 402 | | |
403 | * 22 - {bar} 310e9f9bceb1 add ggg (draft) | 403 | * 22 - {bar} 548702c1d91c add ggg (draft) |
404 | | | 404 | | |
405 | x 18 - {bar} c80027c7cda1 add fff (draft) | 405 | x 18 - {bar} 8dde0971132d add fff (draft) |
406 |/ | 406 |/ |
407 o 12 - {foo} 42b49017ff90 add eee (draft) | 407 o 12 - {foo} 42b49017ff90 add eee (draft) |
408 | | 408 | |
409 o 10 - {foo} d9cacd156ffc add ddd (draft) | 409 o 10 - {foo} d9cacd156ffc add ddd (draft) |
410 | | 410 | |
426 $ echo "resolved hhh" > hhh | 426 $ echo "resolved hhh" > hhh |
427 $ hg resolve --mark hhh | 427 $ hg resolve --mark hhh |
428 (no more unresolved files) | 428 (no more unresolved files) |
429 continue: hg evolve --continue | 429 continue: hg evolve --continue |
430 $ hg evolve --continue | 430 $ hg evolve --continue |
431 evolving 23:aa8b0df2da21 "add hhh" | 431 evolving 23:0d4bb3a72a5b "add hhh" |
432 move:[s4] add iii | 432 move:[s4] add iii |
433 atop:[s3] add hhh | 433 atop:[s3] add hhh |
434 move:[s5] add jjj | 434 move:[s5] add jjj |
435 | 435 |
436 Test to make sure that evolve don't crash with FilteredRepoLookupError when obsolete revs are in play: | 436 Test to make sure that evolve don't crash with FilteredRepoLookupError when obsolete revs are in play: |
439 update to obsolete revision | 439 update to obsolete revision |
440 $ hg up -r 'min(desc("add fff"))' --hidden | 440 $ hg up -r 'min(desc("add fff"))' --hidden |
441 switching to topic foo | 441 switching to topic foo |
442 2 files updated, 0 files merged, 1 files removed, 0 files unresolved | 442 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
443 updated to hidden changeset 6a6b7365c751 | 443 updated to hidden changeset 6a6b7365c751 |
444 (hidden revision '6a6b7365c751' was rewritten as: 239dcab64bc0) | 444 (hidden revision '6a6b7365c751' was rewritten as: 235873f1950b) |
445 working directory parent is obsolete! (6a6b7365c751) | 445 working directory parent is obsolete! (6a6b7365c751) |
446 (use 'hg evolve' to update to its successor: 239dcab64bc0) | 446 (use 'hg evolve' to update to its successor: 235873f1950b) |
447 | 447 |
448 Evolve: | 448 Evolve: |
449 $ hg evolve | 449 $ hg evolve |
450 update:[26] add fff | 450 update:[26] add fff |
451 switching to topic bar | 451 switching to topic bar |
452 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | 452 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
453 working directory is now at 239dcab64bc0 | 453 working directory is now at 235873f1950b |