Mercurial: copying ONE file and its history to another repository

后端 未结 2 724
失恋的感觉
失恋的感觉 2020-12-07 15:51

I\'m wondering if I can copy one file and its history from one repository to another, without having to import the whole other repository.

2条回答
  •  甜味超标
    2020-12-07 16:19

    Just to add to Niall C.'s answer, you can rename the files you are importing to place them at the correct place too.

    You must first rename the file, then include it. Your filemap would look like that:

    rename "original/path" "wished/path"
    include "original/path"
    

提交回复
热议问题