Katana VentraIP

Developer(s)

Olivia Mackall[a] (retired),[1] Pierre-Yves David

19 April 2005 (2005-04-19)[2]

6.4rc0[3] Edit this on Wikidata / 2 March 2023; 29 March 2024

Python, C, and Rust[4]

Mercurial's major design goals include high performance and scalability, decentralization, fully distributed collaborative development, robust handling of both plain text and binary files, and advanced branching and merging capabilities, while remaining conceptually simple.[5] It includes an integrated web-interface. Mercurial has also taken steps to ease the transition for users of other version control systems, particularly Subversion. Mercurial is primarily a command-line driven program, but graphical user interface extensions are available, e.g. TortoiseHg, and several IDEs offer support for version control with Mercurial. All of Mercurial's operations are invoked as arguments to its driver program hg (a reference to Hg – the chemical symbol of the element mercury).


Olivia Mackall[a] originated Mercurial and served as its lead developer until late 2016. Mercurial is released as free software under the GPL-2.0-or-later license.[7] It is mainly implemented using the Python programming language, but includes a binary diff implementation written in C.

Design[edit]

Mercurial uses SHA-1 hashes to identify revisions. For repository access via a network, Mercurial uses an HTTP-based protocol that seeks to reduce round-trip requests, new connections, and data transferred. Mercurial can also work over SSH where the protocol is very similar to the HTTP-based protocol. By default it uses a 3-way merge before calling external merge tools.

Adoption[edit]

Although Mercurial was not selected to manage the Linux kernel sources, it has been adopted by several organizations, including Facebook,[12] the W3C, and Mozilla. Facebook is using the Rust programming language to write Mononoke,[13][14] a Mercurial server specifically designed to support large multi-project repositories.


In 2013, Facebook adopted Mercurial and began work on scaling it to handle their large, unified code repository.[15]


Google also uses Mercurial client as a front-end on their cloud-based 'Piper' monorepo back-end.[16]


Bitbucket announced that its web-based version control services would end support for Mercurial in June 2020 (then extended to July 2020),[17] explaining that "less than 1% of new projects use it, and developer surveys indicated that 90% of developers use Git".[18]

Heptapod, a fork for Mercurial by Octobus

GitLab

a GPLv3 fork of RhodeCode

Kallithea

Kiln by

Fog Creek Software

by Phacility

Phabricator

by RhodeCode Inc.

RhodeCode

Comparison of version-control software

Distributed version control

List of version-control software

Edit this at Wikidata

Official website

Mackall, Matt, , This week in Tech

"FLOSS Podcast"

O'Sullivan, Bryan (2009), (book), O'Reilly, freely available online

Mercurial: The Definitive Guide

Spolsky, Joel, , archived from the original on 13 June 2016, retrieved 6 April 2010

Mercurial tutorial

(PDF), SE: Jemander covering both basic and advanced use

An example-based Mercurial tutorial

, LWN

"Mercurial: an alternative to git"

, JavaWorld, September 2007

"Subversion or CVS, Bazaar or Mercurial? Four open source version control systems compared"

"Mercurial", (video), archived from the original on 21 December 2021

TechTalk

List of projects using Mercurial from the Mercurial wiki