Credential access
Reads repository config, credential helpers, auth files, and local history.
brew
Scalable distributed version control system. Version 7.2.3 via Homebrew; verified 2026-06-29.
agent safety
mercurial mutates source-control repositories and remote history.
Reads repository config, credential helpers, auth files, and local history.
Can push changesets, tags, bookmarks, and remote repository changes.
Can publish source changes and release tags.
Gate pushes, credential reads, destructive history operations, and tag creation.
Allow status/log/diff; require approval for pushes, credential use, and history rewrites.
install
brew install mercuriallocal Homebrew formula metadata
sudo port install mercurialMacPorts ports tree · devel/mercurial/Portfile · source: api.github.com
sudo apk add mercurialAlpine Linux edge package indexes · mercurial · source: dl-cdn.alpinelinux.org
sudo apt install mercurialDebian stable package indexes · mercurial · source: deb.debian.org
sudo dnf install mercurialFedora Rawhide package metadata · mercurial · source: dl.fedoraproject.org
nix profile install nixpkgs#mercurialnixpkgs package indexes · pkgs/by-name/me/mercurial/package.nix · source: api.github.com
sudo pacman -S mercurialArch Linux sync databases · mercurial · source: geo.mirror.pkgbuild.com
sudo zypper install mercurialopenSUSE Tumbleweed package metadata · mercurial · source: download.opensuse.org
scoop install main/mercurialScoop official bucket manifest trees · bucket/mercurial.json · source: api.github.com
winget install --id Mercurial.Mercurial -eWindows Package Manager source index · Mercurial.Mercurial · source: cdn.winget.microsoft.com
choco install hgChocolatey community package catalog · hg · source: community.chocolatey.org
overview
Scalable distributed version control system
history
Mercurial is a distributed source-control management system invoked mainly through the hg command. Matt Mackall, later Olivia Mackall, started it in April 2005 after Linux kernel developers lost the free BitKeeper arrangement. The Architecture of Open Source Applications describes Mercurial and Git as parallel 2005 responses to the need for a scalable distributed VCS capable of handling large kernel-sized histories; it also notes Mackall's early goals of simplicity, scalability, and efficiency.
Technically, Mercurial stores project history as a distributed graph of changesets. Like Git, it uses SHA-1-derived changeset identifiers, but it emphasizes a comparatively small, coherent command set and a clone model where most operations are local. The official Mercurial site positions it as a free distributed SCM that handles projects of any size, supports many workflows, and can be extended.
Mercurial's adoption history is strongly tied to large repositories and to teams that valued a scriptable CLI with a less sprawling user model than Git. Facebook selected Mercurial while replacing a Subversion server plus Git mirror, then published work on scaling it for a repository with thousands of weekly commits and hundreds of thousands of files. That scaling lineage later connected to Mononoke and Sapling: Meta's Sapling README says Sapling's CLI was originally based on Mercurial and shares aspects of Mercurial's UI and features, while Mononoke is described as a Mercurial source-control server for large monorepos.
For package managers, Mercurial is a classic cross-platform developer tool rather than an application-specific CLI. It appears across Homebrew, Debian, Ubuntu, Fedora, Arch, Nix, MacPorts, Windows package managers, and others, with hg as the primary executable and chg as a command server client for faster repeated commands.
security posture
No matching local secret-handling manifest was found for mercurial. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.hgrc$XDG_CONFIG_HOME/hg/hgrc~/.config/hg/hgrcCredential-bearing paths to review before unattended agent runs.
~/.hgrc$XDG_CONFIG_HOME/hg/hgrc~/.config/hg/hgrcexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
chg | cli | global executable | |
hg | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:mercurial |
|---|---|
| Version | 7.2.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/mercurial |
| Homepage | https://mercurial-scm.org/ |
| Repository | https://foss.heptapod.net/mercurial/mercurial-devel |
| Upstream docs | https://www.mercurial-scm.org/ |
| License | GPL-2.0-or-later |
| Source archive | https://www.mercurial-scm.org/release/mercurial-7.2.3.tar.gz |
| Last updated | 2026-06-29T18:50:44Z |
| Pulse | updated |
| Dependencies | python@3.14 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mercurial |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
mercurial 7.0.1-2
easy-to-use, scalable distributed version control system
https://www.mercurial-scm.org/
sudo apt install mercurialmercurial-common 7.0.1-2
easy-to-use, scalable distributed version control system (common files)
https://www.mercurial-scm.org/
sudo apt install mercurial-commonmercurial
nix profile install nixpkgs#mercurialmercurial 6.7.2-1ubuntu2
easy-to-use, scalable distributed version control system
https://www.mercurial-scm.org/
sudo apt install mercurialmercurial-common 6.7.2-1ubuntu2
easy-to-use, scalable distributed version control system (common files)
https://www.mercurial-scm.org/
sudo apt install mercurial-commonmercurial 7.2.1-r0
Scalable distributed SCM tool
https://www.mercurial-scm.org/
sudo apk add mercurialmercurial-bash-completion 7.2.1-r0
Bash completions for mercurial
https://www.mercurial-scm.org/
sudo apk add mercurial-bash-completionmercurial-chg 7.2.1-r0
Client for Mercurial command server with cHg extension
https://www.mercurial-scm.org/
sudo apk add mercurial-chgmercurial-doc 7.2.1-r0
Scalable distributed SCM tool (documentation)
https://www.mercurial-scm.org/
sudo apk add mercurial-docmercurial-lang 7.2.1-r0
translations for mercurial
https://www.mercurial-scm.org/
sudo apk add mercurial-langmercurial-pyc 7.2.1-r0
Precompiled Python bytecode for mercurial
https://www.mercurial-scm.org/
sudo apk add mercurial-pycmercurial-vim 7.2.1-r0
Vim syntax for mercurial
https://www.mercurial-scm.org/
sudo apk add mercurial-vimmercurial-zsh-completion 7.2.1-r0
Zsh completions for mercurial
https://www.mercurial-scm.org/
sudo apk add mercurial-zsh-completionmercurial 7.2.1-2.fc45
A fast, lightweight Source Control Management system
sudo dnf install mercurialmercurial-chg 7.2.1-2.fc45
A fast Mercurial command without slow Python startup
sudo dnf install mercurial-chgmercurial-hgk 7.2.1-2.fc45
Hgk interface for mercurial
sudo dnf install mercurial-hgksource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.