comparison tests/test-rebase-named-branches.t @ 31380:65d93d712777

rebase: allow rebasing children of wd to wd if a new branch has been set (BC) The named branch of the leaf changeset can be changed by updating to it, setting the branch, and amending. But previously, there was no good way to *just* change the branch of several linear changes. If rebasing changes with another parent to '.', it would pick up a pending branch change up. But when rebasing changes that have the same parent, it would fail with 'nothing to rebase', even when the branch name was set differently. To fix this, allow rebasing to same parent when a branch has been set.
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 12 Mar 2017 16:44:01 -0700
parents fac3a24be50e
children 3b7cb3d17137
comparison
equal deleted inserted replaced
31379:b6a6df38a802 31380:65d93d712777
385 o | 1: 'b2' b 385 o | 1: 'b2' b
386 |/ 386 |/
387 o 0: '0' 387 o 0: '0'
388 388
389 389
390 $ hg up -cr 1
391 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
392 $ hg branch x
393 marked working directory as branch x
394 $ hg rebase -r 3:: -d .
395 rebasing 3:76abc1c6f8c7 "b1"
396 rebasing 4:8427af5d86f2 "c2 closed" (tip)
397 note: rebase of 4:8427af5d86f2 created no changes to commit
398 saved backup bundle to $TESTTMP/case2/.hg/strip-backup/76abc1c6f8c7-cd698d13-backup.hg (glob)
399 $ hg tglog
400 o 3: 'b1' x
401 |
402 | o 2: 'c1' c
403 | |
404 @ | 1: 'b2' b
405 |/
406 o 0: '0'
407
408
390 $ cd .. 409 $ cd ..