凭据访问
Reads repository config, credential helpers, auth files, and local history.
代理安全
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.
安装
brew install mercuriallocal Homebrew formula metadata
sudo port install mercurialMacPorts ports tree · devel/mercurial/Portfile · 来源: api.github.com
sudo apk add mercurialAlpine Linux edge package indexes · mercurial · 来源: dl-cdn.alpinelinux.org
sudo apt install mercurialDebian stable package indexes · mercurial · 来源: deb.debian.org
sudo dnf install mercurialFedora Rawhide package metadata · mercurial · 来源: dl.fedoraproject.org
nix profile install nixpkgs#mercurialnixpkgs package indexes · pkgs/by-name/me/mercurial/package.nix · 来源: api.github.com
sudo pacman -S mercurialArch Linux sync databases · mercurial · 来源: geo.mirror.pkgbuild.com
sudo zypper install mercurialopenSUSE Tumbleweed package metadata · mercurial · 来源: download.opensuse.org
scoop install main/mercurialScoop official bucket manifest trees · bucket/mercurial.json · 来源: api.github.com
winget install --id Mercurial.Mercurial -eWindows Package Manager source index · Mercurial.Mercurial · 来源: cdn.winget.microsoft.com
choco install hgChocolatey community package catalog · hg · 来源: community.chocolatey.org
概览
Scalable distributed version control system
历史
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.
安全态势
没有找到 mercurial 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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/hgrc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
chg | cli | 全局可执行文件 | |
hg | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:mercurial |
|---|---|
| 版本 | 7.2.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mercurial |
| 主页 | https://mercurial-scm.org/ |
| 仓库 | https://foss.heptapod.net/mercurial/mercurial-devel |
| 上游文档 | https://www.mercurial-scm.org/ |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://www.mercurial-scm.org/release/mercurial-7.2.3.tar.gz |
| 最后更新 | 2026-06-29T18:50:44Z |
| Pulse | updated |
| 依赖 | python@3.14 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-hgk来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.