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.
It seems I ought to be able to push from one repository to the other... Maybe this is really straight forward?
To start a merge between the two heads, we use the hg merge command. We resolve the contents of hello. c This updates the working directory so that it contains changes from both heads, which is reflected in both the output of hg parents and the contents of hello.
Use the command hg update to switch to an existing branch. Use hg commit --close-branch to mark this branch head as closed.
I was able to combine my two repositories in this way:
hg clone first_repository
to clone one of the repositories.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With