I was able to combine my two repositories in this way:
- Use
hg clone first_repositoryto clone one of the repositories. - Use
hg pull -f other_repositoryto 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.