Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget, chocolatey 安装 mercurial

查看 mercurial 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

代理安全

代理安全回答

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.

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install mercurial

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install mercurial

MacPorts ports tree · devel/mercurial/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add mercurial

Alpine Linux edge package indexes · mercurial · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install mercurial

Debian stable package indexes · mercurial · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install mercurial

Fedora Rawhide package metadata · mercurial · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#mercurial

nixpkgs package indexes · pkgs/by-name/me/mercurial/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S mercurial

Arch Linux sync databases · mercurial · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install mercurial

openSUSE Tumbleweed package metadata · mercurial · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/mercurial

Scoop official bucket manifest trees · bucket/mercurial.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Mercurial.Mercurial -e

Windows Package Manager source index · Mercurial.Mercurial · 来源: cdn.winget.microsoft.com

Chocolatey已验证 · 92%
choco install hg

Chocolatey community package catalog · hg · 来源: community.chocolatey.org

概览

软件包摘要

Scalable distributed version control system

命令和别名

  • chg
  • hg

历史

项目历史与用法

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。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.hgrc$XDG_CONFIG_HOME/hg/hgrc~/.config/hg/hgrc

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.hgrc$XDG_CONFIG_HOME/hg/hgrc~/.config/hg/hgrc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
chgcli全局可执行文件
hgcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本7.2.3
管理器更新时间2026-06-29
本地数据OK
上游not checked
检测到的最新版本未检测到

https://mercurial-scm.org/

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖python@3.14
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemercurial
Aliases
  • hg
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

mercurial 7.0.1-2

easy-to-use, scalable distributed version control system

https://www.mercurial-scm.org/

sudo apt install mercurial
  • Section: vcs
  • Architecture: amd64
  • 4 依赖
  • 1 提供
  • 8 可选依赖
  • normalized package name match
  • 匹配方式:Mercurial
Debian stable package indexes · deb.debian.org · Debian stable package indexes: mercurial from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

mercurial-common 7.0.1-2

easy-to-use, scalable distributed version control system (common files)

https://www.mercurial-scm.org/

sudo apt install mercurial-common
  • Section: vcs
  • Architecture: all
  • Source Package: mercurial
  • 1 依赖
  • 7 可选依赖
  • normalized package name match
  • 匹配方式:Mercurial
Debian stable package indexes · deb.debian.org · Debian stable package indexes: mercurial-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

mercurial

nix profile install nixpkgs#mercurial
  • normalized package name match
  • 匹配方式:Mercurial
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/me/mercurial/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

mercurial 6.7.2-1ubuntu2

easy-to-use, scalable distributed version control system

https://www.mercurial-scm.org/

sudo apt install mercurial
  • Section: universe/devel
  • Architecture: amd64
  • 4 依赖
  • 1 提供
  • 8 可选依赖
  • normalized package name match
  • 匹配方式:Mercurial
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mercurial from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

mercurial-common 6.7.2-1ubuntu2

easy-to-use, scalable distributed version control system (common files)

https://www.mercurial-scm.org/

sudo apt install mercurial-common
  • Section: universe/devel
  • Architecture: all
  • Source Package: mercurial
  • 1 依赖
  • 7 可选依赖
  • normalized package name match
  • 匹配方式:Mercurial
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mercurial-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

mercurial 7.2.1-r0

Scalable distributed SCM tool

https://www.mercurial-scm.org/

sudo apk add mercurial
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: mercurial
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mercurial
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mercurial from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

mercurial-bash-completion 7.2.1-r0

Bash completions for mercurial

https://www.mercurial-scm.org/

sudo apk add mercurial-bash-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: mercurial
  • normalized package name match
  • 匹配方式:Mercurial
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mercurial-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

mercurial-chg 7.2.1-r0

Client for Mercurial command server with cHg extension

https://www.mercurial-scm.org/

sudo apk add mercurial-chg
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: mercurial
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mercurial
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mercurial-chg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

mercurial-doc 7.2.1-r0

Scalable distributed SCM tool (documentation)

https://www.mercurial-scm.org/

sudo apk add mercurial-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: mercurial
  • normalized package name match
  • 匹配方式:Mercurial
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mercurial-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

mercurial-lang 7.2.1-r0

translations for mercurial

https://www.mercurial-scm.org/

sudo apk add mercurial-lang
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: mercurial
  • 1 依赖
  • normalized package name match
  • 匹配方式:Mercurial
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mercurial-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

mercurial-pyc 7.2.1-r0

Precompiled Python bytecode for mercurial

https://www.mercurial-scm.org/

sudo apk add mercurial-pyc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: mercurial
  • 1 依赖
  • normalized package name match
  • 匹配方式:Mercurial
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mercurial-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

mercurial-vim 7.2.1-r0

Vim syntax for mercurial

https://www.mercurial-scm.org/

sudo apk add mercurial-vim
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: mercurial
  • normalized package name match
  • 匹配方式:Mercurial
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mercurial-vim from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

mercurial-zsh-completion 7.2.1-r0

Zsh completions for mercurial

https://www.mercurial-scm.org/

sudo apk add mercurial-zsh-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: mercurial
  • normalized package name match
  • 匹配方式:Mercurial
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mercurial-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

mercurial 7.2.1-2.fc45

A fast, lightweight Source Control Management system

https://mercurial-scm.org/

sudo dnf install mercurial
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mercurial
  • 5 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式:Mercurial
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mercurial from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mercurial-chg 7.2.1-2.fc45

A fast Mercurial command without slow Python startup

https://mercurial-scm.org/

sudo dnf install mercurial-chg
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mercurial
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mercurial
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mercurial-chg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mercurial-hgk 7.2.1-2.fc45

Hgk interface for mercurial

https://mercurial-scm.org/

sudo dnf install mercurial-hgk
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mercurial
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Mercurial
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mercurial-hgk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment