Mercurial > hg-stable
comparison tests/test-rebase-collapse.t @ 14897:b9daa5b7a3af stable
rebase: block collapse with keepbranches on multiple named branches (issue2112)
Collapse and keepbranches should be blocked when there is more than
one named branch on the branch that's going to be rebased.
author | Stefano Tortarolo <stefano.tortarolo@gmail.com> |
---|---|
date | Mon, 18 Jul 2011 22:58:21 +0200 |
parents | 624e5ce615ec |
children | 3bfdfefea2fc |
comparison
equal
deleted
inserted
replaced
14892:d2d592718e90 | 14897:b9daa5b7a3af |
---|---|
440 B | 440 B |
441 C | 441 C |
442 D | 442 D |
443 F | 443 F |
444 | 444 |
445 Interactions between collapse and keepbranches | |
446 $ cd .. | |
447 $ hg init e | |
448 $ cd e | |
449 $ echo 'a' > a | |
450 $ hg ci -Am 'A' | |
451 adding a | |
452 | |
453 $ hg branch '1' | |
454 marked working directory as branch 1 | |
455 $ echo 'b' > b | |
456 $ hg ci -Am 'B' | |
457 adding b | |
458 | |
459 $ hg branch '2' | |
460 marked working directory as branch 2 | |
461 $ echo 'c' > c | |
462 $ hg ci -Am 'C' | |
463 adding c | |
464 | |
465 $ hg up -q 0 | |
466 $ echo 'd' > d | |
467 $ hg ci -Am 'D' | |
468 adding d | |
469 | |
470 $ hg tglog | |
471 @ 3: 'D' | |
472 | | |
473 | o 2: 'C' 2 | |
474 | | | |
475 | o 1: 'B' 1 | |
476 |/ | |
477 o 0: 'A' | |
478 | |
479 $ hg rebase --keepbranches --collapse -s 1 -d 3 | |
480 abort: cannot collapse multiple named branches | |
481 [255] | |
482 |