##// END OF EJS Templates
Update hgrc documentation to refer to Windows paths.
Bryan O'Sullivan -
r1304:a69e5a67 default
parent child Browse files
Show More
@@ -1,225 +1,229 b''
1 HGRC(5)
1 HGRC(5)
2 =======
2 =======
3 Bryan O'Sullivan <bos@serpentine.com>
3 Bryan O'Sullivan <bos@serpentine.com>
4
4
5 NAME
5 NAME
6 ----
6 ----
7 hgrc - configuration files for Mercurial
7 hgrc - configuration files for Mercurial
8
8
9 SYNOPSIS
9 SYNOPSIS
10 --------
10 --------
11
11
12 The Mercurial system uses a set of configuration files to control
12 The Mercurial system uses a set of configuration files to control
13 aspects of its behaviour.
13 aspects of its behaviour.
14
14
15 FILES
15 FILES
16 -----
16 -----
17
17
18 Mercurial reads configuration data from three files:
18 Mercurial reads configuration data from up to three files, if they
19 exist. The names of these files depend on the system on which
20 Mercurial is installed.
19
21
20 /etc/mercurial/hgrc::
22 (Unix) /etc/mercurial/hgrc::
23 (Windows) C:\Mercurial\Mercurial.ini::
21 Options in this global configuration file apply to all Mercurial
24 Options in this global configuration file apply to all Mercurial
22 commands executed by any user in any directory.
25 commands executed by any user in any directory.
23
26
24 $HOME/.hgrc::
27 (Unix) $HOME/.hgrc::
28 (Windows) C:\Documents and Settings\USERNAME\Mercurial.ini
25 Per-user configuration options that apply to all Mercurial commands,
29 Per-user configuration options that apply to all Mercurial commands,
26 no matter from which directory they are run. Values in this file
30 no matter from which directory they are run. Values in this file
27 override global settings.
31 override global settings.
28
32
29 <repo>/.hg/hgrc::
33 (Unix, Windows) <repo>/.hg/hgrc::
30 Per-repository configuration options that only apply in a
34 Per-repository configuration options that only apply in a
31 particular repository. This file is not version-controlled, and
35 particular repository. This file is not version-controlled, and
32 will not get transferred during a "clone" operation. Values in
36 will not get transferred during a "clone" operation. Values in
33 this file override global and per-user settings.
37 this file override global and per-user settings.
34
38
35 SYNTAX
39 SYNTAX
36 ------
40 ------
37
41
38 A configuration file consists of sections, led by a "[section]" header
42 A configuration file consists of sections, led by a "[section]" header
39 and followed by "name: value" entries; "name=value" is also accepted.
43 and followed by "name: value" entries; "name=value" is also accepted.
40
44
41 [spam]
45 [spam]
42 eggs=ham
46 eggs=ham
43 green=
47 green=
44 eggs
48 eggs
45
49
46 Each line contains one entry. If the lines that follow are indented,
50 Each line contains one entry. If the lines that follow are indented,
47 they are treated as continuations of that entry.
51 they are treated as continuations of that entry.
48
52
49 Leading whitespace is removed from values. Empty lines are skipped.
53 Leading whitespace is removed from values. Empty lines are skipped.
50
54
51 The optional values can contain format strings which refer to other
55 The optional values can contain format strings which refer to other
52 values in the same section, or values in a special DEFAULT section.
56 values in the same section, or values in a special DEFAULT section.
53
57
54 Lines beginning with "#" or ";" are ignored and may be used to provide
58 Lines beginning with "#" or ";" are ignored and may be used to provide
55 comments.
59 comments.
56
60
57 SECTIONS
61 SECTIONS
58 --------
62 --------
59
63
60 This section describes the different sections that may appear in a
64 This section describes the different sections that may appear in a
61 Mercurial "hgrc" file, the purpose of each section, its possible
65 Mercurial "hgrc" file, the purpose of each section, its possible
62 keys, and their possible values.
66 keys, and their possible values.
63
67
64 decode/encode::
68 decode/encode::
65 Filters for transforming files on checkout/checkin. This would
69 Filters for transforming files on checkout/checkin. This would
66 typically be used for newline processing or other
70 typically be used for newline processing or other
67 localization/canonicalization of files.
71 localization/canonicalization of files.
68
72
69 Filters consist of a filter pattern followed by a filter command.
73 Filters consist of a filter pattern followed by a filter command.
70 Filter patterns are globs by default, rooted at the repository
74 Filter patterns are globs by default, rooted at the repository
71 root. For example, to match any file ending in ".txt" in the root
75 root. For example, to match any file ending in ".txt" in the root
72 directory only, use the pattern "*.txt". To match any file ending
76 directory only, use the pattern "*.txt". To match any file ending
73 in ".c" anywhere in the repository, use the pattern "**.c".
77 in ".c" anywhere in the repository, use the pattern "**.c".
74
78
75 The filter command can start with a specifier, either "pipe:" or
79 The filter command can start with a specifier, either "pipe:" or
76 "tempfile:". If no specifier is given, "pipe:" is used by default.
80 "tempfile:". If no specifier is given, "pipe:" is used by default.
77
81
78 A "pipe:" command must accept data on stdin and return the
82 A "pipe:" command must accept data on stdin and return the
79 transformed data on stdout.
83 transformed data on stdout.
80
84
81 Pipe example:
85 Pipe example:
82
86
83 [encode]
87 [encode]
84 # uncompress gzip files on checkin to improve delta compression
88 # uncompress gzip files on checkin to improve delta compression
85 # note: not necessarily a good idea, just an example
89 # note: not necessarily a good idea, just an example
86 *.gz = pipe: gunzip
90 *.gz = pipe: gunzip
87
91
88 [decode]
92 [decode]
89 # recompress gzip files when writing them to the working dir (we
93 # recompress gzip files when writing them to the working dir (we
90 # can safely omit "pipe:", because it's the default)
94 # can safely omit "pipe:", because it's the default)
91 *.gz = gzip
95 *.gz = gzip
92
96
93 A "tempfile:" command is a template. The string INFILE is replaced
97 A "tempfile:" command is a template. The string INFILE is replaced
94 with the name of a temporary file that contains the data to be
98 with the name of a temporary file that contains the data to be
95 filtered by the command. The string OUTFILE is replaced with the
99 filtered by the command. The string OUTFILE is replaced with the
96 name of an empty temporary file, where the filtered data must be
100 name of an empty temporary file, where the filtered data must be
97 written by the command.
101 written by the command.
98
102
99 NOTE: the tempfile mechanism is recommended for Windows systems,
103 NOTE: the tempfile mechanism is recommended for Windows systems,
100 where the standard shell I/O redirection operators often have
104 where the standard shell I/O redirection operators often have
101 strange effects. In particular, if you are doing line ending
105 strange effects. In particular, if you are doing line ending
102 conversion on Windows using the popular dos2unix and unix2dos
106 conversion on Windows using the popular dos2unix and unix2dos
103 programs, you *must* use the tempfile mechanism, as using pipes will
107 programs, you *must* use the tempfile mechanism, as using pipes will
104 corrupt the contents of your files.
108 corrupt the contents of your files.
105
109
106 Tempfile example:
110 Tempfile example:
107
111
108 [encode]
112 [encode]
109 # convert files to unix line ending conventions on checkin
113 # convert files to unix line ending conventions on checkin
110 **.txt = tempfile: dos2unix -n INFILE OUTFILE
114 **.txt = tempfile: dos2unix -n INFILE OUTFILE
111
115
112 [decode]
116 [decode]
113 # convert files to windows line ending conventions when writing
117 # convert files to windows line ending conventions when writing
114 # them to the working dir
118 # them to the working dir
115 **.txt = tempfile: unix2dos -n INFILE OUTFILE
119 **.txt = tempfile: unix2dos -n INFILE OUTFILE
116
120
117 hooks::
121 hooks::
118 Commands that get automatically executed by various actions such as
122 Commands that get automatically executed by various actions such as
119 starting or finishing a commit.
123 starting or finishing a commit.
120 changegroup;;
124 changegroup;;
121 Run after a changegroup has been added via push or pull.
125 Run after a changegroup has been added via push or pull.
122 commit;;
126 commit;;
123 Run after a changeset has been created. Passed the ID of the newly
127 Run after a changeset has been created. Passed the ID of the newly
124 created changeset.
128 created changeset.
125 precommit;;
129 precommit;;
126 Run before starting a commit. Exit status 0 allows the commit to
130 Run before starting a commit. Exit status 0 allows the commit to
127 proceed. Non-zero status will cause the commit to fail.
131 proceed. Non-zero status will cause the commit to fail.
128
132
129 http_proxy::
133 http_proxy::
130 Used to access web-based Mercurial repositories through a HTTP
134 Used to access web-based Mercurial repositories through a HTTP
131 proxy.
135 proxy.
132 host;;
136 host;;
133 Host name and (optional) port of the proxy server, for example
137 Host name and (optional) port of the proxy server, for example
134 "myproxy:8000".
138 "myproxy:8000".
135 no;;
139 no;;
136 Optional. Comma-separated list of host names that should bypass
140 Optional. Comma-separated list of host names that should bypass
137 the proxy.
141 the proxy.
138 passwd;;
142 passwd;;
139 Optional. Password to authenticate with at the proxy server.
143 Optional. Password to authenticate with at the proxy server.
140 user;;
144 user;;
141 Optional. User name to authenticate with at the proxy server.
145 Optional. User name to authenticate with at the proxy server.
142
146
143 paths::
147 paths::
144 Assigns symbolic names to repositories. The left side is the
148 Assigns symbolic names to repositories. The left side is the
145 symbolic name, and the right gives the directory or URL that is the
149 symbolic name, and the right gives the directory or URL that is the
146 location of the repository.
150 location of the repository.
147
151
148 ui::
152 ui::
149 User interface controls.
153 User interface controls.
150 debug;;
154 debug;;
151 Print debugging information. True or False. Default is False.
155 Print debugging information. True or False. Default is False.
152 editor;;
156 editor;;
153 The editor to use during a commit. Default is $EDITOR or "vi".
157 The editor to use during a commit. Default is $EDITOR or "vi".
154 interactive;;
158 interactive;;
155 Allow to prompt the user. True or False. Default is True.
159 Allow to prompt the user. True or False. Default is True.
156 merge;;
160 merge;;
157 The conflict resolution program to use during a manual merge.
161 The conflict resolution program to use during a manual merge.
158 Default is "hgmerge".
162 Default is "hgmerge".
159 quiet;;
163 quiet;;
160 Reduce the amount of output printed. True or False. Default is False.
164 Reduce the amount of output printed. True or False. Default is False.
161 remotecmd;;
165 remotecmd;;
162 remote command to use for clone/push/pull operations. Default is 'hg'.
166 remote command to use for clone/push/pull operations. Default is 'hg'.
163 ssh;;
167 ssh;;
164 command to use for SSH connections. Default is 'ssh'.
168 command to use for SSH connections. Default is 'ssh'.
165 username;;
169 username;;
166 The committer of a changeset created when running "commit".
170 The committer of a changeset created when running "commit".
167 Typically a person's name and email address, e.g. "Fred Widget
171 Typically a person's name and email address, e.g. "Fred Widget
168 <fred@example.com>". Default is $EMAIL or username@hostname.
172 <fred@example.com>". Default is $EMAIL or username@hostname.
169 verbose;;
173 verbose;;
170 Increase the amount of output printed. True or False. Default is False.
174 Increase the amount of output printed. True or False. Default is False.
171
175
172
176
173 web::
177 web::
174 Web interface configuration.
178 Web interface configuration.
175 accesslog;;
179 accesslog;;
176 Where to output the access log. Default is stdout.
180 Where to output the access log. Default is stdout.
177 address;;
181 address;;
178 Interface address to bind to. Default is all.
182 Interface address to bind to. Default is all.
179 allowbz2;;
183 allowbz2;;
180 Whether to allow .tar.bz2 downloading of repo revisions. Default is false.
184 Whether to allow .tar.bz2 downloading of repo revisions. Default is false.
181 allowgz;;
185 allowgz;;
182 Whether to allow .tar.gz downloading of repo revisions. Default is false.
186 Whether to allow .tar.gz downloading of repo revisions. Default is false.
183 allowpull;;
187 allowpull;;
184 Whether to allow pulling from the repository. Default is true.
188 Whether to allow pulling from the repository. Default is true.
185 allowzip;;
189 allowzip;;
186 Whether to allow .zip downloading of repo revisions. Default is false.
190 Whether to allow .zip downloading of repo revisions. Default is false.
187 This feature creates temporary files.
191 This feature creates temporary files.
188 description;;
192 description;;
189 Textual description of the repository's purpose or contents.
193 Textual description of the repository's purpose or contents.
190 Default is "unknown".
194 Default is "unknown".
191 errorlog;;
195 errorlog;;
192 Where to output the error log. Default is stderr.
196 Where to output the error log. Default is stderr.
193 ipv6;;
197 ipv6;;
194 Whether to use IPv6. Default is false.
198 Whether to use IPv6. Default is false.
195 name;;
199 name;;
196 Repository name to use in the web interface. Default is current
200 Repository name to use in the web interface. Default is current
197 working directory.
201 working directory.
198 maxchanges;;
202 maxchanges;;
199 Maximum number of changes to list on the changelog. Default is 10.
203 Maximum number of changes to list on the changelog. Default is 10.
200 maxfiles;;
204 maxfiles;;
201 Maximum number of files to list per changeset. Default is 10.
205 Maximum number of files to list per changeset. Default is 10.
202 port;;
206 port;;
203 Port to listen on. Default is 8000.
207 Port to listen on. Default is 8000.
204 style;;
208 style;;
205 Which template map style to use.
209 Which template map style to use.
206 templates;;
210 templates;;
207 Where to find the HTML templates. Default is install path.
211 Where to find the HTML templates. Default is install path.
208
212
209
213
210 AUTHOR
214 AUTHOR
211 ------
215 ------
212 Bryan O'Sullivan <bos@serpentine.com>.
216 Bryan O'Sullivan <bos@serpentine.com>.
213
217
214 Mercurial was written by Matt Mackall <mpm@selenic.com>.
218 Mercurial was written by Matt Mackall <mpm@selenic.com>.
215
219
216 SEE ALSO
220 SEE ALSO
217 --------
221 --------
218 hg(1)
222 hg(1)
219
223
220 COPYING
224 COPYING
221 -------
225 -------
222 This manual page is copyright 2005 Bryan O'Sullivan.
226 This manual page is copyright 2005 Bryan O'Sullivan.
223 Mercurial is copyright 2005 Matt Mackall.
227 Mercurial is copyright 2005 Matt Mackall.
224 Free use of this software is granted under the terms of the GNU General
228 Free use of this software is granted under the terms of the GNU General
225 Public License (GPL).
229 Public License (GPL).
General Comments 0
You need to be logged in to leave comments. Login now