rebasing my bookmark on top of another bookmark in mercurial

1.7k Views Asked by At

I have a bookmark named X and a bookmark named Y. I would like to rebase Y on top of X. Basically I would like a stacked diff with Y on top of X and that Y parent is X.

2

There are 2 best solutions below

0
On

When you start with

o-o-B-1-2-X
     \-3-4-Y

you need hg rebase -b Y -d X to transform the history into

o-o-B-1-2-X-3'-4'-Y'
0
On

should be

hg rebase -b X -d Y

where X is the base and Y is the destination