Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mercurial 如何将单个hg存储库转换为多个存储库_Mercurial_Mercurial Convert - Fatal编程技术网

Mercurial 如何将单个hg存储库转换为多个存储库

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

我有一个包含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 convert --filemap a-map old-repo new-a
$ cd new-a
$ hg co tip