Reputation: 553
I have two branches default
and bug
, I want to rebase bug
branch with last commit from default
branch. I've tried:
hg phase --draft --force -r bug
hg rebase -d default
Result: I have default
branch with my commits from bug
branch. Which is not exactly what I want, so now I have two issues:
default
branch equal to repository?hg rebase
that it change the bug
branch, not default
?Upvotes: 3
Views: 1761
Reputation: 177901
When you rebased incorrectly, Mercurial normally saves a backup in .hg\strip-backup
. Restore that backup with hg pull <path_to_backup>
. Then, hg strip -r <incorrect_rebased_rev>
. That should put you back where you started.
hg rebase -r default -d bug
will move the latest default changeset to the tip of bug.
Upvotes: 3