move changes to branch retroactively?

Neal Becker ndbecker2 at gmail.com
Thu Jan 8 15:51:36 UTC 2015


Matthew Turk wrote:

> Hi Neal,
> 
> On Thu, Jan 8, 2015 at 9:35 AM, Neal Becker <ndbecker2 at gmail.com> wrote:
> 
>> I have 2 commits to default that I'd now like to move off of default onto
>> a new
>> branch.  Can I do this?
>>
> 
> Yup, you can do this with rebase (or rebase --keep if you don't want to
> delete the changes or if they are already in public phase).  Just rebase
> onto your destination branch.
> 
> -Matt

Thanks!  So what are the exact steps needed?

1st rev I want to move is 1116.  There is also it's child 1117, which is 
currently tip.

1. Create new branch.
2. Commit new branch.
3. rebase ?

(I'm using the tortoisehg gui, so not sure of the hg commands)




More information about the Mercurial mailing list