Differences between revisions 100 and 175 (spanning 75 versions)
Revision 100 as of 2013-03-02 05:40:55
Size: 10386
Comment: sync with Download@337
Revision 175 as of 2017-10-08 05:21:46
Size: 12789
Comment: sync with Download@563
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
/!\ '''TortoiseSVN 同様、作業コピーとリポジトリについてはインデックスサービスを止め、ウィルススキャンから除外するよう [[http://www.selenic.com/pipermail/mercurial/2010-January/029680.html|お勧めします]] 。''' /!\ '''TortoiseSVN 同様、作業コピーとリポジトリについてはインデックスサービスを止め、ウィルススキャンから除外するよう [[https://www.mercurial-scm.org/pipermail/mercurial/2010-January/029680.html|お勧めします]] 。'''
Line 15: Line 15:

 * [[http://tortoisehg.bitbucket.org/download/index.html|TortoiseHg with Windows Explorer "shell" integration]] all-in-one installer with TortoiseHg 2.7.0 and Mercurial 2.5 (alternate download: [[https://bitbucket.org/tortoisehg/files/downloads|Bitbucket]] / [[http://tortoisehg.codeplex.com/releases|CodePlex]])
 * [[https://bitbucket.org/tortoisehg/files/downloads/mercurial-2.5.1-x86.msi|Mercurial-2.5.1 (32-bit msi)]] / [[https://bitbucket.org/tortoisehg/files/downloads/mercurial-2.5.1-x64.msi|Mercurial-2.5.1 (64-bit msi)]], needs admin rights to install.
 * [[http://mercurial.selenic.com/release/windows/Mercurial-2.5.2.exe|Mercurial-2.5.2 (32-bit exe)]] / [[http://mercurial.selenic.com/release/windows/Mercurial-2.5.2-x64.exe|Mercurial-2.5.2 (64-bit exe)]], does not need admin rights to install (!InnoSetup based).
 * [[https://bitbucket.org/tortoisehg/files/downloads/mercurial-2.5.1.win32-py2.7.exe|Mercurial-2.5.1 (32-bit py2.7)]] / [[https://bitbucket.org/tortoisehg/files/downloads/mercurial-2.5.1.win-amd64-py2.7.exe|Mercurial-2.5.1 (64-bit py2.7)]], installs Mercurial source as Python modules and thus requires [[http://www.python.org/download/releases/2.7.3/|Python 2.7]] installed. This is recommended for hgweb setups and extensions with non-standard dependencies.
 * [[http://cygwin.com/|cygwin]] から Mercurial をインストールできます。しかし、 cygwin の抽象化レイヤーはエラーを引き起こす可能性があるためお勧めしません。
 * HackableMercurial を使えば、 Mercurial のソースをハックしたり、リリース前のバージョンをテストしたりするのが簡単です。
|| [[https://tortoisehg.bitbucket.io/download/index.html|TortoiseHg]] || [[https://bitbucket.org/tortoisehg/files/downloads/tortoisehg-4.2.1-x86.msi|32-bit]] || [[https://bitbucket.org/tortoisehg/files/downloads/tortoisehg-4.2.1-x64.msi|64-bit]] || All-in-one installer with TortoiseHg 4.2.1 and Mercurial 4.2.1; comes with Windows Explorer "shell" integration. ||
|| MSI installers || [[https://bitbucket.org/tortoisehg/files/downloads/mercurial-4.2.1-x86.msi|32-bit]] || [[https://bitbucket.org/tortoisehg/files/downloads/mercurial-4.2.1-x64.msi|64-bit]] || Needs admin rights to install, less friendly with manually installed extensions than !InnoSetup version. ||
|| 4.3.3 !InnoSetup-based installer (exe) || [[https://mercurial-scm.org/release/windows/Mercurial-4.3.3.exe|32-bit]] || [[https://mercurial-scm.org/release/windows/Mercurial-4.3.3-x64.exe|64-bit]] || Does not require admin rights to install. ||
||Python 2 modules || [[https://bitbucket.org/tortoisehg/files/downloads/mercurial-4.2.1.win32-py2.7.msi|32-bit]] || [[https://bitbucket.org/tortoisehg/files/downloads/mercurial-4.2.1.win-amd64-py2.7.msi|64-bit]] || Installs Mercurial source as Python modules, requires [[https://www.python.org/downloads/release/python-2712/|Python 2.7]] installed. Recommended for hgweb setups and extensions with non-standard dependencies. ||
|| [[https://cygwin.com/|Cygwin]] |||||| Mercurial をインストールできますが、抽象化レイヤーによってエラーが起きる可能性があります。 (非推奨) ||
|| HackableMercurial |||||| Mercurial のソースをハックしたり、リリース前のバージョンをテストしたりするのが簡単です。 ||
Line 26: Line 25:
 * [[http://mercurial.berkwood.com|Mac OS X]] パッケージ ~-(旧バージョンでは `export LC_ALL=en_US.UTF-8` と `export LANG=en_US.UTF-8` を `~/.profile` へ書き足す必要があるで
しょう。)-~
 * [[http://pdb.finkproject.org/pdb/package.php/mercurial-py25|fink]] - 1.2.1
 * [[https://trac.macports.org/browser/trunk/dports/devel/mercurial/Portfile|macports]]: install with 'sudo port install mercurial' - 1.9 (on 2011-07-04)
 * Mac OS X のパッケージは [[https://www.mercurial-scm.org/downloads|ダウンロードページ]] を参照
 * [[http://pdb.finkproject.org/pdb/package.php/mercurial|Fink]]: install with 'fink install mercurial' - 3.3
 * [[https://trac.macports.org/browser/trunk/dports/devel/mercurial/Portfile|macports]]: install with 'sudo port install mercurial' - 3.3
 * [[https://github.com/Homebrew/homebrew-core/blob/master/Formula/mercurial.rb|homebrew]]: install with 'brew install mercurial' - 3.8.1
 * TortoiseHg for Mac available [[https://bitbucket.org/tortoisehg/files/downloads|here]] - 3.7.3
Line 33: Line 33:
  * [[http://packages.debian.org/sid/mercurial|Debian sid (unstable)]] - 2.2.2.
  * [[http://packages.debian.org/wheezy/mercurial|Debian wheezy (testing)]] - 2.2.1.
  * [[http://packages.debian.org/squeeze/mercurial|Debian squeeze (stable)]] - 1.6.4 (2.2.1 available as a [[http://packages.debian.org/squeeze-backports/mercurial|squeeze backport]])
  * [[http://packages.debian.org/lenny/mercurial|Debian lenny (oldstable)]] - 1.0.1 (1.3.1 available as a [[http://packages.debian.org/lenny-backports/mercurial|lenny backport]])
  * [[http://packages.debian.org/sid/mercurial|Debian sid (unstable)]] - 3.8.1.
  * [[http://packages.debian.org/stretch/mercurial|Debian stretch (testing)]] - 3.7.3
  * [[http://packages.debian.org/jessie/mercurial|Debian jessie (stable)]] - 3.1.
2 (plus security; 3.7.3 available as a [[https://packages.debian.org/jessie-backports/mercurial|jessie-backport]]).
  * [[http://packages.debian.org/wheezy/mercurial|Debian wheezy (oldstable)]] - 2.2.2. (3.1.1 available as a [[http://packages.debian.org/wheezy-backports/mercurial|wheezy backport]])
  * [[http://packages.debian.org/squeeze/mercurial|Debian squeeze]] - 1.6.4 (2.2.2 available as a [[http://packages.debian.org/squeeze-backports/mercurial|squeeze backport]])
Line 45: Line 46:
  * '''Launchpad PPAs''' (carrying packages for Hardy, Lucid, Maverick and Natty)
   * [[https://launchpad.net/~mercurial-ppa/+archive/releases|Releases]] - 2.4.2
   * [[https://launchpad.net/~mercurial-ppa/+archive/stable-snapshots|Stable snapshots]] - 安定版 DeveloperRepos の日別スナップショット (注意: コードは未テスト)
   * [[https://launchpad.net/~mercurial-ppa/+archive/snapshots|Snapshots]] - 不安定版 DeveloperRepos の日別スナップショット (注意: コードは未テスト)
  * [[http://packages.ubuntu.com/precise/mercurial|Ubuntu Precise]] - 2.0.2-1ubuntu1
  * [[http://packages.ubuntu.com/trusty/mercurial|Ubuntu Trusty]] - 2.8.2-1ubuntu1.3
  * [[http://packages.ubuntu.com/trusty/mercurial|Ubuntu Wily]] - 3.4-1ubuntu2
  * [[http://packages.ubuntu.com/xenial/mercurial|Ubuntu Xenial]] - 3.7.3-1ubuntu1
Line 53: Line 54:
Since Mercurial version 3.4, the Mercurial project provides packages for the following systems:

 * [[http://www.mercurial-scm.org/release/centos5/RPMS/x86_64/|Centos 5]] (includes a python2.7 install)
 * [[http://www.mercurial-scm.org/release/centos6/RPMS/x86_64/|Centos 6]]
 * [[http://www.mercurial-scm.org/release/centos7/RPMS/x86_64/|Centos 7]]

You can download, install and upgrade the packages manually.

You can also add it as a "yum" package repository and get automatic updates: Add the following file at `/etc/yum.repos.d/mercurial.selenic.com.repo` and run `yum install mercurial`.

{{{
[mercurial.selenic.com]
name=mercurial.selenic.com
baseurl=https://www.mercurial-scm.org/release/centos$releasever
enabled=1
# Temporary until we get a serious signing scheme in place,
# check https://www.mercurial-scm.org/wiki/Download again
gpgcheck=0
}}}
/!\ Mercurial is stable and won't break on automatic updates. Mercurial do however not promise API stability so an update might break extensions or tools using Mercurial internals.

Similar Fedora packages can be built from a Mercurial source repository with commands like `make docker-fedora21`. "Unsupported" platforms can use `contrib/buildrpm` directly.

You can also install the package from your distribution
Line 60: Line 86:
RPM パッケージは Mercurial ソースリポジトリの ''contrib/buildrpm'' でビルドできます。現在このスクリプトは主に Fedora でテストされています。
Line 63: Line 87:
 * [[http://archlinux.org/packages/?q=mercurial|Arch Linux]] - 2.4.1
 * [[http://packages.gentoo.org/package/dev-vcs/mercurial|Gentoo ebuild]]: install with {{{emerge mercurial}}} - 1.4.1/1.5 (1.7 in unstable)
 * [[http://www.t2-project.org/packages/mercurial.html|T2 SDE]] - 1.7.2
 * [[http://ftp.osuosl.org/pub/slackware/slackware-12.2/slackware/d/|Slackware 12.2]] - 1.0.2
 * [[http://archlinux.org/packages/?q=mercurial|Arch Linux]] - 3.8.3
 * [[http://packages.gentoo.org/package/dev-vcs/mercurial|Gentoo ebuild]]: install with {{{emerge mercurial}}} - 2.4.2 (2.5.1/2.6 in unstable)
 * [[http://www.t2-project.org/packages/mercurial.html|T2 SDE]] - 3.0.2
 * [[http://ftp.osuosl.org/pub/slackware/slackware-14.1/slackware/d/|Slackware 14.1]] - 2.7.2
Line 70: Line 94:
 * [[http://unixpackages.com/packages/package-matrix?frm_search=mercurial|unixpackages.com]] - SPARC/Solaris 2.6-10 packages, x86/Solaris 8-10 packages - 2.3
 * [[http://www.opencsw.org|OpenCSW]]: [[http://www.opencsw.org/packages/mercurial|solaris package mercurial-2.5.1, sparc/solaris, x86/solaris]].
 * [[http://unixpackages.com/packages/package-matrix?frm_search=mercurial|unixpackages.com]] - SPARC/Solaris 2.6-10 packages, x86/Solaris 8-11 packages - 2.3 (8 & 9), 3.4 (10 & 11)
 * [[http://www.opencsw.org|OpenCSW]]: [[http://www.opencsw.org/packages/mercurial|solaris package mercurial-3.8.2, sparc/solaris, x86/solaris]].
Line 74: Line 98:
 * [[http://www.lunch.org.uk/wiki/aix_packages|Mercurial and supporting RPMs, for AIX 5.2 and later]] - 2.5.1  * [[http://www.lunch.org.uk/wiki/aix_packages|Mercurial for AIX 5.2 and later]] - 3.0.2
Line 77: Line 101:
 * [[http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/mercurial/|FreeBSD]]; use [[http://freebsd.org/cgi/man.cgi?query=pkg_add&apropos=0&sektion=0&manpath=FreeBSD+6.3-RELEASE&format=html|pkg_add]] for installing - 1.9 (on 2011-07-06)  * [[http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/mercurial/|FreeBSD]]; use [[http://freebsd.org/cgi/man.cgi?query=pkg_add&apropos=0&sektion=0&manpath=FreeBSD+6.3-RELEASE&format=html|pkg_add]] for installing - 3.7 (on 2016-04-13)
Line 79: Line 103:
 * [[ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/mercurial/README.html|NetBSD]] packages compiled from [[http://pkgsrc.se/devel/mercurial|pkgsrc]] - 2.3.1

* http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/mercurial/
 * [[ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/mercurial/README.html|NetBSD]] packages compiled from [[http://pkgsrc.se/devel/mercurial|pkgsrc]] - always very up-to-date, currently 2.6
Line 86: Line 108:
Line 89: Line 112:
Line 91: Line 113:
 * Mercurial の [[WhatsNew|リリース版]] ソースコードは、 [[http://mercurial.selenic.com/release/?M=D|http://mercurial.selenic.com/release/]] より普通の .tar.gz ファイルでダウンロードできます。
 * [[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|スナップショット]] をダウンロード。
 * Mercurial の [[WhatsNew|リリース版]] ソースコードは、 [[https://www.mercurial-scm.org/release/?M=D|https://www.mercurial-scm.org/release/]] より普通の .tar.gz ファイルでダウンロードできます。
 * [[http://mercurial-scm.org/repo/hg-stable|hg-stable]] リポジトリはいずれ安定版としてリリースされます。 [[http://mercurial-scm.org/repo/hg-stable/archive/tip.tar.gz|スナップショット]] をダウンロード。
 * [[http://mercurial-scm.org/repo/hg|hg]] リポジトリは開発の中央リポジトリです。 [[http://mercurial-scm.org/repo/hg/archive/tip.tar.gz|スナップショット]] をダウンロード。
Line 98: Line 120:
== Using pip ==
Mercurial can also be installed from [[https://pypi.python.org/pypi/Mercurial|PyPI]] with {{{pip}}}, which has shipped with Python since 2.7.9 and 3.4 or can be installed using the instructions on https://pip.pypa.io/en/stable/installing.html.

To install with {{{pip}}} you must have the same C compiler used to compile Python installed as well as the development headers for Python (typically called {{{python-dev}}} or {{{python-devel}}} on Linux).

You may then install Mercurial simply by executing {{{pip install Mercurial}}}.

== Using conda ==

Conda is a cross-platform package manager with a focus on Python. You can install mercurial into a python2.7 conda environment with the following invocation:

{{{
conda install -c conda-forge mercurial
}}}

This should work on OSX, Windows, and Linux. If you would like to update the conda package, see the instructions at https://github.com/conda-forge/mercurial-feedstock
Line 99: Line 138:
/!\ この方法は推奨されません。他でインストールした Mercurial と衝突するかもしれません。

Mercurial は [[http://pypi.python.org/pypi/Mercurial/|pypi]] から {{{easy_install}}} でもインストール可能です。 ビルドと {{{easy_install}}} には、 Python と C コンパイラーが必要です。 あなたのプラットフォームで {{{easy_install}}} は、 {{{python-dev}}} か {{{python-setuptools-devel}}} パッケージで提供されている可能性があります。 http://peak.telecommunity.com/DevCenter/EasyInstall からも入手可能です。
/!\ {{{easy_install}}} is a legacy installation method which has been superseded by {{{pip}}} which should be preferred over {{{easy_install}}}. この方法は推奨されません。他でインストールした Mercurial と衝突するかもしれません。
Mercurial は [[https://pypi.python.org/pypi/Mercurial/|pypi]] から {{{easy_install}}} でもインストール可能です。 ビルドと {{{easy_install}}} には、 Python と C コンパイラーが必要です。 あなたのプラットフォームで {{{easy_install}}} は、 {{{python-dev}}} か {{{python-setuptools-devel}}} パッケージで提供されている可能性があります。 http://peak.telecommunity.com/DevCenter/EasyInstall からも入手可能です。
Line 115: Line 153:

ダウンロード

様々なシステム向けのソースアーカイブとバイナリパッケージ。 アップグレードに関しては WhatsNew を確認してください。

1. バイナリパッケージ

1.1. Windows

/!\ TortoiseSVN 同様、作業コピーとリポジトリについてはインデックスサービスを止め、ウィルススキャンから除外するよう お勧めします

Windows XP では以下のインストーラーが利用できます:

TortoiseHg

32-bit

64-bit

All-in-one installer with TortoiseHg 4.2.1 and Mercurial 4.2.1; comes with Windows Explorer "shell" integration.

MSI installers

32-bit

64-bit

Needs admin rights to install, less friendly with manually installed extensions than InnoSetup version.

4.3.3 InnoSetup-based installer (exe)

32-bit

64-bit

Does not require admin rights to install.

Python 2 modules

32-bit

64-bit

Installs Mercurial source as Python modules, requires Python 2.7 installed. Recommended for hgweb setups and extensions with non-standard dependencies.

Cygwin

Mercurial をインストールできますが、抽象化レイヤーによってエラーが起きる可能性があります。 (非推奨)

HackableMercurial

Mercurial のソースをハックしたり、リリース前のバージョンをテストしたりするのが簡単です。

上記のインストーラーはたいてい thg-winbuild で提供されています。 Mercurial と TortoiseHg のナイトリービルドと、 Mercurial を Python パッケージとしてインストールするためのインストーラーも用意されています。

1.2. Mac OS X

1.3. Linux (.deb)

Mercurial (1.0 以降) の Debian 系ディストリビューション向けパッケージは、 mercurialmercurial-common に分かれています。 .deb ファイルを手動でダウンロード後インストールしない限りは、この点について気にする必要はありません。 普通は mercurial をインストールすれば、 APT が依存関係を処理してくれます。

1.4. Linux (.rpm)

Since Mercurial version 3.4, the Mercurial project provides packages for the following systems:

You can download, install and upgrade the packages manually.

You can also add it as a "yum" package repository and get automatic updates: Add the following file at /etc/yum.repos.d/mercurial.selenic.com.repo and run yum install mercurial.

[mercurial.selenic.com]
name=mercurial.selenic.com
baseurl=https://www.mercurial-scm.org/release/centos$releasever
enabled=1
# Temporary until we get a serious signing scheme in place,
# check https://www.mercurial-scm.org/wiki/Download again
gpgcheck=0

/!\ Mercurial is stable and won't break on automatic updates. Mercurial do however not promise API stability so an update might break extensions or tools using Mercurial internals.

Similar Fedora packages can be built from a Mercurial source repository with commands like make docker-fedora21. "Unsupported" platforms can use contrib/buildrpm directly.

You can also install the package from your distribution

  • Mandriva: install with urpmi mercurial - latest revision available

  • Fedora - リリース後数日で最新版が利用可能。 yum install '*mercurial*' でインストール。

  • Fedora Projects EPEL for RHEL and CentOS 5: 1.3.1, install with yum install '*mercurial*'

  • openSUSE - リリース後程なくして devel:tools:scm リポジトリより最新版が利用可能

  • Ark Linux - 1.6.2

  • OpenPKG - 1.4

1.5. Linux (それ以外)

1.6. Solaris

1.7. AIX

1.8. BSD

  • FreeBSD; use pkg_add for installing - 3.7 (on 2016-04-13)

  • NetBSD packages compiled from pkgsrc - always very up-to-date, currently 2.6

1.9. Plan 9 from Bell Labs

  • ソースからビルドする場合は Plan9FromBellLabs を参照

  • バイナリパッケージは fgb の contrib にあります:

% contrib/install stallion/mercurial

2. ソースパッケージ

ソースを入手した後は、 UnixInstallJapaneseWindowsInstall がインストールの参考になるでしょう。

3. Using pip

Mercurial can also be installed from PyPI with pip, which has shipped with Python since 2.7.9 and 3.4 or can be installed using the instructions on https://pip.pypa.io/en/stable/installing.html.

To install with pip you must have the same C compiler used to compile Python installed as well as the development headers for Python (typically called python-dev or python-devel on Linux).

You may then install Mercurial simply by executing pip install Mercurial.

4. Using conda

Conda is a cross-platform package manager with a focus on Python. You can install mercurial into a python2.7 conda environment with the following invocation:

conda install -c conda-forge mercurial

This should work on OSX, Windows, and Linux. If you would like to update the conda package, see the instructions at https://github.com/conda-forge/mercurial-feedstock

5. easy_install を使う

/!\ easy_install is a legacy installation method which has been superseded by pip which should be preferred over easy_install. この方法は推奨されません。他でインストールした Mercurial と衝突するかもしれません。 Mercurial は pypi から easy_install でもインストール可能です。 ビルドと easy_install には、 Python と C コンパイラーが必要です。 あなたのプラットフォームで easy_install は、 python-devpython-setuptools-devel パッケージで提供されている可能性があります。 http://peak.telecommunity.com/DevCenter/EasyInstall からも入手可能です。

/!\ Unable to find vcvarsall.bat fix error with mingw and install mercurial 1.7.3 with python 2.7

Create a file in C:\Python26\Lib\distutils and call it distutils.cfg
[build]
compiler=mingw32

前提条件を準備後、最新バージョンの Mercurial を以下のようにしてインストールできます:

easy_install -U mercurial


CategoryJapanese

English Français 中文

JapaneseDownload (last edited 2017-10-08 05:21:46 by YuyaNishihara)