Tag Archive for Mercurial

Mercurial入門の導入関連

大まかな概念図

Mercurialのリポジトリの概念

Mercurialのリポジトリの概念

Mercurial チートシート 日本語版 (カンペ的なもの)

困ったときは・・・

  • とりあえずcommit→push→pull→updateの流れを一周してみる
  • hg revertする
  • もう一旦あきらめて、新しくフォルダ作っちゃってhg cloneからやりなおす

MercurialのSSLエラー → [hostfingerprints]

スーパーemergeタイムかましてからなんかMercurialの様子がおかしくなった。

https://www.hogehoge.com/repository への反映中
中断: エラー: _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

SSL関連のエラー。今まではでなかった。証明書かえたわけでもなく。

どうやら1.7.4から設定ファイルにhostfingerprintsセクションなるものが出来て、それを設定しなければいけなかったらしい。

~/.hgrcに以下のようにfingerprintを追加したらなおった。

...
[hostfingerprints]
www.hogehoge.com = 11:22:33:44:55:66:77:88:99:10:aa:bb:cc:dd:ee:ff:1a:2b:3c:4d

ちなみに、cloneとかpush時に–insecureオプション追加してもとりあえずいけるっぽい。

Gentoo-Prefix上でMercurialのSSL関連エラー

Gentoo-Prefix@MacでMercurial使おうとしたら謎のエラー。

user@hogehoge ~/projects $ hg clone https://***.com/***
abort: Python SSL support not found

Python用のSSLが入っていないようだ。

とりあえずpythonをemerge -avしてみる。

taka@mobuild ~/projects $ emerge -av python

 * IMPORTANT: 3 news items need reading for repository 'gentoo_prefix'.
 * Use eselect news to read news items.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-lang/python-3.3.0:3.3::gentoo [3.3.0:3.3::gentoo_prefix] USE="ipv6 ncurses readline sqlite* ssl threads xml -build -doc -examples -gdbm -tk -wininst" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

おやおや、SSLフラグは入っている。おかしいなぁ。

と思ったらPython 3をemergeしていた。スロット分けされている2.7の方をemerge -avしてみると・・・

taka@mobuild ~/projects $ emerge -av "<=dev-lang/python-3.0"

 * IMPORTANT: 3 news items need reading for repository 'gentoo_prefix'.
 * Use eselect news to read news items.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-lang/python-2.7.3-r2:2.7::gentoo [2.7.3-r2:2.7::gentoo_prefix] USE="aqua ipv6* ncurses readline* sqlite* ssl* threads (wide-unicode) xml (-berkdb) -build -doc -examples -gdbm -tk -wininst" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

ビンゴ。sslフラグが入ってませんでした。

Gentoo Prefixはデフォルトではsslフラグ入って無いんですね。Python 3のほうは入ってるのに。まぁなんか事情があるんでしょう。

とりあえず無事にhg cloneできるようになりましたとさ。