是的,我知道hg-fast-export.sh which some people really hate
即使我最终设法让它找到mercurial模块,它仍然不能在我的repo上工作:
$ $HOME/Notes/fast-export/hg-fast-export.sh -r $HOME/path-to-repo
Error: repository has at least one unnamed head: hg r194
git-fast-import statistics:
. . .在目标git存储库中不产生任何内容。
我在git repo中尝试了hg-to-git:
$HOME/Desktop/tmp/git-master/contrib/hg-to-git/hg-to-git.py -v .
tip is 1197
analysing the branches...
Traceback (most recent call last):
File "/Users/dsw/Desktop/tmp/git-master/contrib/hg-to-git/hg-to-git.py", line 135, in <module>
hgchildren[parent] += ( str(cset), )
KeyError: '-1'也许这是hg- to -git试图告诉我hg-fast-export告诉我的事情,只是以一种更发自内心和格式塔的方式。不知何故,我认为一个工具应该在奇怪的情况下继续工作,并至少产生部分结果,即使它将问题告知用户。
有人有什么建议吗?
发布于 2013-08-27 15:23:09
我从来没有想过这样做,但我相信最简单的方法是:
的书签,指向您的头部
基本上,请阅读hg-git页面。都在这里了。
https://stackoverflow.com/questions/18438359
复制相似问题