Mercurial reads configuration data from several files, if they exist. Below we list the most specific file first. On Windows, these configuration files are read: - ``\.hg\hgrc`` - ``%USERPROFILE%\.hgrc`` - ``%USERPROFILE%\mercurial.ini`` - ``%HOME%\.hgrc`` - ``%HOME%\mercurial.ini`` - ``C:\mercurial\mercurial.ini`` (unless regkey or hgrc.d\ or mercurial.ini found) - ``HKEY_LOCAL_MACHINE\SOFTWARE\Mercurial`` (unless hgrc.d\ or mercurial.ini found) - ``\hgrc.d\*.rc`` (unless mercurial.ini found) - ``\mercurial.ini`` On Unix, these files are read: - ``/.hg/hgrc`` - ``$HOME/.hgrc`` - ``/etc/mercurial/hgrc`` - ``/etc/mercurial/hgrc.d/*.rc`` - ``/etc/mercurial/hgrc`` - ``/etc/mercurial/hgrc.d/*.rc`` The configuration files for Mercurial use a simple ini-file format. A configuration file consists of sections, led by a ``[section]`` header and followed by ``name = value`` entries:: [ui] username = Firstname Lastname verbose = True The above entries will be referred to as ``ui.username`` and ``ui.verbose``, respectively. Please see the hgrc man page for a full description of the possible configuration values: - on Unix-like systems: ``man hgrc`` - online: http://www.selenic.com/mercurial/hgrc.5.html