Mercurial 如何将单个hg存储库转换为多个存储库
我有一个包含5个子目录的存储库 回购/ 如何将中的每个子目录转换为不同的存储库?(只有给定子目录的相关变更集才应转换为新存储库)使用和Mercurial 如何将单个hg存储库转换为多个存储库,mercurial,mercurial-convert,Mercurial,Mercurial Convert,我有一个包含5个子目录的存储库 回购/ 如何将中的每个子目录转换为不同的存储库?(只有给定子目录的相关变更集才应转换为新存储库)使用和--filemap标志(在确保~/.hgrc中启用了转换扩展后): a/ file-a b/ file-b c/ file-c d/ file-d e/ file-e $ hg init new-a $ cat > a-map rename a . exclude b exclude c ... $ hg conve
--filemap
标志(在确保~/.hgrc
中启用了转换
扩展后):
a/
file-a
b/
file-b
c/
file-c
d/
file-d
e/
file-e
$ hg init new-a
$ cat > a-map
rename a .
exclude b
exclude c
...
$ hg convert --filemap a-map old-repo new-a
$ cd new-a
$ hg co tip