mercurial.exe

Mercurial Distributed Version Control System

Application ProcessSafeVersion Control
CPU Usage
0-5%
Memory
20-100 MB
Location
C:\Program Files\Mercurial
Publisher
Mercurial Project

Quick Answer

mercurial.exe is safe. It is the Windows executable for the Mercurial distributed version control system; it runs to execute Mercurial commands and manage repositories.

Is it a Virus?
✔ NO - Safe
Must be in C:\Program Files\Mercurial or C:\Program Files (x86)\Mercurial; check digital signature.
Warning
Occasional multiple processes
Mercurial GUI tools like TortoiseHg may spawn separate mercurial.exe processes per operation
Can I Disable?
YES
Close shells or GUI tools; mercurial.exe runs only when commands execute or GUI utilities invoke it

What is mercurial.exe?

mercurial.exe is the Windows executable that powers the Mercurial distributed version control system. It launches when you run hg commands or use GUI tools that wrap Mercurial, and it coordinates repository operations across local clones.

Mercurial uses a lightweight, distributed model with a simple data store. The mercurial.exe core handles command parsing, repository plumbing, and network operations, delegating heavy lifting to the Python-based engine.

Quick Fact: Mercurial emphasizes speed and simplicity; mercurial.exe orchestrates fast operations across repositories with a compact manifest-based data model.

Types of Mercurial Processes

Is mercurial.exe Safe?

Yes, mercurial.exe is safe when it's the legitimate file from the Mercurial project downloaded from official sources (https://www.mercurial-scm.org/ or via official package managers).

Is mercurial.exe a Virus or Malware?

The real mercurial.exe is NOT a virus. Malware masquerading with similar names exists, so verify paths and signatures.

How to Tell if mercurial.exe is Legitimate or Malware

  1. File Location: Must be in C:\Program Files\Mercurial\ or C:\Program Files (x86)\Mercurial\. Any mercurial.exe elsewhere is suspicious.
  2. Digital Signature: Right-click the file in Explorer > Properties > Digital Signatures. Should show a valid signature from The Mercurial Project or similar.
  3. Resource Usage: Normal mercurial.exe usage is modest; heavy, constant CPU or memory indicates automation or malware
  4. Behavior: Mercurial runs only when you issue hg commands or when GUI wrappers invoke it. Persistent background activity without user action is suspicious.

Red Flags: If mercurial.exe is located in Temp, AppData, or System32, or it runs without commands, or lacks a signature, scan with antivirus and verify repository integrity.

Why Is mercurial.exe Running on My PC?

Mercurial runs when you perform repository operations or when GUI tools trigger Mercurial. It may also run as part of a local hgweb server or build pipelines.

Reasons it's running:

Can I Disable or Remove mercurial.exe?

Yes, you can disable mercurial.exe. Only remove Mercurial if you no longer need version control for your projects.

How to Stop mercurial.exe

How to Uninstall Mercurial

Common Problems: High CPU or Memory Usage

If mercurial.exe consumes excessive resources during repository operations:

Common Causes & Solutions

Quick Fixes:
1. Observe activity with Task Manager or Process Explorer to identify the command being run
2. Limit repository view commands; avoid broad 'hg log' on very large repos
3. Disable unnecessary extensions and hooks
4. Update Mercurial to the latest version
5. Configure antivirus exclusions for Mercurial directories

Frequently Asked Questions

Is mercurial.exe a virus?

No, mercurial.exe from the official Mercurial project is not a virus. Verify the file path in C:\Program Files\Mercurial and digital signatures from the Mercurial Project.

Why is mercurial.exe using so much CPU?

High CPU usually occurs during heavy repository operations or when a GUI wrapper launches many subprocesses. Use hg status with scope limits and ensure extensions aren't misbehaving.

Can I delete mercurial.exe?

Yes, you can uninstall Mercurial via Windows Settings if you no longer need it. Your repositories remain separate; the mercurial.exe binary will be removed with the package.

Can I disable mercurial.exe?

Yes, quit all Mercurial commands and close GUI tools. If you don't want Mercurial to run at startup, remove any startup invocation or services.

Why does Mercurial spawn multiple processes?

Mercurial uses a modular design; hg commands may spawn helper processes or GUI wrappers. Each operation might launch separate processes as needed.

How do I reduce Mercurial's memory usage?

Limit log queries, work with smaller clones, disable or remove heavy extensions, and upgrade to a version with performance improvements.

Related Processes