Mercurial Online Tutorials

Mercurial is a distributed revision control tool for software developers. It is supported on Microsoft Windows, Linux, and other Unix-like systems, such as FreeBSD and macOS.

Mercurial
Developer(s)Olivia Mackall (retired), Pierre-Yves David
Initial release19 April 2005; 18 years ago (2005-04-19)
Stable release
6.4rc0 Edit this on Wikidata / 2 March 2023; 29 March 2024
Repository
  • www.mercurial-scm.org/repo/hg-stable Edit this at Wikidata
Written inPython, C, and Rust
Operating systemUnix-like, Windows, macOS
TypeVersion control
LicenseGPL-2.0-or-later
Websitewww.mercurial-scm.org Edit this on Wikidata

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. 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 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. It is mainly implemented using the Python programming language, but includes a binary diff implementation written in C.

History edit

Mackall first announced Mercurial on 19 April 2005. The impetus for this was the announcement earlier that month by Bitmover that they were withdrawing the free version of BitKeeper because of the development of SourcePuller.

BitKeeper had been used for the version control requirements of the Linux kernel project. Mackall decided to write a distributed version control system as a replacement for use with the Linux kernel. This project started a few days after the now well-known Git project was initiated by Linus Torvalds with similar aims.

The Linux kernel project decided to use Git rather than Mercurial, but Mercurial is now used by many other projects (see below).

In an answer on the Mercurial mailing list, Olivia Mackall explained how the name "Mercurial" was chosen:

Shortly before the first release, I read an article about the ongoing Bitkeeper debacle that described Larry McVoy as mercurial (in the sense of 'fickle'). Given the multiple meanings, the convenient abbreviation, and the good fit with my pre-existing naming scheme (see my email address), it clicked instantly. Mercurial is thus named in Larry's honor. I do not know if the same is true of Git.

High-profile projects such as the OpenJDK have used Mercurial in the past, though the OpenJDK no longer does as of Java 16.

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.

Usage edit

Figure 1 shows some of the most important operations in Mercurial and their relations to Mercurial's concepts.

 
Figure 1: Some important operations of Mercurial and their relations.

Adoption edit

Although Mercurial was not selected to manage the Linux kernel sources, it has been adopted by several organizations, including Facebook, the W3C, and Mozilla. Facebook is using the Rust programming language to write Mononoke, 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]

Mercurial servers and repository management edit

  • Heptapod, a GitLab fork for Mercurial by Octobus
  • Kallithea, a GPLv3 fork of RhodeCode
  • Kiln by Fog Creek Software
  • Phabricator by Phacility
  • RhodeCode by RhodeCode Inc.

Source code hosting edit

The following websites provide free source code hosting for Mercurial repositories:

  • Bitbucket by Atlassian (deprecated from February 2020; read-only since July 2020)[18]
  • Codebase[19]
  • FusionForge
  • GNU Savannah by FSF
  • Heptapod
  • Mozdev
  • OSDN[20]
  • Others[21]
  • Perforce[22]
  • Puszcza[23] (a sister site to GNU Savannah, hosted in Ukraine)
  • SourceForge
  • SourceHut
  • TuxFamily[24]

Open source projects using Mercurial edit

Some projects using the Mercurial distributed RCS:[25]

  • GNU Health
  • GNU Multi-Precision Library
  • GNU Octave
  • LEMON
  • LiquidFeedback
  • Mozilla[26] (also uses Git/GitHub[27])
  • Nginx
  • Orthanc
  • Pidgin
  • RhodeCode
  • Roundup
  • Tryton
  • WinDirStat
  • wmii
  • XEmacs
  • Xine
  • eric

See also edit

  • Comparison of version-control software
  • Distributed version control
  • List of version-control software

Notes edit

Mercurial Tutorials: Mercurial is a fast, open-source DVCS (Distributed Version Control System)

Latest online Mercurial Tutorials with example so this page for both freshers and experienced candidate who want to get job in Mercurial company

Latest online Mercurial Tutorials for both freshers and experienced

advertisements

View Tutorials on Mercurial View all questions

Ask your interview questions on Mercurial

Write Your comment or Questions if you want the answers on Mercurial from Mercurial Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---