Please see attached an example repo and mapping file that cannot be converted with the given submodule mapping technique.
Top level repo is srt_ambiguous. In v1 and v2 branches there is a srt_subx subrepo. But, they have different origins per branch. in branch v1 srt_subx corresponds to srt_suba repo. In v2 branch srt_subx refers to srt_subb repo.
I suspect the mapping file convention will need to be extended to define per-branch mappings. As with issue #187, I am not familiar-enough with the inner workings of hg2git and hg-fast-export(.sh|.py) to hack this myself.
ambiguous.zip