##// END OF EJS Templates
doc: clarify that sections can be split
Angel Ezquerra -
r11221:e655b378 stable
parent child Browse files
Show More
@@ -113,6 +113,35 b' will use the value that was configured l'
113
113
114 This would set the configuration key named ``eggs`` to ``small``.
114 This would set the configuration key named ``eggs`` to ``small``.
115
115
116 It is also possible to define a section multiple times. A section can
117 be redefined on the same and/or on different hgrc files. For example::
118
119 [foo]
120 eggs=large
121 ham=serrano
122 eggs=small
123
124 [bar]
125 eggs=ham
126 green=
127 eggs
128
129 [foo]
130 ham=prosciutto
131 eggs=medium
132 bread=toasted
133
134 This would set the ``eggs``, ``ham``, and ``bread`` configuration keys
135 of the ``foo`` section to ``medium``, ``prosciutto``, and ``toasted``,
136 respectively. As you can see there only thing that matters is the last
137 value that was set for each of the configuration keys.
138
139 If a configuration key is set multiple times in different
140 configuration files the final value will depend on the order in which
141 the different configuration files are read, with settings from earlier
142 paths overriding later ones as described on the ``Files`` section
143 above.
144
116 A line of the form ``%include file`` will include ``file`` into the
145 A line of the form ``%include file`` will include ``file`` into the
117 current configuration file. The inclusion is recursive, which means
146 current configuration file. The inclusion is recursive, which means
118 that included files can include other files. Filenames are relative to
147 that included files can include other files. Filenames are relative to
General Comments 0
You need to be logged in to leave comments. Login now