comparison tests/test-prev-next.t @ 4516:f54bb6eaf5e6 mercurial-4.4

test-compat: merge mercurial-4.5 into mercurial-4.4
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 11 Apr 2019 22:44:53 +0200
parents a2fdbece7ce1 7a779a288793
children 79bc0f1a832e
comparison
equal deleted inserted replaced
4514:ef1c322c389d 4516:f54bb6eaf5e6
181 [1] added b 181 [1] added b
182 182
183 some aspiring children 183 some aspiring children
184 184
185 $ hg amend -m 'added b (2)' 185 $ hg amend -m 'added b (2)'
186 1 new orphan changesets
187 $ hg next --no-evolve 186 $ hg next --no-evolve
188 no children 187 no children
189 (1 unstable changesets to be evolved here, do you want --evolve?) 188 (1 unstable changesets to be evolved here, do you want --evolve?)
190 [1] 189 [1]
191 $ hg next --evolve --dry-run 190 $ hg next --evolve --dry-run
228 [3] added b (2) 227 [3] added b (2)
229 228
230 next with ambiguity in aspiring children 229 next with ambiguity in aspiring children
231 230
232 $ hg am -m 'added b (3)' 231 $ hg am -m 'added b (3)'
233 2 new orphan changesets
234 $ hg next --no-evolve 232 $ hg next --no-evolve
235 no children 233 no children
236 (2 unstable changesets to be evolved here, do you want --evolve?) 234 (2 unstable changesets to be evolved here, do you want --evolve?)
237 [1] 235 [1]
238 $ hg next --evolve <<EOF 236 $ hg next --evolve <<EOF
250 $ hg log -GT "{rev}:{node|short} {desc}\n" 248 $ hg log -GT "{rev}:{node|short} {desc}\n"
251 @ 7:5ce67c2407b0 added c 249 @ 7:5ce67c2407b0 added c
252 | 250 |
253 o 6:d7f119adc759 added b (3) 251 o 6:d7f119adc759 added b (3)
254 | 252 |
255 | * 5:9df671ccd2c7 added d 253 | o 5:9df671ccd2c7 added d
256 | | 254 | |
257 | x 3:9ad178109a19 added b (2) 255 | x 3:9ad178109a19 added b (2)
258 |/ 256 |/
259 o 0:a154386e50d1 added a 257 o 0:a154386e50d1 added a
260 258
346 344
347 $ hg amend --edit & 345 $ hg amend --edit &
348 $ sleep 1 346 $ sleep 1
349 $ hg next --evolve 347 $ hg next --evolve
350 waiting for lock on working directory of $TESTTMP/repo held by process '*' on host '*' (glob) 348 waiting for lock on working directory of $TESTTMP/repo held by process '*' on host '*' (glob)
351 1 new orphan changesets
352 got lock after (\d+) seconds (re) 349 got lock after (\d+) seconds (re)
353 move:[2] two 350 move:[2] two
354 atop:[3] one 351 atop:[3] one
355 working directory now at a7d885c75614 352 working directory now at a7d885c75614
356 $ wait 353 $ wait
367 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 364 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
368 365
369 $ echo foobar > bar 366 $ echo foobar > bar
370 $ hg add bar 367 $ hg add bar
371 $ hg amend 368 $ hg amend
372 1 new orphan changesets
373 369
374 $ echo babar > bar 370 $ echo babar > bar
375 371
376 $ hg next --evolve 372 $ hg next --evolve
377 abort: uncommitted changes 373 abort: uncommitted changes
553 @@ -0,0 +1,1 @@ 549 @@ -0,0 +1,1 @@
554 +bbbbb 550 +bbbbb
555 record this change to 'b'? [Ynesfdaq?] y 551 record this change to 'b'? [Ynesfdaq?] y
556 552
557 no more change to split 553 no more change to split
558 1 new orphan changesets
559 554
560 $ hg up 3 -q 555 $ hg up 3 -q
561 $ hg log -GT "{rev}:{node|short} {desc}\n" 556 $ hg log -GT "{rev}:{node|short} {desc}\n"
562 o 4:279f6cab32b5 B 557 o 4:279f6cab32b5 B
563 | 558 |
565 | new desc 560 | new desc
566 @ 3:a9f74d07e45c B 561 @ 3:a9f74d07e45c B
567 | 562 |
568 | 563 |
569 | new desc 564 | new desc
570 | * 2:fdc998261dcb C 565 | o 2:fdc998261dcb C
571 | | 566 | |
572 | x 1:cc0edb0cc2b1 B 567 | x 1:cc0edb0cc2b1 B
573 |/ 568 |/
574 o 0:cae96ff49c84 A 569 o 0:cae96ff49c84 A
575 570
576 $ hg ci --amend -m "B modified" 571 $ hg ci --amend -m "B modified"
577 1 new orphan changesets
578 $ hg log -GT "{rev}:{node|short} {desc}\n" 572 $ hg log -GT "{rev}:{node|short} {desc}\n"
579 @ 5:64ab03d3110c B modified 573 @ 5:64ab03d3110c B modified
580 | 574 |
581 | * 4:279f6cab32b5 B 575 | o 4:279f6cab32b5 B
582 | | 576 | |
583 | | 577 | |
584 | | new desc 578 | | new desc
585 | x 3:a9f74d07e45c B 579 | x 3:a9f74d07e45c B
586 |/ 580 |/
587 | 581 |
588 | new desc 582 | new desc
589 | * 2:fdc998261dcb C 583 | o 2:fdc998261dcb C
590 | | 584 | |
591 | x 1:cc0edb0cc2b1 B 585 | x 1:cc0edb0cc2b1 B
592 |/ 586 |/
593 o 0:cae96ff49c84 A 587 o 0:cae96ff49c84 A
594 588