0
是的,我知道hg-fast-export.sh which some people really hate怎樣的汞回購轉換爲在OS一個git回購X
即使當我終於設法得到它仍然發現善變的模塊,它在我的回購中無效:
$ $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回購中什麼也沒產生。
我試圖HG-到混帳的混帳回購協議:
$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-到混帳想告訴我,HG-快速導出告訴我,只有在同樣的事情一種更加內在和格式化的方式。不管怎樣,我認爲一個工具應該繼續面對一個奇怪的情況,併產生至少一個部分結果,即使它通知用戶這個問題。
有沒有人有任何建議?
4不需要。它不能解決匿名分支的問題 –