Differences between revisions 1 and 10 (spanning 9 versions)
Revision 1 as of 2010-02-02 00:31:48
Size: 7159
Editor: cowboy
Comment:
Revision 10 as of 2011-04-04 15:22:50
Size: 6785
Editor: JimHague
Comment: AIX now 1.8.2
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 56: Line 56:
== Linux (others) == == Linux (其他) ==
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.2
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 )

源代码

获得源代码后,参考Unix/Windows安装说明来进行安装.

二进制包

Windows

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)

Mercurial (from 1.0 onwards) 已经发布为 Debian-related 仓库软件包, mercurial and mercurial-common - 只需下载相关 .deb 文件完成手工安装 - 当然, APT 将统一管理你安装的 mercurial.

Linux (.rpm)

An rpm package can be built from a Mercurial source repository with contrib/buildrpm. It has currently mostly been tested on Fedora.

Linux (其他)

Solaris

AIX

BSD

使用easy_install

Mercurial 同样可以使用 easy_installpypi 仓库中安装. 几乎和下载源代码安装相同. 只是在OS X 中无法完成安装.

需要事先安装 Python 和 C 编译器. 例如在Ubuntu 中:

sudo apt-get install build-essential gcc python-dev

easy_install 可能包含在 python-devpython-setuptools-devel 包中, 也可以直接从 http://peak.telecommunity.com/DevCenter/EasyInstall 抓取.

准备好以上依赖后,你就可以通过以下操作完成最新版本Mercurial 的安装:

easy_install -U mercurial

ChineseDownload (last edited 2014-12-19 12:12:56 by JimHague)