[histedit] Renaming a branch
Haszlakiewicz, Eric
EHASZLA at transunion.com
Tue Oct 8 17:45:27 UTC 2013
> -----Original Message-----
> From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com] On Behalf Of Blaise Thorn
> Sent: Friday, October 04, 2013 4:03 PM
>
> One can change the branch name of a head changeset:
> hg branch NewName
> hg commit --amend
>
> Is it possible to do the same for an arbitrary non-public changeset?
>
> Using
> hg branch NewName
> hg histedit --continue
> yields no effect (for a non-public changeset I have set to "edit").
hmm... that seems like it *should* work, but it doesn't work for me either. I tried adding an explicit commit after hg branch, but that doesn't work either. (the subsequent changesets remain on the original branch, even though the new commit ends up on the new branch)
I'd call this a bug, especially since you can actually get the behaviour you want right now if you use rebase directly:
hg up -r ${somerev}^1 # update to the revision before the one you want on the branch
hg branch NewName
hg commit -m "switch to new branch"
hg rebase -s ${ somrev} -d .
Eric
More information about the Mercurial
mailing list