拆分mercurial存储库时出错

拆分mercurial存储库时出错,mercurial,bitbucket,mercurial-convert,Mercurial,Bitbucket,Mercurial Convert,我有一个托管在bitbucket上的mercurial存储库,其中包含几个文件夹。我的目标是将每个文件夹拆分为一个单独的存储库。在尝试了stackoverflow上的一些建议后,我的最后一次尝试是在 尽管我严格按照指示行事,但这也失败了: hg convert -s hg -d hg --filemap mymapfile hgsplitpractice hgfreshrepo initializing destination hgfreshrepo repository hgsplitprac

我有一个托管在bitbucket上的mercurial存储库,其中包含几个文件夹。我的目标是将每个文件夹拆分为一个单独的存储库。在尝试了stackoverflow上的一些建议后,我的最后一次尝试是在

尽管我严格按照指示行事,但这也失败了:

hg convert -s hg -d hg --filemap mymapfile hgsplitpractice hgfreshrepo
initializing destination hgfreshrepo repository
hgsplitpractice is not a local Mercurial repository
abort: hgsplitpractice: missing or unsupported repository
这与我之前尝试拆分实际回购协议时出现的错误相同

问题是: 1.为什么会失败? 2.是否有其他方法拆分这些存储库?

您可以尝试使用

在命令之后:

--filemap
您可以使用:

exclude path/that/you/want/to/split
rename path/that/you/want/to/split .

有关更多信息,请参阅此线程:

我遇到了与您相同的错误。 在我的例子中,问题是一些非常愚蠢的事情:我用两个存储库的名称来引用它们,而不是指定它们的完整路径。 我希望它能帮助别人

这是失败的:

hg convert -s hg -d hg --filemap mymapfile "My-old-repo" "New-repo"
这很有魅力:

hg convert -s hg -d hg --filemap mymapfile "d:/allrepos/My-old-repo" "d:/allrepos/New-repo"

我确实看到了这条线索,我相信这是我的出发点。在我的主repo文件夹中已经有一个文件mymapfile,其中包含include bigdir行。在包含行exclude lildir exclude lildir2之后,仍然会出现相同的错误。hgsplitpractice不是Mercurial repo显然hgsplitpractice是使用hg clone创建的,如帮助页面中所建议的。这怎么不是一个反复无常的回购协议呢?