##// END OF EJS Templates
help: add "hg help config" topic...
Martin Geisler -
r9785:b52f0f22 default
parent child Browse files
Show More
@@ -0,0 +1,37 b''
1 Mercurial reads configuration data from several files, if they exist.
2 Below we list the most specific file first.
3
4 On Windows, these configuration files are read:
5
6 - ``<repo>\.hg\hgrc``
7 - ``%USERPROFILE%\.hgrc``
8 - ``%USERPROFILE%\Mercurial.ini``
9 - ``%HOME%\.hgrc``
10 - ``%HOME%\Mercurial.ini``
11 - ``C:\Mercurial\Mercurial.ini``
12 - ``HKEY_LOCAL_MACHINE\SOFTWARE\Mercurial``
13 - ``<install-dir>\Mercurial.ini``
14
15 On Unix, these files are read:
16
17 - ``<repo>/.hg/hgrc``
18 - ``$HOME/.hgrc``
19 - ``/etc/mercurial/hgrc``
20 - ``/etc/mercurial/hgrc.d/*.rc``
21 - ``<install-root>/etc/mercurial/hgrc``
22 - ``<install-root>/etc/mercurial/hgrc.d/*.rc``
23
24 The configuration files for Mercurial use a simple ini-file format. A
25 configuration file consists of sections, led by a ``[section]`` header
26 and followed by ``name = value`` entries::
27
28 [ui]
29 username = Firstname Lastname <firstname.lastname@example.net>
30 verbose = True
31
32 This above entries will be referred to as ``ui.username`` and
33 ``ui.verbose``, respectively. Please see the hgrc man page for a full
34 description of the possible configuration values:
35
36 - on Unix-like systems: ``man hgrc``
37 - online: http://www.selenic.com/mercurial/hgrc.5.html
@@ -80,6 +80,7 b' def loaddoc(topic):'
80 return loader
80 return loader
81
81
82 helptable = (
82 helptable = (
83 (["config"], _("Configuration Files"), loaddoc('config')),
83 (["dates"], _("Date Formats"), loaddoc('dates')),
84 (["dates"], _("Date Formats"), loaddoc('dates')),
84 (["patterns"], _("File Name Patterns"), loaddoc('patterns')),
85 (["patterns"], _("File Name Patterns"), loaddoc('patterns')),
85 (['environment', 'env'], _('Environment Variables'), loaddoc('environment')),
86 (['environment', 'env'], _('Environment Variables'), loaddoc('environment')),
@@ -202,6 +202,7 b' list of commands:'
202
202
203 additional help topics:
203 additional help topics:
204
204
205 config Configuration Files
205 dates Date Formats
206 dates Date Formats
206 patterns File Name Patterns
207 patterns File Name Patterns
207 environment Environment Variables
208 environment Environment Variables
@@ -270,6 +271,7 b' list of commands:'
270
271
271 additional help topics:
272 additional help topics:
272
273
274 config Configuration Files
273 dates Date Formats
275 dates Date Formats
274 patterns File Name Patterns
276 patterns File Name Patterns
275 environment Environment Variables
277 environment Environment Variables
@@ -95,6 +95,7 b' list of commands:'
95
95
96 additional help topics:
96 additional help topics:
97
97
98 config Configuration Files
98 dates Date Formats
99 dates Date Formats
99 patterns File Name Patterns
100 patterns File Name Patterns
100 environment Environment Variables
101 environment Environment Variables
@@ -159,6 +160,7 b' use "hg -v help" to show aliases and glo'
159
160
160 additional help topics:
161 additional help topics:
161
162
163 config Configuration Files
162 dates Date Formats
164 dates Date Formats
163 patterns File Name Patterns
165 patterns File Name Patterns
164 environment Environment Variables
166 environment Environment Variables
General Comments 0
You need to be logged in to leave comments. Login now