##// END OF EJS Templates
test-rebase-collapse: Add test for rebase regression introduced in 12309c09d19a
Augie Fackler -
r15990:76630fbb stable
parent child Browse files
Show More
@@ -490,3 +490,54 b' Interactions between collapse and keepbr'
490 abort: cannot collapse multiple named branches
490 abort: cannot collapse multiple named branches
491 [255]
491 [255]
492
492
493 $ repeatchange() {
494 > hg checkout $1
495 > hg cp d z
496 > echo blah >> z
497 > hg commit -Am "$2" --user "$3"
498 > }
499 $ repeatchange 3 "E" "user1"
500 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
501 $ repeatchange 3 "E" "user2"
502 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
503 created new head
504 $ hg tglog
505 @ 5: 'E'
506 |
507 | o 4: 'E'
508 |/
509 o 3: 'D'
510 |
511 | o 2: 'C' 2
512 | |
513 | o 1: 'B' 1
514 |/
515 o 0: 'A'
516
517 $ hg rebase -s 5 -d 4
518 saved backup bundle to $TESTTMP/e/.hg/strip-backup/*-backup.hg (glob)
519 $ hg tglog
520 @ 4: 'E'
521 |
522 o 3: 'D'
523 |
524 | o 2: 'C' 2
525 | |
526 | o 1: 'B' 1
527 |/
528 o 0: 'A'
529
530 $ hg export tip
531 # HG changeset patch
532 # User user1
533 # Date 0 0
534 # Node ID f338eb3c2c7cc5b5915676a2376ba7ac558c5213
535 # Parent 41acb9dca9eb976e84cd21fcb756b4afa5a35c09
536 E
537
538 diff -r 41acb9dca9eb -r f338eb3c2c7c z
539 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
540 +++ b/z Thu Jan 01 00:00:00 1970 +0000
541 @@ -0,0 +1,2 @@
542 +d
543 +blah
General Comments 0
You need to be logged in to leave comments. Login now