Join multiple subrepos into one and preserve history in Mercurial

后端 未结 3 1417
我寻月下人不归
我寻月下人不归 2020-12-17 18:39

Currently I have project consisting of multiple repositories, e.g.:

+---Project (main repo)
    +---Core (subrepo)
    +---Web          


        
3条回答
  •  独厮守ぢ
    2020-12-17 19:20

    First guess : Perhaps by using the convert extension with a filemap ?

    Another try :

    • Pull all your repos into the same repo, you will have different heads for the "default" branch
    • Then for each head
      • Update to this head
      • Move the files (hg move) into the right directory
    • Merge all the "default" heads together

    Edit : added more details, and another try

提交回复
热议问题