OpenSolarisのソースコードをゲットする

OpenSolarisソースコードですが、サイト上のOpenGrok(http://src.opensolaris.org/source/)で簡単に検索・閲覧ができます。

今回は、ローカルディスクにソースコードを持ってくるところ。

OpenSolarisのサイト内 [Main Pages] -> [Get the Source] にありますが、Mercurial (hg) repositoryからsshで取りに行くという意外と大変な方法が記載されています。
(基本的に会社の中からsshって使えないだろう&sshだと回線的に重い?)


ssh://anon@hg.opensolaris.org/hg/project/project-repo

実は上記条件のため、何度か試しつつ挫折をしていたのですが bitbucketサイトにミラーがあるようで、今回無事ゲットできました。


$ hg clone http://bitbucket.org/mirror/onnv-gate/
destination directory: onnv-gate
requesting all changes
adding changesets
adding manifests
adding file changes
added 10898 changesets with 128585 changes to 56532 files
updating working directory
45123 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ ls
onnv-gate/
$

ちなみに、家の回線で 11分 ほどかかりました。
(回線はマンション共用型なので、そんなに速くないかな?)
今日のリポジトリ状態で tarで800Mbyte、tar.gzで320Mbyteとなりました。


$ ls -al
drwxr-xr-x 3 hoge staff 4 Feb 9 02:32 ./
drwxr-xr-x 6 hoge staff 8 Feb 9 02:16 ../
drwxr-xr-x 5 hoge staff 7 Feb 9 02:27 onnv-gate/
-rw-r--r-- 1 hoge staff 321250878 Feb 9 02:31 onnv-gate_20100209.tar.gz
$