Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从Mercurial签出源代码_Mercurial - Fatal编程技术网

如何从Mercurial签出源代码

如何从Mercurial签出源代码,mercurial,Mercurial,我需要从Mercurial下载源代码 $ hg clone xmppframework.googlecode.com/hg xmppframework warning: xmppframework.googlecode.com certificate with fingerprint b1:af:83:76:f3:81:b0:57:70:d8:07:42:c8:c1:b3:67:38:c8:7a:bc not verified (check hostfingerprints or web.

我需要从Mercurial下载源代码

$ hg clone xmppframework.googlecode.com/hg xmppframework 
  warning: xmppframework.googlecode.com certificate with fingerprint b1:af:83:76:f3:81:b0:57:70:d8:07:42:c8:c1:b3:67:38:c8:7a:bc not verified (check hostfingerprints or web.cacerts config setting) 
  requesting all changes 
  adding changesets 
  adding manifests 
  adding file changes
我用这个链接在终端上下载了源代码,但是命令失败了

任何人都可以帮我摆脱这个

感谢大家,,
Madan。

问题是,你没有将谷歌的指纹添加到你的hgrc文件中。 有两种方法可以解决此问题:

  • 使用
    http
    而不是
    https
    ,缺点是您的流量不再加密

    hg克隆xmppframework

  • 或者将指纹添加到hgrc文件:
    请注意,谷歌代码有时会改变指纹。当下面的指纹不起作用时,您可以使用此命令(取自此命令)检测当前指纹:

    $openssl s|u client-connectxmppframework.googlecode.com:443/dev/null | openssl x509-fingerprint-noout-in/dev/stdin

    [指纹]

    xmppframework.googlecode.com=b1:af:83:76:f3:81:b0:57:70:d8:07:42:c8:c1:b3:67:38:c8:7a:bc


  • 编辑是因为原始答案很难看。

    它不是SVN链接,而是Mercurial链接,所以不能使用SVN工具。你需要这样做。

    上次登录:ttys001 kishore babu bs mac mini上的周一2月21日19:41:58:~KishoreBabu$cd桌面KishoreBabu bs mac mini:desktop KishoreBabu$cd Monish_new KishoreBabu bs mac mini:Monish_new kishorebabub$hg clone xmppframework警告:xmppframework.googlecode.com带指纹的证书b1:af:83:76:f3:81:b0:57:70:d8:07:42:c8:c1:b3:67:38:c8:7a:bc未验证(检查主机指纹或web.cacerts配置设置)请求所有更改添加更改集添加清单添加文件更改登录:周一2月21日19:41:58在ttys001 kishore babu bs mac mini:~KishoreBabu$cd桌面KishoreBabu bs mac mini:desktop KishoreBabu$cd Monish_new kishore babu bs mac mini:Monish_new KishoreBabu$hg clone xmppframework警告:指纹为b1:af:83:76:f3:81:b0:57:70:d8:07:42:c8:c1:b3:67:38:c8:7a:bc的xmppframework.googlecode.com证书未经验证(检查hostfingerprints或web.cacerts配置设置)请求所有更改添加更改集添加清单添加文件更改能否告诉我您使用的Mercurial版本?,您可以使用$hg--version打印出来。请编辑您的问题,并将输出作为一个格式化的文本块发布,这样更易于阅读和查找。不过,看起来它实际上成功地从该输出中克隆了存储库。你需要编辑你的问题,以显示你做了什么,发生了什么,以及你的期望。是的,通过使用http而不是https,我下载了源代码。非常感谢你的提问。