- in old repo:
- create file with branch mappings
- one mapping per line, e.g.
default tmp
- one mapping per line, e.g.
- 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)
- create file with branch mappings
- in new repo:
- hg pull -f path/to/some-new-dir