mercurial

Mercurial downloads

Development Repositories
Main
The main development repository of the Mercurial maintainer Matt Mackall can be found at https://www.mercurial-scm.org/repo/hg.
Committers
The development repository of the Mercurial core contributors can be found at https://www.mercurial-scm.org/repo/hg-committed/.

See Developer Repositories on the wiki for a full list.

Requirements
Python
Mercurial uses Python (version 2.7). Most ready-to-run Mercurial distributions include Python or use the Python that comes with your operating system.
Older Releases
Python versions
For more information about version support, see Supported Python Versions on the wiki.
Python 2.6
Mercurial 4.2.3 is the last release to support Python 2.6. Use this if you need to run Mercurial on old platforms and you cannot update your Python installation.
Python 2.5
Mercurial 3.4.2 is the last release to support Python 2.5. Use this if you need to run Mercurial on very old platforms and you cannot update your Python installation.
Python 2.4
Mercurial 3.4.2 is the last release to support Python 2.4. Use this if you need to run Mercurial on very old platforms and you cannot update your Python installation.
Python 2.3
Mercurial 1.2.1 is the last release to support Python 2.3. Use this if you need to run Mercurial on very old platforms and you cannot update your Python installation.
Older source releases
All previous source releases are available to download.

Get started

Mercurial is written in Python with platform independence in mind. As a result, Mercurial is available on Microsoft Windows, GNU/Linux, Mac OS X, Solaris 11 Express and others. You can either download a binary package for the system of your choice or build it from sources.

Windows users are likely to enjoy the TortoiseHg GUI the most. It integrates Mercurial directly into your explorer.

Packages for common Linux, BSD and Solaris distributions can be installed from the system specific repositories:

(Ubuntu: If you need a more recent version than what is available through apt-get, you can try the PPA.)

# Debian/Ubuntu
$ apt-get install mercurial

# Fedora
$ dnf install mercurial

# Gentoo
$ emerge mercurial

# Mac OS (homebrew)
$ brew install mercurial

# FreeBSD
$ cd /usr/ports/devel/mercurial
$ make install

# Solaris 11 Express
$ pkg install SUNWmercurial