0

如何使用 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
4

1 回答 1

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

您的错误消息看起来像是您遇到了网络连接故障,但这更有可能与您的互联网连接有关,而不是与他们的连接有关。

您可以尝试执行 ahg init后跟 a hg pull -r 1 https://hg.kenai.com/hg/javaee-patterns~hg,它只提取第一个变更集,但这仅在您在下载时超时时才有帮助 - 您在最初连接时超时。

看起来如果您创建一个帐户并登录,他们会向您显示一个可能更强大的 ssh URL。

于 2013-02-15T20:21:36.793 回答