1. in old repo:
    • create file with branch mappings
      • one mapping per line, e.g.
        default tmp
    • hg convert –branchmap file . some-new-dir
      • this creates a dir some-new-dir/.hg, which contains the old repo, but with renamed branches (to avoid clashes with new repo)
  2. in new repo:
    • hg pull -f path/to/some-new-dir