如何使用Mercurial下载源代码?我对从http://kenai.com/projects/javaee-patterns/sources/hg/show/AOPandJavaEE获取源代码很感兴趣。我安装了Mercurial,并尝试了hg clone https://hg.kenai.com/hg/javaee-patterns~hg,但得到了以下错误:
abort: error: A connection attempt failed because the connected party did not pr
operly respond after a period of time, or established connection failed because
connected host has failed to respond发布于 2013-02-16 04:21:37
它对我来说克隆成功了:
$ hg clone https://hg.kenai.com/hg/javaee-patterns~hg
warning: hg.kenai.com certificate with fingerprint 9c:f6:c3:1f:14:bc:98:82:de:2a:5b:6e:d2:ce:61:5d:95:e1:65:a5 not verified (check hostfingerprints or web.cacerts config setting)
destination directory: javaee-patterns~hg
requesting all changes
adding changesets
adding manifests
adding file changes
added 465 changesets with 3698 changes to 2360 files (+1 heads)
updating to branch default
2064 files updated, 0 files merged, 0 files removed, 0 files unresolved你的错误消息使你看起来像是网络连接失败,但这更有可能与你的互联网连接有关,而不是他们的。
您可以尝试先执行一个hg init,然后再执行一个hg pull -r 1 https://hg.kenai.com/hg/javaee-patterns~hg,它只提取第一个变更集,但只有在下载时超时时才会有帮助--最初连接时超时。
看起来,如果你创建了一个帐号并登录,他们会给你显示一个ssh URL,它可能更健壮。
https://stackoverflow.com/questions/14902357
复制相似问题