1、安装 Mercurial
$ sudo apt-get install python-setuptools python-dev build-essential
$ sudo easy_install -U mercurial
2、配置
$ cat > ~/.hgrc<<EOF
[ui]
username = Your Real Name
[diff]
git = 1
[defaults]
diff=-p -U 8
EOF
3、取得源代码
$ hg clone http://hg.mozilla.org/mozilla-central/ mozilla-src