Mercurial configuration files on Windows

On Windows, there are three types of configuration files read by Mercurial: local (to a particular repository), per-user and per-system. When a configuration setting appears in more than one of these files, the local overrides per-user which overrides per-system.

The local configuration file is named hgrc and is found in the .hg subdirectory of the repository.

The per-user configuration file can be named either .hgrc or Mercurial.ini. It can be placed either in %USERPROFILE% or %HOMEDRIVE%%HOMEPATH% directory.

The per-system configuration file has to be named Mercurial.ini. It can be in the installation directory of Mercurial.

There are a couple of other per-system configuration options that are more complicated: .rc files in the installation directory or using the registry.

More information about configuration file names and paths can be found using:

$ hg help config

Tried with: Mercurial 2.3.2

2 thoughts on “Mercurial configuration files on Windows

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.