Ame*_*nti 3 mercurial dvcs repository
可能重复:
我可以拆分Mercurial存储库吗?
我有一个包含多个项目的Mercurial存储库(当我开始使用Mercurial时,这似乎是一个好主意......).
是否可以将项目/文件夹转换为其历史记录完整的新存储库?
提前致谢.
您应该可以使用ConvertExtension,从Mercurial转换为Mercurial.
来自docs:
Run Code Online (Sandbox Code Playgroud)The filemap is a file that allows filtering and remapping of files and directories. Each line can contain one of the following directives: include path/to/file-or-dir exclude path/to/file-or-dir rename path/to/source path/to/destination
我使用以下命令行取得了成功
hg convert ./OriginalRepo ./NewRepo --filemap fm.txt
Run Code Online (Sandbox Code Playgroud)
其中fm-txt看起来像
include SubProjectFolderName
Run Code Online (Sandbox Code Playgroud)
您可能希望将该文件夹重命名为不是新仓库中的子文件夹.虽然我没有尝试过.
| 归档时间: |
|
| 查看次数: |
1817 次 |
| 最近记录: |