# HG changeset patch # User Martin Geisler # Date 1306746925 -7200 # Node ID d5f616132c10998f7dd2b4abafaa0076ddd65c1c # Parent 323c11dad9c60fc194a27bb818e0a1ca3a61e57b doc: improve merge between hgrc.5 and config help topic diff -r 323c11dad9c6 -r d5f616132c10 doc/hgrc.5.txt --- a/doc/hgrc.5.txt Mon May 30 11:14:31 2011 +0200 +++ b/doc/hgrc.5.txt Mon May 30 11:15:25 2011 +0200 @@ -19,9 +19,6 @@ Synopsis -------- -The Mercurial system uses a set of configuration files to control -aspects of its behavior. - .. include:: ../mercurial/help/config.txt Author diff -r 323c11dad9c6 -r d5f616132c10 mercurial/help/config.txt --- a/mercurial/help/config.txt Mon May 30 11:14:31 2011 +0200 +++ b/mercurial/help/config.txt Mon May 30 11:15:25 2011 +0200 @@ -1,65 +1,27 @@ -Mercurial reads configuration data from several files, if they exist. -Below we list the most specific file first. +The Mercurial system uses a set of configuration files to control +aspects of its behavior. -On Windows, these configuration files are read: +The configuration files use a simple ini-file format. A configuration +file consists of sections, led by a ``[section]`` header and followed +by ``name = value`` entries:: -- ``\.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`` + [ui] + username = Firstname Lastname + verbose = True -On Unix, these files are read: +The above entries will be referred to as ``ui.username`` and +``ui.verbose``, respectively. See the Syntax section below. -- ``/.hg/hgrc`` -- ``$HOME/.hgrc`` -- ``/etc/mercurial/hgrc`` -- ``/etc/mercurial/hgrc.d/*.rc`` -- ``/etc/mercurial/hgrc`` -- ``/etc/mercurial/hgrc.d/*.rc`` +Files +----- +Mercurial reads configuration data from several files, if they exist. These files do not exist by default and you will have to create the appropriate configuration files yourself: global configuration like the username setting is typically put into ``%USERPROFILE%\mercurial.ini`` or ``$HOME/.hgrc`` and local configuration is put into the per-repository ``/.hg/hgrc`` file. -If there is a per-repository configuration file which is not owned by -the active user, Mercurial will warn you that the file is skipped:: - - not trusting file /.hg/hgrc from untrusted user USER, group GROUP - -If this bothers you, the warning can be silenced (the file would still -be ignored) or trust can be established. Use one of the following -settings, the syntax is explained below: - -- ``ui.report_untrusted = False`` -- ``trusted.users = USER`` -- ``trusted.groups = GROUP`` - -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 - -Files ------ - -Mercurial reads configuration data from several files, if they exist. The names of these files depend on the system on which Mercurial is installed. ``*.rc`` files from a single directory are read in alphabetical order, later ones overriding earlier ones. Where multiple @@ -74,7 +36,7 @@ this file override options in all other configuration files. On Unix, most of this file will be ignored if it doesn't belong to a trusted user or to a trusted group. See the documentation for the - trusted_ section below for more details. + Trusted section below for more details. | (Unix) ``$HOME/.hgrc`` | (Windows) ``%USERPROFILE%\.hgrc`` @@ -106,8 +68,8 @@ in ``/shared/tools/etc/mercurial/hgrc``. Options in these files apply to all Mercurial commands executed by any user in any directory. -| (Windows) ``\Mercurial.ini`` -| (Windows) ``\hgrc.d\*.rc`` +| (Windows) ``\Mercurial.ini`` **or** +| (Windows) ``\hgrc.d\*.rc`` **or** | (Windows) ``HKEY_LOCAL_MACHINE\SOFTWARE\Mercurial`` Per-installation/system configuration files, for the system on