70 parent directory of the **hg** executable (or symlink) being run. For |
70 parent directory of the **hg** executable (or symlink) being run. For |
71 example, if installed in ``/shared/tools/bin/hg``, Mercurial will look |
71 example, if installed in ``/shared/tools/bin/hg``, Mercurial will look |
72 in ``/shared/tools/etc/mercurial/hgrc``. Options in these files apply |
72 in ``/shared/tools/etc/mercurial/hgrc``. Options in these files apply |
73 to all Mercurial commands executed by any user in any directory. |
73 to all Mercurial commands executed by any user in any directory. |
74 |
74 |
75 | (Windows) ``C:\Mercurial\Mercurial.ini`` |
75 | (Windows) ``<install-dir>\Mercurial.ini`` |
|
76 | (Windows) ``<install-dir>\hgrc.d\*.rc`` |
76 | (Windows) ``HKEY_LOCAL_MACHINE\SOFTWARE\Mercurial`` |
77 | (Windows) ``HKEY_LOCAL_MACHINE\SOFTWARE\Mercurial`` |
77 | (Windows) ``<install-dir>\Mercurial.ini`` |
|
78 |
78 |
79 Per-installation/system configuration files, for the system on |
79 Per-installation/system configuration files, for the system on |
80 which Mercurial is running. Options in these files apply to all |
80 which Mercurial is running. Options in these files apply to all |
81 Mercurial commands executed by any user in any directory. Registry |
81 Mercurial commands executed by any user in any directory. Registry |
82 keys contain PATH-like strings, every part of which must reference |
82 keys contain PATH-like strings, every part of which must reference |
83 a ``Mercurial.ini`` file or be a directory where ``*.rc`` files will |
83 a ``Mercurial.ini`` file or be a directory where ``*.rc`` files will |
84 be read. |
84 be read. Mercurial checks each of these locations in the specified |
|
85 order until one or more configuration files are detected. If the |
|
86 py2win32 extensions are not installed, Mercurial will only look for |
|
87 site-wide configuration in ``C:\Mercurial\Mercurial.ini``. |
85 |
88 |
86 Syntax |
89 Syntax |
87 ------ |
90 ------ |
88 |
91 |
89 A configuration file consists of sections, led by a ``[section]`` header |
92 A configuration file consists of sections, led by a ``[section]`` header |