There may be two solutions that I could think of. However, both have their drawbacks.
Assuming your development tip is āDā and the steady tip is āSā.
1) For this you can use the forwarding extension. First, clone your repo developer and run:
hg -b <D> -d <S> --collapse --detach
Make sure you are using the latest version of Mercurial (stable tip). Recently, several fixes have been fixed that affect this particular use of rebase. The disadvantage is that you have to merge with each revision in a separate development branch.
2) You can merge your repositories as usual, but instead of merging, use the following hack. ss
hg update <S> hg merge <D> ...resolve conflicts if necessary... ...but do not commit!... hg debugsetparents <S> hg commit -m "Squash merge from devel branch"
Thus, we force only one parent to be committed. This is a hack and therefore not recommended. But it works great for me.
source share