用 Mercurial 取得 Mozilla 源代码

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

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注