7159
Comment: make mistake page tranlated...want to Subrepository
|
6785
AIX 1.8.4
|
Deletions are marked like this. | Additions are marked like this. |
Line 8: | Line 8: |
* Source code of [[WhatsNew|released versions]] of Mercurial can be downloaded as usual .tar.gz files at [[http://mercurial.selenic.com/release/?M=D|http://mercurial.selenic.com/release/]]. * The [[http://selenic.com/repo/hg-stable|hg-stable]] repository leads to stable releases - download [[http://selenic.com/repo/hg-stable/archive/tip.tar.gz|snapshot]]. * The [[http://selenic.com/repo/hg|hg]] repository is the main development repository - download [[http://selenic.com/repo/hg/archive/tip.tar.gz|snapshot]]. * Check DeveloperRepos for other relevant developer repositories where you can get clone the hg source. |
* 所有 [[WhatsNew|发布版本]]的Mercurial 源代码都以 .tar.gz 文件下载: [[http://mercurial.selenic.com/release/?M=D|http://mercurial.selenic.com/release/]]. * [[http://selenic.com/repo/hg-stable|hg-stable]] 仓库发布稳定版本-下载 [[http://selenic.com/repo/hg-stable/archive/tip.tar.gz|快照]]. * [[http://selenic.com/repo/hg|hg]] 仓库为开发主线 - 下载 [[http://selenic.com/repo/hg/archive/tip.tar.gz|快照]]^最新版本^. * 当你克隆 hg 代码仓库时,注意请检查其它关联的[[DeveloperRepos|开发仓库]]. |
Line 13: | Line 13: |
After getting the source, continue to UnixInstall or WindowsInstall for help with installing. | 获得源代码后,参考[[UnixInstall|Unix]]/[[WindowsInstall|Windows]]安装说明来进行安装. |
Line 17: | Line 17: |
* TortoiseHg with Windows Explorer "shell" integration * [[http://bitbucket.org/tortoisehg/stable/downloads/tortoisehg-0.9.2-1-hg-1.4.2.exe|tortoisehg-0.9.2-1-hg-1.4.2.exe]] all-in-one installer with !TortoiseHg 0.9.2 and Mercurial 1.4.2 * [[http://bitbucket.org/tortoisehg/thg-winbuild/downloads/mercurial-1.4.2.exe|Mercurial-1.4.2]] installer without !TortoiseHg * [[http://bitbucket.org/tortoisehg/thg-winbuild/downloads/|thg-winbuild]] has nightly builds of Mercurial and !TortoiseHg - and installers for installing Mercurial as Python packages * [[http://mercurial.berkwood.com|Minimal]] Windows installer - standalone or with existing python (latest and prior releases, snapshots) * [[http://cygwin.com/|cygwin]] can install mercurial. |
* TortoiseHg 是 Windows 浏览器界面集成的^很易用^ * [[http://bitbucket.org/tortoisehg/stable/downloads/tortoisehg-0.9.2-1-hg-1.4.2.exe|tortoisehg-0.9.2-1-hg-1.4.2.exe]] TortoiseHg 0.9.2 + Mercurial 1.4.2 套件! * 仅 [[http://bitbucket.org/tortoisehg/thg-winbuild/downloads/mercurial-1.4.2.exe|Mercurial-1.4.2]] 安装包 ,不含 !TortoiseHg * [[http://bitbucket.org/tortoisehg/thg-winbuild/downloads/|thg-winbuild]] 是Mercurial + !TortoiseHg 每日集成包, 可将 Mercurial 作为Python 的模块来安装. * [[http://mercurial.berkwood.com|Minimal]] Windows 安装器 - 独立或依赖Python 环境(最新和前一版本快,快照) * [[http://cygwin.com/|cygwin]] 也能安装 Mercurial. |
Line 24: | Line 24: |
/!\ Like TortoiseSVN, [[http://www.selenic.com/pipermail/mercurial/2010-January/029680.html|we recommend]] to turn off the indexing service on the working copies and repositories, and exclude them from virus scans. | /!\ 类似 !TortoiseSVN, [[http://www.selenic.com/pipermail/mercurial/2010-January/029680.html|我们建议]] 关闭对本地工作仓库目录的索引和病毒扫描事务. |
Line 27: | Line 27: |
* [[http://mercurial.berkwood.com|Mac OS X]] packages (you may have to add `export LC_ALL=en_US.UTF-8` and `export LANG=en_US.UTF-8` to your `~/.profile`) | * [[http://mercurial.berkwood.com|Mac OS X]] 包 (应该在`~/.profile`加入`export LC_ALL=en_US.UTF-8` and `export LANG=en_US.UTF-8`) |
Line 29: | Line 29: |
* [[http://www.macports.org/|macports]]: install with 'sudo port install mercurial' - 1.2.1 | * [[http://www.macports.org/|macports]]: 使用 'sudo port install mercurial' - 1.2.1 |
Line 36: | Line 36: |
* [[http://packages.ubuntu.com/hardy/mercurial|Ubuntu Hardy]] - 0.9.5 ([[http://packages.ubuntu.com/hardy-backports/mercurial|1.0.1]] available if you [[https://help.ubuntu.com/community/UbuntuBackports|enable backports]]) | * [[http://packages.ubuntu.com/hardy/mercurial|Ubuntu Hardy]] - 0.9.5 ([[http://packages.ubuntu.com/hardy-backports/mercurial|1.0.1]] 只要[[https://help.ubuntu.com/community/UbuntuBackports|允许backports]]) |
Line 42: | Line 42: |
* [[https://launchpad.net/~mercurial-ppa/+archive/stable-snapshots|Stable snapshots]] - daily snapshot of stable DeveloperRepos (warning: untested code) * [[https://launchpad.net/~mercurial-ppa/+archive/snapshots|Snapshots]] - daily snapshot of unstable DeveloperRepos (warning: untested code) |
* [[https://launchpad.net/~mercurial-ppa/+archive/stable-snapshots|稳定快照]] - DeveloperRepos 的每日快照 (注意: 未测试的) * [[https://launchpad.net/~mercurial-ppa/+archive/snapshots|快照]] - 未稳定 DeveloperRepos 的每日快照(注意: 未测试的) |
Line 45: | Line 45: |
Mercurial (from 1.0 onwards) is packaged for Debian-related distributions as two packages, ''mercurial'' and ''mercurial-common'' - you only need to care about this if you are downloading .deb files for manual installation - otherwise, APT dependency handling will take care of this for you when you install ''mercurial''. | Mercurial (from 1.0 onwards) 已经发布为 Debian-related 仓库软件包, ''mercurial'' and ''mercurial-common'' - 只需下载相关 .deb 文件完成手工安装 - 当然, APT 将统一管理你安装的 ''mercurial''. |
Line 69: | Line 69: |
* [[http://lunch.org.uk/wiki/aix_packages|Mercurial and supporting RPMs, for AIX 5.2 and later]] - 1.4.2 | * [[http://lunch.org.uk/wiki/aix_packages|Mercurial and supporting RPMs, for AIX 5.2 and later]] - 1.8.4 |
Line 77: | Line 77: |
Mercurial can also be installed from [[http://pypi.python.org/pypi/Mercurial/|pypi]] with {{{easy_install}}}. It will however mostly just download and make a partial installation from source as described above. The installation will not be complete, and there have been reports that it doesn't work on OS X. | Mercurial 同样可以使用 {{{easy_install}}} 从 [[http://pypi.python.org/pypi/Mercurial/|pypi]] 仓库中安装. 几乎和下载源代码安装相同. 只是在OS X 中无法完成安装. |
Line 79: | Line 79: |
You will need Python and the C compiler used to build it and {{{easy_install}}}. {{{easy_install}}} might be available in a {{{python-dev}}} or {{{python-setuptools-devel}}} package for your platform or you can grab it from http://peak.telecommunity.com/DevCenter/EasyInstall. | 需要事先安装 Python 和 C 编译器. 例如在Ubuntu 中: {{{ sudo apt-get install build-essential gcc python-dev }}} |
Line 81: | Line 84: |
With the right prerequisites you can install the latest version of Mercurial using: | {{{easy_install}}} 可能包含在 {{{python-dev}}} 或 {{{python-setuptools-devel}}} 包中, 也可以直接从 http://peak.telecommunity.com/DevCenter/EasyInstall 抓取. |
Line 83: | Line 87: |
准备好以上依赖后,你就可以通过以下操作完成最新版本Mercurial 的安装: |
(Other languages: English Français )
Contents
源代码
所有 发布版本的Mercurial 源代码都以 .tar.gz 文件下载: http://mercurial.selenic.com/release/.
当你克隆 hg 代码仓库时,注意请检查其它关联的开发仓库.
获得源代码后,参考Unix/Windows安装说明来进行安装.
二进制包
Windows
TortoiseHg 是 Windows 浏览器界面集成的很易用
tortoisehg-0.9.2-1-hg-1.4.2.exe TortoiseHg 0.9.2 + Mercurial 1.4.2 套件!
仅 Mercurial-1.4.2 安装包 ,不含 TortoiseHg
thg-winbuild 是Mercurial + TortoiseHg 每日集成包, 可将 Mercurial 作为Python 的模块来安装.
Minimal Windows 安装器 - 独立或依赖Python 环境(最新和前一版本快,快照)
cygwin 也能安装 Mercurial.
类似 !TortoiseSVN, 我们建议 关闭对本地工作仓库目录的索引和病毒扫描事务.
Mac OS X
Mac OS X 包 (应该在~/.profile加入export LC_ALL=en_US.UTF-8 and export LANG=en_US.UTF-8)
fink - 1.2.1
macports: 使用 'sudo port install mercurial' - 1.2.1
Linux (.deb)
Debian
Debian squeeze (testing) - 1.3.1
Debian lenny (stable) - 1.0.1
Ubuntu
Ubuntu Hardy - 0.9.5 (1.0.1 只要允许backports)
Ubuntu Intrepid - 1.0.1
Ubuntu Jaunty - 1.1.2
Ubuntu Karmic - 1.3.1
Launchpad PPAs (carrying packages for Hardy, Intrepid, Jaunty and Karmic)
Releases - 1.4.2
稳定快照 - DeveloperRepos 的每日快照 (注意: 未测试的)
快照 - 未稳定 DeveloperRepos 的每日快照(注意: 未测试的)
Mercurial (from 1.0 onwards) 已经发布为 Debian-related 仓库软件包, mercurial and mercurial-common - 只需下载相关 .deb 文件完成手工安装 - 当然, APT 将统一管理你安装的 mercurial.
Linux (.rpm)
Mandriva: install with urpmi mercurial - 1.2.1
Fedora and CentOS 5 with Fedora Projects EPEL: install with yum install '*mercurial*' - 1.4.1 (EPEL 1.3.1)
OpenSUSE - 1.2.1
Ark Linux - 1.0.2
OpenPKG - 1.2.1
An rpm package can be built from a Mercurial source repository with contrib/buildrpm. It has currently mostly been tested on Fedora.
Linux (其他)
Arch Linux - 1.2.1
Gentoo ebuild: install with emerge mercurial - 1.3.1 (1.4.1 in unstable)
T2 SDE - 1.3
Slackware 12.2 - 1.0.2
Optware cross compilation ipk - latest for Python 2.4 and 2.5
Solaris
OpenCSW: mercurial-1.3.1, testing contains mercurial-1.4.1, for Solaris 8-10, SPARC/x86.
blastwave - 1.3.1
sunfreeware.com - SPARC/Solaris 2.6-10 packages, x86/Solaris 8-10 packages - 1.4.1
AIX
BSD
FreeBSD Mercurial port (port-webdir). i386 package - 1.2.1
Requires python25 (i386 package: python25-2.5.2_1.tbz). Use pkg_add for installing.
使用easy_install
Mercurial 同样可以使用 easy_install 从 pypi 仓库中安装. 几乎和下载源代码安装相同. 只是在OS X 中无法完成安装.
需要事先安装 Python 和 C 编译器. 例如在Ubuntu 中:
sudo apt-get install build-essential gcc python-dev
easy_install 可能包含在 python-dev 或 python-setuptools-devel 包中, 也可以直接从 http://peak.telecommunity.com/DevCenter/EasyInstall 抓取.
准备好以上依赖后,你就可以通过以下操作完成最新版本Mercurial 的安装:
easy_install -U mercurial