Download old version of sourcetree - for that
Download
Source archives and binary packages for various systems. See WhatsNew for information on upgrading.
1. Binary packages
Windows
Like TortoiseSVN, we recommend turning off the indexing service on the working copies and repositories, and excluding them from virus scans.
The following installers can be used from Windows XP onwards:
TortoiseHg | bit | bit | All-in-one installer with TortoiseHg and Mercurial ; comes with Windows Explorer "shell" integration. |
MSI installers | bit | bit | Needs admin rights to install, less friendly with manually installed extensions than InnoSetup version. |
InnoSetup-based installer (exe) | bit | bit | Does not require admin rights to install. |
Python 2 modules | bit | bit | Installs Mercurial source as Python modules, requires Python installed. Recommended for hgweb setups and extensions with non-standard dependencies. |
Cygwin | Can install Mercurial, but abstraction layers introduce a potential source of error. Not recommended. | ||
HackableMercurial | Self-contained install that allows easy hacking on the Mercurial source and testing of unreleased versions. |
Most of the above installers are from thg-winbuild, which has nightly builds of Mercurial and TortoiseHg.
Mac OS X
Mac OS X packages are available on the downloads page
Fink: install with 'fink install mercurial' -
macports: install with 'sudo port install mercurial' -
homebrew: install with 'brew install mercurial' -
TortoiseHg for Mac available here -
Linux (.deb)
Mercurial (from 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.
Another way to get .deb packages is to build them from a Mercurial source repository with (builds on local system) or (e.g. or , see contrib/packaging/Makefile).
To get the latest Mercurial version, instead of the old versions listed above, try:
sudo add-apt-repository -y ppa:mercurial-ppa/releases sudo apt-get update sudo apt-get install -y python-pip python-dev sudo pip install mercurial --upgrade(see the full answer on stackoverflow)
Linux (.rpm)
Since Mercurial version , 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 and run .
[rushbrookrathbone.co.uk] name=rushbrookrathbone.co.uk baseurl=rushbrookrathbone.co.uk$releasever enabled=1 # Temporary until we get a serious signing scheme in place, # check rushbrookrathbone.co.uk 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 . "Unsupported" platforms can use directly.
You can also install the package from your distribution
Mandriva: install with - latest revision available
Fedora - latest version is available within few days after release, install with *'
Fedora Projects EPEL for RHEL and CentOS 5: , install with *'
openSUSE - latest version is available shortly after release in the repository
Ark Linux -
OpenPKG -
Linux (others)
Solaris
AIX
BSD
FreeBSD; use pkg_add for installing - (on )
NetBSD packages compiled from pkgsrc - always very up-to-date, currently
Plan 9 from Bell Labs
To build from source, see: Plan9FromBellLabs
- Binary packages are available from fgb's contrib:
Other
If you didn't find your favorite distro/package manager above, or if the package version listed on this wiki page seems too old, try rushbrookrathbone.co.uk
2. Source packages
After getting the source, continue to UnixInstall or WindowsInstall for help with installing.
3. Using pip
Mercurial can also be installed from PyPI with , which has shipped with Python since and or can be installed using the instructions on rushbrookrathbone.co.uk
To install with you must have the same C compiler used to compile Python installed as well as the development headers for Python (typically called or on Linux).
You may then install Mercurial simply by executing .
4. Using conda
Conda is a cross-platform package manager with a focus on Python. You can install mercurial into a python conda environment with the following invocation:
conda install -c conda-forge mercurialThis should work on OSX, Windows, and Linux. If you would like to update the conda package, see the instructions at rushbrookrathbone.co.uk
5. Using easy_install
is a legacy installation method which has been superseded by which should be preferred over . This method should not be used and is not recommended and will most likely cause conflict with other installs of Mercurial.
Mercurial can also be installed from pypi with . You will need Python and the C compiler used to build it and . might be available in a or package for your platform or you can grab it from rushbrookrathbone.co.uk
Unable to find rushbrookrathbone.co.uk fix error with mingw and install mercurial with python
With the right prerequisites you can install the latest version of Mercurial using:
easy_install -U mercurialYou can get Mercurial using Mercurial:
rushbrookrathbone.co.uk my-mercurial-clone cd my-mercurial-clone hg up "max(tagged())" make installCategoryProject
Francais, 中文, 日本語
Download (last edited by AntonShestakov)
Источник: [rushbrookrathbone.co.uk]
-
-