如何使用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
答案 0 :(得分:1)
它正在为我成功克隆:
$ 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网址。