We are faced with a situation where we are maintaining two code bases in the same repository. The folder structure looks like this:
/WebRoot/
In our default branch the /WebRoot/ is very different from the /WebRoot/ in the Stable branch. The goal is to move /WebRoot/ from the Stable branch to /WebRoot/ in default branch. And the current default /WebRoot/ will become /WebRootX/. So in the end, all code will be in default and we won't have to switch back and forth between default and Stable branches when making changes in the two different code bases.
| | |
| | |
| --------
| | QA
| |
-------|
| Stable
|
default
I'm thinking that we have to use hg convert to move the Stable code out to a different (temp) repository. Then rename the default WebRoot to WebRootX. Then import the Stable /WebRoot/ folder back in.
I have done several tests and I'm not getting the desired results. I have tried using hg convert with the branchmap ("Stable default") to get the Stable branch out to a temp repository, but that's not working. I'm seeing code from default in there.
What is the best way to accomplish this?