I have a repository in which a developer has made an error while committing code to various named branches. Essentially, what happened was this :
A - B - C
\
W - X - D - E - Y - Z
In which ABCDE are all (supposed) to be part of the main branch, and WXYZ are commits on a new named branch. The developer failed to update to 'C' before making his changes 'D' and 'E', and then committed 'Y' and 'Z' on top of them.
I need to move 'D' and 'E' onto the main branch, without including WXYZ.
A - B - C - D - E
\
W - X - Y - Z
I'm not terribly savvy with Hg overall, but I'm learning, and willing. I've looked at rebase, and that doesn't appear to bring me where I need to go. I could have the dev backout his changes, and re-apply them in the proper location, but that doesn't seem 'right' exactly.
How would you go about resolving this issue?
Thanks!