How to combine two projects in Mercurial?
mercurial
Solution
I was able to combine my two repositories in this way:
- Use `hg clone first_repository` to clone one of the repositories.
- Use `hg pull -f other_repository` to pull the code in from the other repository.
The `-f` (force) flag on the pull is the key -- it says to ignore the fact that the two repositories are not from the same source.
Here are the docs for this feature.
Problem
I have two separate mercurial repositories. At this point it makes sense that they "become one" because I want to work on the two projects simultaneously. I'd really like the two projects to each be a subdirectory in the new repository. - How do I merge the two projects? - Is this a good idea, or should I keep them separate? It seems I ought to be able to push from one repository to the other... Maybe this is really straight forward?