Madan Mohan
Madan Mohan

Reputation: 8820

How to checkout the source code from Mercurial

I need to download the source code from the 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

I tried it in terminal by using this link to download the source code.But the command is failed.

Anyone can help me to get rid of this.

Thanks to all, Madan.

Upvotes: 11

Views: 13686

Answers (2)

Dosya
Dosya

Reputation: 21

It's not a SVN link, it's Mercurial link, so you can't use svn tool. You need Mercurial for this.

Upvotes: 1

evotopid
evotopid

Reputation: 5429

The problem is, that you didn't added the fingerprint of google to your hgrc file. There are two ways to solve the problem:

  1. Use http instead of https, the disadvantage would be, that your traffic isn't encrypted anymore.

    hg clone http://xmppframework.googlecode.com/hg/ xmppframework

  2. Or add the fingerprint to you hgrc file:
    Please note that Google Code is changing the fingerprint sometimes. When the fingerprint below doesn't work, you can use this command (taken from this question) to detect the current fingerprint:

    $ openssl s_client -connect xmppframework.googlecode.com:443 < /dev/null 2>/dev/null | openssl x509 -fingerprint -noout -in /dev/stdin

     

    [hostfingerprints]

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

Edited because original answer was ugly.

Upvotes: 32

Related Questions