On Linux, 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 lies in the
.hg subdirectory of the repository.
The per-user configuration file has to be named
.hgrc and placed in
The per-system configuration file has to be named
hgrc and placed in the
There are a few other per-system configuration options that are more complicated:
.rc files in the installation directory or the
More information about configuration file names and paths can be found using:
$ hg help config
Tried with: Mercurial 2.0.2