Debian Codegraph @

doc/hgrc.5

raw
1 .\" Man page generated from reStructuredText.
2 .
3 .TH HGRC 5 "" "" "Mercurial Manual"
4 .SH NAME
5 hgrc \- configuration files for Mercurial
6 .
7 .nr rst2man-indent-level 0
8 .
9 .de1 rstReportMargin
10 \\$1 \\n[an-margin]
11 level \\n[rst2man-indent-level]
12 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
13 -
14 \\n[rst2man-indent0]
15 \\n[rst2man-indent1]
16 \\n[rst2man-indent2]
17 ..
18 .de1 INDENT
19 .\" .rstReportMargin pre:
20 . RS \\$1
21 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
22 . nr rst2man-indent-level +1
23 .\" .rstReportMargin post:
24 ..
25 .de UNINDENT
26 . RE
27 .\" indent \\n[an-margin]
28 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .nr rst2man-indent-level -1
30 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
31 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
32 ..
33 .SH DESCRIPTION
34 .sp
35 The Mercurial system uses a set of configuration files to control
36 aspects of its behavior.
37 .SH TROUBLESHOOTING
38 .sp
39 If you\(aqre having problems with your configuration,
40 \%\fBhg config \-\-source\fP\: can help you understand what is introducing
41 a setting into your environment.
42 .sp
43 See \%\fBhg help config.syntax\fP\: and \%\fBhg help config.files\fP\:
44 for information about how and where to override things.
45 .SH STRUCTURE
46 .sp
47 The configuration files use a simple ini\-file format. A configuration
48 file consists of sections, led by a \fB[section]\fP header and followed
49 by \fBname = value\fP entries:
50 .sp
51 .nf
52 .ft C
53 [ui]
54 username = Firstname Lastname <[email protected]>
55 verbose = True
56 .ft P
57 .fi
58 .sp
59 The above entries will be referred to as \fBui.username\fP and
60 \fBui.verbose\fP, respectively. See \%\fBhg help config.syntax\fP\:.
61 .SH FILES
62 .sp
63 Mercurial reads configuration data from several files, if they exist.
64 These files do not exist by default and you will have to create the
65 appropriate configuration files yourself:
66 .sp
67 Local configuration is put into the per\-repository \fB<repo>/.hg/hgrc\fP file.
68 .sp
69 Global configuration like the username setting is typically put into:
70 .INDENT 0.0
71 .IP \(bu 2
72 .
73 \fB%USERPROFILE%\emercurial.ini\fP (on Windows)
74 .UNINDENT
75 .INDENT 0.0
76 .IP \(bu 2
77 .
78 \fB$HOME/.hgrc\fP (on Unix, Plan9)
79 .UNINDENT
80 .sp
81 The names of these files depend on the system on which Mercurial is
82 installed. \fB*.rc\fP files from a single directory are read in
83 alphabetical order, later ones overriding earlier ones. Where multiple
84 paths are given below, settings from earlier paths override later
85 ones.
86 .sp
87 On Unix, the following files are consulted:
88 .INDENT 0.0
89 .IP \(bu 2
90 .
91 \fB<repo>/.hg/hgrc\-not\-shared\fP (per\-repository)
92 .IP \(bu 2
93 .
94 \fB<repo>/.hg/hgrc\fP (per\-repository)
95 .IP \(bu 2
96 .
97 \fB$HOME/.hgrc\fP (per\-user)
98 .IP \(bu 2
99 .
100 \fB${XDG_CONFIG_HOME:\-$HOME/.config}/hg/hgrc\fP (per\-user)
101 .IP \(bu 2
102 .
103 \fB<install\-root>/etc/mercurial/hgrc\fP (per\-installation)
104 .IP \(bu 2
105 .
106 \fB<install\-root>/etc/mercurial/hgrc.d/*.rc\fP (per\-installation)
107 .IP \(bu 2
108 .
109 \fB/etc/mercurial/hgrc\fP (per\-system)
110 .IP \(bu 2
111 .
112 \fB/etc/mercurial/hgrc.d/*.rc\fP (per\-system)
113 .IP \(bu 2
114 .
115 \fB<internal>/*.rc\fP (defaults)
116 .UNINDENT
117 .sp
118 On Windows, the following files are consulted:
119 .INDENT 0.0
120 .IP \(bu 2
121 .
122 \fB<repo>/.hg/hgrc\-not\-shared\fP (per\-repository)
123 .IP \(bu 2
124 .
125 \fB<repo>/.hg/hgrc\fP (per\-repository)
126 .IP \(bu 2
127 .
128 \fB%USERPROFILE%\e.hgrc\fP (per\-user)
129 .IP \(bu 2
130 .
131 \fB%USERPROFILE%\eMercurial.ini\fP (per\-user)
132 .IP \(bu 2
133 .
134 \fB%HOME%\e.hgrc\fP (per\-user)
135 .IP \(bu 2
136 .
137 \fB%HOME%\eMercurial.ini\fP (per\-user)
138 .IP \(bu 2
139 .
140 \fBHKEY_LOCAL_MACHINE\eSOFTWARE\eMercurial\fP (per\-system)
141 .IP \(bu 2
142 .
143 \fB<install\-dir>\ehgrc.d\e*.rc\fP (per\-installation)
144 .IP \(bu 2
145 .
146 \fB<install\-dir>\eMercurial.ini\fP (per\-installation)
147 .IP \(bu 2
148 .
149 \fB%PROGRAMDATA%\eMercurial\ehgrc\fP (per\-system)
150 .IP \(bu 2
151 .
152 \fB%PROGRAMDATA%\eMercurial\eMercurial.ini\fP (per\-system)
153 .IP \(bu 2
154 .
155 \fB%PROGRAMDATA%\eMercurial\ehgrc.d\e*.rc\fP (per\-system)
156 .IP \(bu 2
157 .
158 \fB<internal>/*.rc\fP (defaults)
159 .UNINDENT
160 .IP Note
161 .
162 The registry key \fBHKEY_LOCAL_MACHINE\eSOFTWARE\eWow6432Node\eMercurial\fP
163 is used when running 32\-bit Python on 64\-bit Windows.
164 .RE
165 .sp
166 On Plan9, the following files are consulted:
167 .INDENT 0.0
168 .IP \(bu 2
169 .
170 \fB<repo>/.hg/hgrc\-not\-shared\fP (per\-repository)
171 .IP \(bu 2
172 .
173 \fB<repo>/.hg/hgrc\fP (per\-repository)
174 .IP \(bu 2
175 .
176 \fB$home/lib/hgrc\fP (per\-user)
177 .IP \(bu 2
178 .
179 \fB<install\-root>/lib/mercurial/hgrc\fP (per\-installation)
180 .IP \(bu 2
181 .
182 \fB<install\-root>/lib/mercurial/hgrc.d/*.rc\fP (per\-installation)
183 .IP \(bu 2
184 .
185 \fB/lib/mercurial/hgrc\fP (per\-system)
186 .IP \(bu 2
187 .
188 \fB/lib/mercurial/hgrc.d/*.rc\fP (per\-system)
189 .IP \(bu 2
190 .
191 \fB<internal>/*.rc\fP (defaults)
192 .UNINDENT
193 .sp
194 Per\-repository configuration options only apply in a
195 particular repository. This file is not version\-controlled, and
196 will not get transferred during a "clone" operation. Options in
197 this file override options in all other configuration files.
198 .sp
199 On Plan 9 and Unix, most of this file will be ignored if it doesn\(aqt
200 belong to a trusted user or to a trusted group. See
201 \%\fBhg help config.trusted\fP\: for more details.
202 .sp
203 Per\-user configuration file(s) are for the user running Mercurial. Options
204 in these files apply to all Mercurial commands executed by this user in any
205 directory. Options in these files override per\-system and per\-installation
206 options.
207 .sp
208 Per\-installation configuration files are searched for in the
209 directory where Mercurial is installed. \fB<install\-root>\fP is the
210 parent directory of the \fBhg\fP executable (or symlink) being run.
211 .sp
212 For example, if installed in \fB/shared/tools/bin/hg\fP, Mercurial
213 will look in \fB/shared/tools/etc/mercurial/hgrc\fP. Options in these
214 files apply to all Mercurial commands executed by any user in any
215 directory.
216 .sp
217 Per\-installation configuration files are for the system on
218 which Mercurial is running. Options in these files apply to all
219 Mercurial commands executed by any user in any directory. Registry
220 keys contain PATH\-like strings, every part of which must reference
221 a \fBMercurial.ini\fP file or be a directory where \fB*.rc\fP files will
222 be read. Mercurial checks each of these locations in the specified
223 order until one or more configuration files are detected.
224 .sp
225 Per\-system configuration files are for the system on which Mercurial
226 is running. Options in these files apply to all Mercurial commands
227 executed by any user in any directory. Options in these files
228 override per\-installation options.
229 .sp
230 Mercurial comes with some default configuration. The default configuration
231 files are installed with Mercurial and will be overwritten on upgrades. Default
232 configuration files should never be edited by users or administrators but can
233 be overridden in other configuration files. So far the directory only contains
234 merge tool configuration but packagers can also put other default configuration
235 there.
236 .sp
237 On versions 5.7 and later, if share\-safe functionality is enabled,
238 shares will read config file of share source too.
239 \fI<share\-source/.hg/hgrc>\fP is read before reading \fI<repo/.hg/hgrc>\fP.
240 .sp
241 For configs which should not be shared, \fI<repo/.hg/hgrc\-not\-shared>\fP
242 should be used.
243 .SH SYNTAX
244 .sp
245 A configuration file consists of sections, led by a \fB[section]\fP header
246 and followed by \fBname = value\fP entries (sometimes called
247 \fBconfiguration keys\fP):
248 .sp
249 .nf
250 .ft C
251 [spam]
252 eggs=ham
253 green=
254 eggs
255 .ft P
256 .fi
257 .sp
258 Each line contains one entry. If the lines that follow are indented,
259 they are treated as continuations of that entry. Leading whitespace is
260 removed from values. Empty lines are skipped. Lines beginning with
261 \fB#\fP or \fB;\fP are ignored and may be used to provide comments.
262 .sp
263 Configuration keys can be set multiple times, in which case Mercurial
264 will use the value that was configured last. As an example:
265 .sp
266 .nf
267 .ft C
268 [spam]
269 eggs=large
270 ham=serrano
271 eggs=small
272 .ft P
273 .fi
274 .sp
275 This would set the configuration key named \fBeggs\fP to \fBsmall\fP.
276 .sp
277 It is also possible to define a section multiple times. A section can
278 be redefined on the same and/or on different configuration files. For
279 example:
280 .sp
281 .nf
282 .ft C
283 [foo]
284 eggs=large
285 ham=serrano
286 eggs=small
287
288 [bar]
289 eggs=ham
290 green=
291 eggs
292
293 [foo]
294 ham=prosciutto
295 eggs=medium
296 bread=toasted
297 .ft P
298 .fi
299 .sp
300 This would set the \fBeggs\fP, \fBham\fP, and \fBbread\fP configuration keys
301 of the \fBfoo\fP section to \fBmedium\fP, \fBprosciutto\fP, and \fBtoasted\fP,
302 respectively. As you can see there only thing that matters is the last
303 value that was set for each of the configuration keys.
304 .sp
305 If a configuration key is set multiple times in different
306 configuration files the final value will depend on the order in which
307 the different configuration files are read, with settings from earlier
308 paths overriding later ones as described on the \fBFiles\fP section
309 above.
310 .sp
311 A line of the form \fB%include file\fP will include \fBfile\fP into the
312 current configuration file. The inclusion is recursive, which means
313 that included files can include other files. Filenames are relative to
314 the configuration file in which the \fB%include\fP directive is found.
315 Environment variables and \fB~user\fP constructs are expanded in
316 \fBfile\fP. This lets you do something like:
317 .sp
318 .nf
319 .ft C
320 %include ~/.hgrc.d/$HOST.rc
321 .ft P
322 .fi
323 .sp
324 to include a different configuration file on each computer you use.
325 .sp
326 A line with \fB%unset name\fP will remove \fBname\fP from the current
327 section, if it has been set previously.
328 .sp
329 The values are either free\-form text strings, lists of text strings,
330 or Boolean values. Boolean values can be set to true using any of "1",
331 "yes", "true", or "on" and to false using "0", "no", "false", or "off"
332 (all case insensitive).
333 .sp
334 List values are separated by whitespace or comma, except when values are
335 placed in double quotation marks:
336 .sp
337 .nf
338 .ft C
339 allow_read = "John Doe, PhD", brian, betty
340 .ft P
341 .fi
342 .sp
343 Quotation marks can be escaped by prefixing them with a backslash. Only
344 quotation marks at the beginning of a word is counted as a quotation
345 (e.g., \fBfoo"bar baz\fP is the list of \fBfoo"bar\fP and \fBbaz\fP).
346 .SH SECTIONS
347 .sp
348 This section describes the different sections that may appear in a
349 Mercurial configuration file, the purpose of each section, its possible
350 keys, and their possible values.
351 .SS \fBalias\fP
352 .sp
353 Defines command aliases.
354 .sp
355 Aliases allow you to define your own commands in terms of other
356 commands (or aliases), optionally including arguments. Positional
357 arguments in the form of \fB$1\fP, \fB$2\fP, etc. in the alias definition
358 are expanded by Mercurial before execution. Positional arguments not
359 already used by \fB$N\fP in the definition are put at the end of the
360 command to be executed.
361 .sp
362 Alias definitions consist of lines of the form:
363 .sp
364 .nf
365 .ft C
366 <alias> = <command> [<argument>]...
367 .ft P
368 .fi
369 .sp
370 For example, this definition:
371 .sp
372 .nf
373 .ft C
374 latest = log \-\-limit 5
375 .ft P
376 .fi
377 .sp
378 creates a new command \fBlatest\fP that shows only the five most recent
379 changesets. You can define subsequent aliases using earlier ones:
380 .sp
381 .nf
382 .ft C
383 stable5 = latest \-b stable
384 .ft P
385 .fi
386 .IP Note
387 .
388 It is possible to create aliases with the same names as
389 existing commands, which will then override the original
390 definitions. This is almost always a bad idea!
391 .RE
392 .sp
393 An alias can start with an exclamation point (\fB!\fP) to make it a
394 shell alias. A shell alias is executed with the shell and will let you
395 run arbitrary commands. As an example,
396 .sp
397 .nf
398 .ft C
399 echo = !echo $@
400 .ft P
401 .fi
402 .sp
403 will let you do \fBhg echo foo\fP to have \fBfoo\fP printed in your
404 terminal. A better example might be:
405 .sp
406 .nf
407 .ft C
408 purge = !$HG status \-\-no\-status \-\-unknown \-0 re: | xargs \-0 rm \-f
409 .ft P
410 .fi
411 .sp
412 which will make \fBhg purge\fP delete all unknown files in the
413 repository in the same manner as the purge extension.
414 .sp
415 Positional arguments like \fB$1\fP, \fB$2\fP, etc. in the alias definition
416 expand to the command arguments. Unmatched arguments are
417 removed. \fB$0\fP expands to the alias name and \fB$@\fP expands to all
418 arguments separated by a space. \fB"$@"\fP (with quotes) expands to all
419 arguments quoted individually and separated by a space. These expansions
420 happen before the command is passed to the shell.
421 .sp
422 Shell aliases are executed in an environment where \fB$HG\fP expands to
423 the path of the Mercurial that was used to execute the alias. This is
424 useful when you want to call further Mercurial commands in a shell
425 alias, as was done above for the purge alias. In addition,
426 \fB$HG_ARGS\fP expands to the arguments given to Mercurial. In the \fBhg
427 echo foo\fP call above, \fB$HG_ARGS\fP would expand to \fBecho foo\fP.
428 .IP Note
429 .
430 Some global configuration options such as \fB\-R\fP are
431 processed before shell aliases and will thus not be passed to
432 aliases.
433 .RE
434 .SS \fBannotate\fP
435 .sp
436 Settings used when displaying file annotations. All values are
437 Booleans and default to False. See \%\fBhg help config.diff\fP\: for
438 related options for the diff command.
439 .INDENT 0.0
440 .TP
441 .B \fBignorews\fP
442 .sp
443 Ignore white space when comparing lines.
444 .TP
445 .B \fBignorewseol\fP
446 .sp
447 Ignore white space at the end of a line when comparing lines.
448 .TP
449 .B \fBignorewsamount\fP
450 .sp
451 Ignore changes in the amount of white space.
452 .TP
453 .B \fBignoreblanklines\fP
454 .sp
455 Ignore changes whose lines are all blank.
456 .UNINDENT
457 .SS \fBauth\fP
458 .sp
459 Authentication credentials and other authentication\-like configuration
460 for HTTP connections. This section allows you to store usernames and
461 passwords for use when logging \fIinto\fP HTTP servers. See
462 \%\fBhg help config.web\fP\: if you want to configure \fIwho\fP can login to
463 your HTTP server.
464 .sp
465 The following options apply to all hosts.
466 .INDENT 0.0
467 .TP
468 .B \fBcookiefile\fP
469 .sp
470 Path to a file containing HTTP cookie lines. Cookies matching a
471 host will be sent automatically.
472 .sp
473 The file format uses the Mozilla cookies.txt format, which defines cookies
474 on their own lines. Each line contains 7 fields delimited by the tab
475 character (domain, is_domain_cookie, path, is_secure, expires, name,
476 value). For more info, do an Internet search for "Netscape cookies.txt
477 format."
478 .sp
479 Note: the cookies parser does not handle port numbers on domains. You
480 will need to remove ports from the domain for the cookie to be recognized.
481 This could result in a cookie being disclosed to an unwanted server.
482 .sp
483 The cookies file is read\-only.
484 .UNINDENT
485 .sp
486 Other options in this section are grouped by name and have the following
487 format:
488 .sp
489 .nf
490 .ft C
491 <name>.<argument> = <value>
492 .ft P
493 .fi
494 .sp
495 where \fB<name>\fP is used to group arguments into authentication
496 entries. Example:
497 .sp
498 .nf
499 .ft C
500 foo.prefix = hg.intevation.de/mercurial
501 foo.username = foo
502 foo.password = bar
503 foo.schemes = http https
504
505 bar.prefix = secure.example.org
506 bar.key = path/to/file.key
507 bar.cert = path/to/file.cert
508 bar.schemes = https
509 .ft P
510 .fi
511 .sp
512 Supported arguments:
513 .INDENT 0.0
514 .TP
515 .B \fBprefix\fP
516 .sp
517 Either \fB*\fP or a URI prefix with or without the scheme part.
518 The authentication entry with the longest matching prefix is used
519 (where \fB*\fP matches everything and counts as a match of length
520 1). If the prefix doesn\(aqt include a scheme, the match is performed
521 against the URI with its scheme stripped as well, and the schemes
522 argument, q.v., is then subsequently consulted.
523 .TP
524 .B \fBusername\fP
525 .sp
526 Optional. Username to authenticate with. If not given, and the
527 remote site requires basic or digest authentication, the user will
528 be prompted for it. Environment variables are expanded in the
529 username letting you do \fBfoo.username = $USER\fP. If the URI
530 includes a username, only \fB[auth]\fP entries with a matching
531 username or without a username will be considered.
532 .TP
533 .B \fBpassword\fP
534 .sp
535 Optional. Password to authenticate with. If not given, and the
536 remote site requires basic or digest authentication, the user
537 will be prompted for it.
538 .TP
539 .B \fBkey\fP
540 .sp
541 Optional. PEM encoded client certificate key file. Environment
542 variables are expanded in the filename.
543 .TP
544 .B \fBcert\fP
545 .sp
546 Optional. PEM encoded client certificate chain file. Environment
547 variables are expanded in the filename.
548 .TP
549 .B \fBschemes\fP
550 .sp
551 Optional. Space separated list of URI schemes to use this
552 authentication entry with. Only used if the prefix doesn\(aqt include
553 a scheme. Supported schemes are http and https. They will match
554 static\-http and static\-https respectively, as well.
555 (default: https)
556 .UNINDENT
557 .sp
558 If no suitable authentication entry is found, the user is prompted
559 for credentials as usual if required by the remote.
560 .SS \fBcensor\fP
561 .INDENT 0.0
562 .TP
563 .B \fBpolicy\fP
564 .sp
565 Control how to react when accessing censored content.
566 Accepted value: "abort", "ignore". Defaults to abort.
567 .sp
568 A few informative commands such as \fBhg grep\fP will unconditionally ignore
569 censored data and merely report that it was encountered.
570 .UNINDENT
571 .SS \fBcmdserver\fP
572 .sp
573 Controls command server settings. (ADVANCED)
574 .INDENT 0.0
575 .TP
576 .B \fBmessage\-encodings\fP
577 .sp
578 List of encodings for the \fBm\fP (message) channel. The first encoding
579 supported by the server will be selected and advertised in the hello
580 message. This is useful only when \fBui.message\-output\fP is set to
581 \fBchannel\fP. Supported encodings are \fBcbor\fP.
582 .TP
583 .B \fBshutdown\-on\-interrupt\fP
584 .sp
585 If set to false, the server\(aqs main loop will continue running after
586 SIGINT received. \fBruncommand\fP requests can still be interrupted by
587 SIGINT. Close the write end of the pipe to shut down the server
588 process gracefully.
589 (default: True)
590 .UNINDENT
591 .SS \fBcolor\fP
592 .sp
593 Configure the Mercurial color mode. For details about how to define your custom
594 effect and style see \%\fBhg help color\fP\:.
595 .INDENT 0.0
596 .TP
597 .B \fBmode\fP
598 .sp
599 String: control the method used to output color. One of \fBauto\fP, \fBansi\fP,
600 \fBwin32\fP, \fBterminfo\fP or \fBdebug\fP. In auto mode, Mercurial will
601 use ANSI mode by default (or win32 mode prior to Windows 10) if it detects a
602 terminal. Any invalid value will disable color.
603 .TP
604 .B \fBpagermode\fP
605 .sp
606 String: optional override of \fBcolor.mode\fP used with pager.
607 .sp
608 On some systems, terminfo mode may cause problems when using
609 color with \fBless \-R\fP as a pager program. less with the \-R option
610 will only display ECMA\-48 color codes, and terminfo mode may sometimes
611 emit codes that less doesn\(aqt understand. You can work around this by
612 either using ansi mode (or auto mode), or by using less \-r (which will
613 pass through all terminal control codes, not just color control
614 codes).
615 .sp
616 On some systems (such as MSYS in Windows), the terminal may support
617 a different color mode than the pager program.
618 .UNINDENT
619 .SS \fBcommands\fP
620 .INDENT 0.0
621 .TP
622 .B \fBcommit.post\-status\fP
623 .sp
624 Show status of files in the working directory after successful commit.
625 (default: False)
626 .TP
627 .B \fBmerge.require\-rev\fP
628 .sp
629 Require that the revision to merge the current commit with be specified on
630 the command line. If this is enabled and a revision is not specified, the
631 command aborts.
632 (default: False)
633 .TP
634 .B \fBpush.require\-revs\fP
635 .sp
636 Require revisions to push be specified using one or more mechanisms such as
637 specifying them positionally on the command line, using \fB\-r\fP, \fB\-b\fP,
638 and/or \fB\-B\fP on the command line, or using \fBpaths.<path>:pushrev\fP in the
639 configuration. If this is enabled and revisions are not specified, the
640 command aborts.
641 (default: False)
642 .TP
643 .B \fBresolve.confirm\fP
644 .sp
645 Confirm before performing action if no filename is passed.
646 (default: False)
647 .TP
648 .B \fBresolve.explicit\-re\-merge\fP
649 .sp
650 Require uses of \fBhg resolve\fP to specify which action it should perform,
651 instead of re\-merging files by default.
652 (default: False)
653 .TP
654 .B \fBresolve.mark\-check\fP
655 .sp
656 Determines what level of checking \%\fBhg resolve \-\-mark\fP\: will perform before
657 marking files as resolved. Valid values are \fBnone\(ga, \(ga\(gawarn\fP, and
658 \fBabort\fP. \fBwarn\fP will output a warning listing the file(s) that still
659 have conflict markers in them, but will still mark everything resolved.
660 \fBabort\fP will output the same warning but will not mark things as resolved.
661 If \-\-all is passed and this is set to \fBabort\fP, only a warning will be
662 shown (an error will not be raised).
663 (default: \fBnone\fP)
664 .TP
665 .B \fBstatus.relative\fP
666 .sp
667 Make paths in \%\fBhg status\fP\: output relative to the current directory.
668 (default: False)
669 .TP
670 .B \fBstatus.terse\fP
671 .sp
672 Default value for the \-\-terse flag, which condenses status output.
673 (default: empty)
674 .TP
675 .B \fBupdate.check\fP
676 .sp
677 Determines what level of checking \%\fBhg update\fP\: will perform before moving
678 to a destination revision. Valid values are \fBabort\fP, \fBnone\fP,
679 \fBlinear\fP, and \fBnoconflict\fP.
680 .INDENT 7.0
681 .IP \(bu 2
682 .
683 \fBabort\fP always fails if the working directory has uncommitted changes.
684 .IP \(bu 2
685 .
686 \fBnone\fP performs no checking, and may result in a merge with uncommitted changes.
687 .IP \(bu 2
688 .
689 \fBlinear\fP allows any update as long as it follows a straight line in the
690 revision history, and may trigger a merge with uncommitted changes.
691 .IP \(bu 2
692 .
693 \fBnoconflict\fP will allow any update which would not trigger a merge with
694 uncommitted changes, if any are present.
695 .UNINDENT
696 .sp
697 (default: \fBlinear\fP)
698 .TP
699 .B \fBupdate.requiredest\fP
700 .sp
701 Require that the user pass a destination when running \%\fBhg update\fP\:.
702 For example, \%\fBhg update .::\fP\: will be allowed, but a plain \%\fBhg update\fP\:
703 will be disallowed.
704 (default: False)
705 .UNINDENT
706 .SS \fBcommittemplate\fP
707 .INDENT 0.0
708 .TP
709 .B \fBchangeset\fP
710 .sp
711 String: configuration in this section is used as the template to
712 customize the text shown in the editor when committing.
713 .UNINDENT
714 .sp
715 In addition to pre\-defined template keywords, commit log specific one
716 below can be used for customization:
717 .INDENT 0.0
718 .TP
719 .B \fBextramsg\fP
720 .sp
721 String: Extra message (typically \(aqLeave message empty to abort
722 commit.\(aq). This may be changed by some commands or extensions.
723 .UNINDENT
724 .sp
725 For example, the template configuration below shows as same text as
726 one shown by default:
727 .sp
728 .nf
729 .ft C
730 [committemplate]
731 changeset = {desc}\en\en
732 HG: Enter commit message. Lines beginning with \(aqHG:\(aq are removed.
733 HG: {extramsg}
734 HG: \-\-
735 HG: user: {author}\en{ifeq(p2rev, "\-1", "",
736 "HG: branch merge\en")
737 }HG: branch \(aq{branch}\(aq\en{if(activebookmark,
738 "HG: bookmark \(aq{activebookmark}\(aq\en") }{subrepos %
739 "HG: subrepo {subrepo}\en" }{file_adds %
740 "HG: added {file}\en" }{file_mods %
741 "HG: changed {file}\en" }{file_dels %
742 "HG: removed {file}\en" }{if(files, "",
743 "HG: no files changed\en")}
744 .ft P
745 .fi
746 .INDENT 0.0
747 .TP
748 .B \fBdiff()\fP
749 .sp
750 String: show the diff (see \%\fBhg help templates\fP\: for detail)
751 .UNINDENT
752 .sp
753 Sometimes it is helpful to show the diff of the changeset in the editor without
754 having to prefix \(aqHG: \(aq to each line so that highlighting works correctly. For
755 this, Mercurial provides a special string which will ignore everything below
756 it:
757 .sp
758 .nf
759 .ft C
760 HG: \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- >8 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
761 .ft P
762 .fi
763 .sp
764 For example, the template configuration below will show the diff below the
765 extra message:
766 .sp
767 .nf
768 .ft C
769 [committemplate]
770 changeset = {desc}\en\en
771 HG: Enter commit message. Lines beginning with \(aqHG:\(aq are removed.
772 HG: {extramsg}
773 HG: \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- >8 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
774 HG: Do not touch the line above.
775 HG: Everything below will be removed.
776 {diff()}
777 .ft P
778 .fi
779 .IP Note
780 .
781 For some problematic encodings (see \%\fBhg help win32mbcs\fP\: for
782 detail), this customization should be configured carefully, to
783 avoid showing broken characters.
784 .sp
785 For example, if a multibyte character ending with backslash (0x5c) is
786 followed by the ASCII character \(aqn\(aq in the customized template,
787 the sequence of backslash and \(aqn\(aq is treated as line\-feed unexpectedly
788 (and the multibyte character is broken, too).
789 .RE
790 .sp
791 Customized template is used for commands below (\fB\-\-edit\fP may be
792 required):
793 .INDENT 0.0
794 .IP \(bu 2
795 .
796 \%\fBhg backout\fP\:
797 .IP \(bu 2
798 .
799 \%\fBhg commit\fP\:
800 .IP \(bu 2
801 .
802 \%\fBhg fetch\fP\: (for merge commit only)
803 .IP \(bu 2
804 .
805 \%\fBhg graft\fP\:
806 .IP \(bu 2
807 .
808 \%\fBhg histedit\fP\:
809 .IP \(bu 2
810 .
811 \%\fBhg import\fP\:
812 .IP \(bu 2
813 .
814 \%\fBhg qfold\fP\:, \%\fBhg qnew\fP\: and \%\fBhg qrefresh\fP\:
815 .IP \(bu 2
816 .
817 \%\fBhg rebase\fP\:
818 .IP \(bu 2
819 .
820 \%\fBhg shelve\fP\:
821 .IP \(bu 2
822 .
823 \%\fBhg sign\fP\:
824 .IP \(bu 2
825 .
826 \%\fBhg tag\fP\:
827 .IP \(bu 2
828 .
829 \%\fBhg transplant\fP\:
830 .UNINDENT
831 .sp
832 Configuring items below instead of \fBchangeset\fP allows showing
833 customized message only for specific actions, or showing different
834 messages for each action.
835 .INDENT 0.0
836 .IP \(bu 2
837 .
838 \fBchangeset.backout\fP for \%\fBhg backout\fP\:
839 .IP \(bu 2
840 .
841 \fBchangeset.commit.amend.merge\fP for \%\fBhg commit \-\-amend\fP\: on merges
842 .IP \(bu 2
843 .
844 \fBchangeset.commit.amend.normal\fP for \%\fBhg commit \-\-amend\fP\: on other
845 .IP \(bu 2
846 .
847 \fBchangeset.commit.normal.merge\fP for \%\fBhg commit\fP\: on merges
848 .IP \(bu 2
849 .
850 \fBchangeset.commit.normal.normal\fP for \%\fBhg commit\fP\: on other
851 .IP \(bu 2
852 .
853 \fBchangeset.fetch\fP for \%\fBhg fetch\fP\: (impling merge commit)
854 .IP \(bu 2
855 .
856 \fBchangeset.gpg.sign\fP for \%\fBhg sign\fP\:
857 .IP \(bu 2
858 .
859 \fBchangeset.graft\fP for \%\fBhg graft\fP\:
860 .IP \(bu 2
861 .
862 \fBchangeset.histedit.edit\fP for \fBedit\fP of \%\fBhg histedit\fP\:
863 .IP \(bu 2
864 .
865 \fBchangeset.histedit.fold\fP for \fBfold\fP of \%\fBhg histedit\fP\:
866 .IP \(bu 2
867 .
868 \fBchangeset.histedit.mess\fP for \fBmess\fP of \%\fBhg histedit\fP\:
869 .IP \(bu 2
870 .
871 \fBchangeset.histedit.pick\fP for \fBpick\fP of \%\fBhg histedit\fP\:
872 .IP \(bu 2
873 .
874 \fBchangeset.import.bypass\fP for \%\fBhg import \-\-bypass\fP\:
875 .IP \(bu 2
876 .
877 \fBchangeset.import.normal.merge\fP for \%\fBhg import\fP\: on merges
878 .IP \(bu 2
879 .
880 \fBchangeset.import.normal.normal\fP for \%\fBhg import\fP\: on other
881 .IP \(bu 2
882 .
883 \fBchangeset.mq.qnew\fP for \%\fBhg qnew\fP\:
884 .IP \(bu 2
885 .
886 \fBchangeset.mq.qfold\fP for \%\fBhg qfold\fP\:
887 .IP \(bu 2
888 .
889 \fBchangeset.mq.qrefresh\fP for \%\fBhg qrefresh\fP\:
890 .IP \(bu 2
891 .
892 \fBchangeset.rebase.collapse\fP for \%\fBhg rebase \-\-collapse\fP\:
893 .IP \(bu 2
894 .
895 \fBchangeset.rebase.merge\fP for \%\fBhg rebase\fP\: on merges
896 .IP \(bu 2
897 .
898 \fBchangeset.rebase.normal\fP for \%\fBhg rebase\fP\: on other
899 .IP \(bu 2
900 .
901 \fBchangeset.shelve.shelve\fP for \%\fBhg shelve\fP\:
902 .IP \(bu 2
903 .
904 \fBchangeset.tag.add\fP for \%\fBhg tag\fP\: without \fB\-\-remove\fP
905 .IP \(bu 2
906 .
907 \fBchangeset.tag.remove\fP for \%\fBhg tag \-\-remove\fP\:
908 .IP \(bu 2
909 .
910 \fBchangeset.transplant.merge\fP for \%\fBhg transplant\fP\: on merges
911 .IP \(bu 2
912 .
913 \fBchangeset.transplant.normal\fP for \%\fBhg transplant\fP\: on other
914 .UNINDENT
915 .sp
916 These dot\-separated lists of names are treated as hierarchical ones.
917 For example, \fBchangeset.tag.remove\fP customizes the commit message
918 only for \%\fBhg tag \-\-remove\fP\:, but \fBchangeset.tag\fP customizes the
919 commit message for \%\fBhg tag\fP\: regardless of \fB\-\-remove\fP option.
920 .sp
921 When the external editor is invoked for a commit, the corresponding
922 dot\-separated list of names without the \fBchangeset.\fP prefix
923 (e.g. \fBcommit.normal.normal\fP) is in the \fBHGEDITFORM\fP environment
924 variable.
925 .sp
926 In this section, items other than \fBchangeset\fP can be referred from
927 others. For example, the configuration to list committed files up
928 below can be referred as \fB{listupfiles}\fP:
929 .sp
930 .nf
931 .ft C
932 [committemplate]
933 listupfiles = {file_adds %
934 "HG: added {file}\en" }{file_mods %
935 "HG: changed {file}\en" }{file_dels %
936 "HG: removed {file}\en" }{if(files, "",
937 "HG: no files changed\en")}
938 .ft P
939 .fi
940 .SS \fBdecode/encode\fP
941 .sp
942 Filters for transforming files on checkout/checkin. This would
943 typically be used for newline processing or other
944 localization/canonicalization of files.
945 .sp
946 Filters consist of a filter pattern followed by a filter command.
947 Filter patterns are globs by default, rooted at the repository root.
948 For example, to match any file ending in \fB.txt\fP in the root
949 directory only, use the pattern \fB*.txt\fP. To match any file ending
950 in \fB.c\fP anywhere in the repository, use the pattern \fB**.c\fP.
951 For each file only the first matching filter applies.
952 .sp
953 The filter command can start with a specifier, either \fBpipe:\fP or
954 \fBtempfile:\fP. If no specifier is given, \fBpipe:\fP is used by default.
955 .sp
956 A \fBpipe:\fP command must accept data on stdin and return the transformed
957 data on stdout.
958 .sp
959 Pipe example:
960 .sp
961 .nf
962 .ft C
963 [encode]
964 # uncompress gzip files on checkin to improve delta compression
965 # note: not necessarily a good idea, just an example
966 *.gz = pipe: gunzip
967
968 [decode]
969 # recompress gzip files when writing them to the working dir (we
970 # can safely omit "pipe:", because it\(aqs the default)
971 *.gz = gzip
972 .ft P
973 .fi
974 .sp
975 A \fBtempfile:\fP command is a template. The string \fBINFILE\fP is replaced
976 with the name of a temporary file that contains the data to be
977 filtered by the command. The string \fBOUTFILE\fP is replaced with the name
978 of an empty temporary file, where the filtered data must be written by
979 the command.
980 .IP Note
981 .
982 The tempfile mechanism is recommended for Windows systems,
983 where the standard shell I/O redirection operators often have
984 strange effects and may corrupt the contents of your files.
985 .RE
986 .sp
987 This filter mechanism is used internally by the \fBeol\fP extension to
988 translate line ending characters between Windows (CRLF) and Unix (LF)
989 format. We suggest you use the \fBeol\fP extension for convenience.
990 .SS \fBdefaults\fP
991 .sp
992 (defaults are deprecated. Don\(aqt use them. Use aliases instead.)
993 .sp
994 Use the \fB[defaults]\fP section to define command defaults, i.e. the
995 default options/arguments to pass to the specified commands.
996 .sp
997 The following example makes \%\fBhg log\fP\: run in verbose mode, and
998 \%\fBhg status\fP\: show only the modified files, by default:
999 .sp
1000 .nf
1001 .ft C
1002 [defaults]
1003 log = \-v
1004 status = \-m
1005 .ft P
1006 .fi
1007 .sp
1008 The actual commands, instead of their aliases, must be used when
1009 defining command defaults. The command defaults will also be applied
1010 to the aliases of the commands defined.
1011 .SS \fBdiff\fP
1012 .sp
1013 Settings used when displaying diffs. Everything except for \fBunified\fP
1014 is a Boolean and defaults to False. See \%\fBhg help config.annotate\fP\:
1015 for related options for the annotate command.
1016 .INDENT 0.0
1017 .TP
1018 .B \fBgit\fP
1019 .sp
1020 Use git extended diff format.
1021 .TP
1022 .B \fBmerge\fP
1023 .sp
1024 Show a "merge diff" instead of defaulting to a diff against
1025 the working directory\(aqs first parent. A "merge diff" will diff against the
1026 conflict regions in the merge, which is very useful to make sense of what
1027 the merge commit itself has done.
1028 .TP
1029 .B \fBnobinary\fP
1030 .sp
1031 Omit git binary patches.
1032 .TP
1033 .B \fBnodates\fP
1034 .sp
1035 Don\(aqt include dates in diff headers.
1036 .TP
1037 .B \fBnoprefix\fP
1038 .sp
1039 Omit \(aqa/\(aq and \(aqb/\(aq prefixes from filenames. Ignored in plain mode.
1040 .TP
1041 .B \fBshowfunc\fP
1042 .sp
1043 Show which function each change is in.
1044 .TP
1045 .B \fBignorews\fP
1046 .sp
1047 Ignore white space when comparing lines.
1048 .TP
1049 .B \fBignorewsamount\fP
1050 .sp
1051 Ignore changes in the amount of white space.
1052 .TP
1053 .B \fBignoreblanklines\fP
1054 .sp
1055 Ignore changes whose lines are all blank.
1056 .TP
1057 .B \fBunified\fP
1058 .sp
1059 Number of lines of context to show.
1060 .TP
1061 .B \fBword\-diff\fP
1062 .sp
1063 Highlight changed words.
1064 .UNINDENT
1065 .SS \fBemail\fP
1066 .sp
1067 Settings for extensions that send email messages.
1068 .INDENT 0.0
1069 .TP
1070 .B \fBfrom\fP
1071 .sp
1072 Optional. Email address to use in "From" header and SMTP envelope
1073 of outgoing messages.
1074 .TP
1075 .B \fBto\fP
1076 .sp
1077 Optional. Comma\-separated list of recipients\(aq email addresses.
1078 .TP
1079 .B \fBcc\fP
1080 .sp
1081 Optional. Comma\-separated list of carbon copy recipients\(aq
1082 email addresses.
1083 .TP
1084 .B \fBbcc\fP
1085 .sp
1086 Optional. Comma\-separated list of blind carbon copy recipients\(aq
1087 email addresses.
1088 .TP
1089 .B \fBmethod\fP
1090 .sp
1091 Optional. Method to use to send email messages. If value is \fBsmtp\fP
1092 (default), use SMTP (see the \fB[smtp]\fP section for configuration).
1093 Otherwise, use as name of program to run that acts like sendmail
1094 (takes \fB\-f\fP option for sender, list of recipients on command line,
1095 message on stdin). Normally, setting this to \fBsendmail\fP or
1096 \fB/usr/sbin/sendmail\fP is enough to use sendmail to send messages.
1097 .TP
1098 .B \fBcharsets\fP
1099 .sp
1100 Optional. Comma\-separated list of character sets considered
1101 convenient for recipients. Addresses, headers, and parts not
1102 containing patches of outgoing messages will be encoded in the
1103 first character set to which conversion from local encoding
1104 (\fB$HGENCODING\fP, \fBui.fallbackencoding\fP) succeeds. If correct
1105 conversion fails, the text in question is sent as is.
1106 (default: \(aq\(aq)
1107 .sp
1108 Order of outgoing email character sets:
1109 .INDENT 7.0
1110 .IP 1. 3
1111 .
1112 \fBus\-ascii\fP: always first, regardless of settings
1113 .IP 2. 3
1114 .
1115 \fBemail.charsets\fP: in order given by user
1116 .IP 3. 3
1117 .
1118 \fBui.fallbackencoding\fP: if not in email.charsets
1119 .IP 4. 3
1120 .
1121 \fB$HGENCODING\fP: if not in email.charsets
1122 .IP 5. 3
1123 .
1124 \fButf\-8\fP: always last, regardless of settings
1125 .UNINDENT
1126 .UNINDENT
1127 .sp
1128 Email example:
1129 .sp
1130 .nf
1131 .ft C
1132 [email]
1133 from = Joseph User <[email protected]>
1134 method = /usr/sbin/sendmail
1135 # charsets for western Europeans
1136 # us\-ascii, utf\-8 omitted, as they are tried first and last
1137 charsets = iso\-8859\-1, iso\-8859\-15, windows\-1252
1138 .ft P
1139 .fi
1140 .SS \fBextensions\fP
1141 .sp
1142 Mercurial has an extension mechanism for adding new features. To
1143 enable an extension, create an entry for it in this section.
1144 .sp
1145 If you know that the extension is already in Python\(aqs search path,
1146 you can give the name of the module, followed by \fB=\fP, with nothing
1147 after the \fB=\fP.
1148 .sp
1149 Otherwise, give a name that you choose, followed by \fB=\fP, followed by
1150 the path to the \fB.py\fP file (including the file name extension) that
1151 defines the extension.
1152 .sp
1153 To explicitly disable an extension that is enabled in an hgrc of
1154 broader scope, prepend its path with \fB!\fP, as in \fBfoo = !/ext/path\fP
1155 or \fBfoo = !\fP when path is not supplied.
1156 .sp
1157 Example for \fB~/.hgrc\fP:
1158 .sp
1159 .nf
1160 .ft C
1161 [extensions]
1162 # (the churn extension will get loaded from Mercurial\(aqs path)
1163 churn =
1164 # (this extension will get loaded from the file specified)
1165 myfeature = ~/.hgext/myfeature.py
1166 .ft P
1167 .fi
1168 .sp
1169 If an extension fails to load, a warning will be issued, and Mercurial will
1170 proceed. To enforce that an extension must be loaded, one can set the \fIrequired\fP
1171 suboption in the config:
1172 .sp
1173 .nf
1174 .ft C
1175 [extensions]
1176 myfeature = ~/.hgext/myfeature.py
1177 myfeature:required = yes
1178 .ft P
1179 .fi
1180 .sp
1181 To debug extension loading issue, one can add \fI\-\-traceback\fP to their mercurial
1182 invocation.
1183 .sp
1184 A default setting can we set using the special \fI*\fP extension key:
1185 .sp
1186 .nf
1187 .ft C
1188 [extensions]
1189 *:required = yes
1190 myfeature = ~/.hgext/myfeature.py
1191 rebase=
1192 .ft P
1193 .fi
1194 .SS \fBformat\fP
1195 .sp
1196 Configuration that controls the repository format. Newer format options are more
1197 powerful, but incompatible with some older versions of Mercurial.
1198 .sp
1199 Format options are considered at repository initialization only. You need to
1200 make a new clone for config changes to be taken into account.
1201 .sp
1202 For more details about repository format and version compatibility, see
1203 \%https://www.mercurial\-scm.org/wiki/MissingRequirement\:
1204 .INDENT 0.0
1205 .TP
1206 .B \fBusegeneraldelta\fP
1207 .sp
1208 Enable or disable the "generaldelta" repository format which improves
1209 repository compression by allowing "revlog" to store deltas against
1210 arbitrary revisions instead of the previously stored one. This provides
1211 significant improvement for repositories with branches.
1212 .sp
1213 Repositories with this on\-disk format require Mercurial version 1.9.
1214 .sp
1215 Enabled by default. Implied by \fIsparse\-revlog\fP
1216 .TP
1217 .B \fBdotencode\fP
1218 .sp
1219 Enable or disable the "dotencode" repository format which enhances
1220 the "fncache" repository format (which has to be enabled to use
1221 dotencode) to avoid issues with filenames starting with "._" on
1222 Mac OS X and spaces on Windows.
1223 .sp
1224 Repositories with this on\-disk format require Mercurial version 1.7.
1225 .sp
1226 Enabled by default.
1227 .TP
1228 .B \fBusefncache\fP
1229 .sp
1230 Enable or disable the "fncache" repository format which enhances
1231 the "store" repository format (which has to be enabled to use
1232 fncache) to allow longer filenames and avoids using Windows
1233 reserved names, e.g. "nul".
1234 .sp
1235 Repositories with this on\-disk format require Mercurial version 1.1.
1236 .sp
1237 Enabled by default.
1238 .TP
1239 .B \fBuse\-delta\-info\-flags\fP
1240 .sp
1241 Store more information through flags in the revlog\(aqs index.
1242 .sp
1243 These flags allow for more efficient data access, data exchange and
1244 data storage in general.
1245 .sp
1246 In particular, one can expect better performance for the following categories of
1247 commands for repositories using this format can expect better performance than
1248 ones using older formats:
1249 .INDENT 7.0
1250 .IP \(bu 2
1251 .
1252 \fIhg status \-\-copies \-\-rev X\fP
1253 .IP \(bu 2
1254 .
1255 \fIhg diff\fP
1256 .IP \(bu 2
1257 .
1258 \fIhg merge\fP
1259 .IP \(bu 2
1260 .
1261 \fIhg clone\fP
1262 .IP \(bu 2
1263 .
1264 \fIhg pull\fP
1265 .IP \(bu 2
1266 .
1267 \fIhg push\fP
1268 .IP \(bu 2
1269 .
1270 \fIhg unbundle\fP
1271 .UNINDENT
1272 .TP
1273 .B \fBuse\-dirstate\-v2\fP
1274 .sp
1275 Enable or disable the experimental "dirstate\-v2" feature. The dirstate
1276 functionality is shared by all commands interacting with the working copy.
1277 The new version is more robust, faster and stores more information.
1278 .sp
1279 The performance\-improving version of this feature is currently only
1280 implemented in Rust (see \%\fBhg help rust\fP\:), so people not using a version of
1281 Mercurial compiled with the Rust parts might actually suffer some slowdown.
1282 For this reason, such versions will by default refuse to access repositories
1283 with "dirstate\-v2" enabled.
1284 .sp
1285 This behavior can be adjusted via configuration: check
1286 \%\fBhg help config.storage.dirstate\-v2.slow\-path\fP\: for details.
1287 .sp
1288 Repositories with this on\-disk format require Mercurial 6.0 or above.
1289 .sp
1290 By default this format variant is disabled if the fast implementation is not
1291 available, and enabled by default if the fast implementation is available.
1292 .sp
1293 To accomodate installations of Mercurial without the fast implementation,
1294 you can downgrade your repository. To do so run the following command:
1295 .sp
1296 .nf
1297 .ft C
1298 $ hg debugupgraderepo \e
1299 \-\-run \e
1300 \-\-config format.use\-dirstate\-v2=False \e
1301 \-\-config storage.dirstate\-v2.slow\-path=allow
1302 .ft P
1303 .fi
1304 .sp
1305 For a more comprehensive guide, see \%\fBhg help internals.dirstate\-v2\fP\:.
1306 .TP
1307 .B \fBuse\-dirstate\-v2.automatic\-upgrade\-of\-mismatching\-repositories\fP
1308 .sp
1309 When enabled, an automatic upgrade will be triggered when a repository format
1310 does not match its \fIuse\-dirstate\-v2\fP config.
1311 .sp
1312 This is an advanced behavior that most users will not need. We recommend you
1313 don\(aqt use this unless you are a seasoned administrator of a Mercurial install
1314 base.
1315 .sp
1316 Automatic upgrade means that any process accessing the repository will
1317 upgrade the repository format to use \fIdirstate\-v2\fP. This only triggers if a
1318 change is needed. This also applies to operations that would have been
1319 read\-only (like hg status).
1320 .sp
1321 If the repository cannot be locked, the automatic\-upgrade operation will be
1322 skipped. The next operation will attempt it again.
1323 .sp
1324 This configuration will apply for moves in any direction, either adding the
1325 \fIdirstate\-v2\fP format if \fIformat.use\-dirstate\-v2=yes\fP or removing the
1326 \fIdirstate\-v2\fP requirement if \fIformat.use\-dirstate\-v2=no\fP. So we recommend
1327 setting both this value and \fIformat.use\-dirstate\-v2\fP at the same time.
1328 .TP
1329 .B \fBuse\-dirstate\-v2.automatic\-upgrade\-of\-mismatching\-repositories:quiet\fP
1330 .sp
1331 Hide message when performing such automatic upgrade.
1332 .TP
1333 .B \fBuse\-dirstate\-tracked\-hint\fP
1334 .sp
1335 Enable or disable the writing of "tracked key" file alongside
1336 the dirstate. (default to disabled)
1337 .sp
1338 That "tracked\-hint" can help external automations to detect changes to
1339 the set of tracked files. (i.e the result of \(aqhg files\(aq or \(aqhg status
1340 \-macd\(aq)
1341 .sp
1342 The tracked\-hint is written in a new \(aq.hg/dirstate\-tracked\-hint\(aq. That
1343 file contains two lines: \- the first line is the file version
1344 (currently: 1), \- the second line contains the "tracked\-hint". That
1345 file is written right after the dirstate is written.
1346 .sp
1347 The tracked\-hint changes whenever the set of file tracked in the
1348 dirstate changes. The general idea is: \- if the hint is identical, the
1349 set of tracked file SHOULD be identical, \- if the hint is different,
1350 the set of tracked file MIGHT be different.
1351 .sp
1352 The "hint is identical" case uses \(aqSHOULD\(aq as the dirstate and the
1353 hint file are two distinct files and therefore that cannot be read or
1354 written to in an atomic way. If the key is identical, nothing
1355 garantees that the dirstate is not updated right after the hint file.
1356 This is considered a negligible limitation for the intended usecase.
1357 It is actually possible to prevent this race by taking the repository
1358 lock during read operations.
1359 .sp
1360 They are two "ways" to use this feature:
1361 .sp
1362 1) monitoring changes to the \(aq.hg/dirstate\-tracked\-hint\(aq, if the file
1363 changes, the tracked set might have changed.
1364 .INDENT 7.0
1365 .IP 2. 3
1366 .
1367 storing the value and comparing it to a later value.
1368 .UNINDENT
1369 .TP
1370 .B \fBuse\-dirstate\-tracked\-hint.automatic\-upgrade\-of\-mismatching\-repositories\fP
1371 .sp
1372 When enabled, an automatic upgrade will be triggered when a repository format
1373 does not match its \fIuse\-dirstate\-tracked\-hint\fP config.
1374 .sp
1375 This is an advanced behavior that most users will not need. We recommend you
1376 don\(aqt use this unless you are a seasoned administrator of a Mercurial install
1377 base.
1378 .sp
1379 Automatic upgrade means that any process accessing the repository will
1380 upgrade the repository format to use \fIdirstate\-tracked\-hint\fP. This only
1381 triggers if a change is needed. This also applies to operations that would
1382 have been read\-only (like hg status).
1383 .sp
1384 If the repository cannot be locked, the automatic\-upgrade operation will be
1385 skipped. The next operation will attempt it again.
1386 .sp
1387 This configuration will apply for moves in any direction, either adding the
1388 \fIdirstate\-tracked\-hint\fP format if \fIformat.use\-dirstate\-tracked\-hint=yes\fP or
1389 removing the \fIdirstate\-tracked\-hint\fP requirement if
1390 \fIformat.use\-dirstate\-tracked\-hint=no\fP. So we recommend setting both this
1391 value and \fIformat.use\-dirstate\-tracked\-hint\fP at the same time.
1392 .TP
1393 .B \fBuse\-dirstate\-tracked\-hint.automatic\-upgrade\-of\-mismatching\-repositories:quiet\fP
1394 .sp
1395 Hide message when performing such automatic upgrade.
1396 .TP
1397 .B \fBuse\-persistent\-nodemap\fP
1398 .sp
1399 Enable or disable the "persistent\-nodemap" feature which improves
1400 performance if the Rust extensions are available.
1401 .sp
1402 The "persistent\-nodemap" persist the "node \-> rev" on disk removing the
1403 need to dynamically build that mapping for each Mercurial invocation. This
1404 significantly reduces the startup cost of various local and server\-side
1405 operation for larger repositories.
1406 .sp
1407 The performance\-improving version of this feature is currently only
1408 implemented in Rust (see \%\fBhg help rust\fP\:), so people not using a version of
1409 Mercurial compiled with the Rust parts might actually suffer some slowdown.
1410 For this reason, such versions will by default refuse to access repositories
1411 with "persistent\-nodemap".
1412 .sp
1413 This behavior can be adjusted via configuration: check
1414 \%\fBhg help config.storage.revlog.persistent\-nodemap.slow\-path\fP\: for details.
1415 .sp
1416 Repositories with this on\-disk format require Mercurial 5.4 or above.
1417 .sp
1418 By default this format variant is disabled if the fast implementation is not
1419 available, and enabled by default if the fast implementation is available.
1420 .sp
1421 To accomodate installations of Mercurial without the fast implementation,
1422 you can downgrade your repository. To do so run the following command:
1423 .sp
1424 .nf
1425 .ft C
1426 $ hg debugupgraderepo \e
1427 \-\-run \e
1428 \-\-config format.use\-persistent\-nodemap=False \e
1429 \-\-config storage.revlog.persistent\-nodemap.slow\-path=allow
1430 .ft P
1431 .fi
1432 .TP
1433 .B \fBuse\-share\-safe\fP
1434 .sp
1435 Enforce "safe" behaviors for all "shares" that access this repository.
1436 .sp
1437 With this feature, "shares" using this repository as a source will:
1438 .INDENT 7.0
1439 .IP \(bu 2
1440 .
1441 read the source repository\(aqs configuration (\fI<source>/.hg/hgrc\fP).
1442 .IP \(bu 2
1443 .
1444 read and use the source repository\(aqs "requirements"
1445 (except the working copy specific one).
1446 .UNINDENT
1447 .sp
1448 Without this feature, "shares" using this repository as a source will:
1449 .INDENT 7.0
1450 .IP \(bu 2
1451 .
1452 keep tracking the repository "requirements" in the share only, ignoring
1453 the source "requirements", possibly diverging from them.
1454 .IP \(bu 2
1455 .
1456 ignore source repository config. This can create problems, like silently
1457 ignoring important hooks.
1458 .UNINDENT
1459 .sp
1460 Beware that existing shares will not be upgraded/downgraded, and by
1461 default, Mercurial will refuse to interact with them until the mismatch
1462 is resolved. See \%\fBhg help config.share.safe\-mismatch.source\-safe\fP\: and
1463 \%\fBhg help config.share.safe\-mismatch.source\-not\-safe\fP\: for details.
1464 .sp
1465 Introduced in Mercurial 5.7.
1466 .sp
1467 Enabled by default in Mercurial 6.1.
1468 .TP
1469 .B \fBuse\-share\-safe.automatic\-upgrade\-of\-mismatching\-repositories\fP
1470 .sp
1471 When enabled, an automatic upgrade will be triggered when a repository format
1472 does not match its \fIuse\-share\-safe\fP config.
1473 .sp
1474 This is an advanced behavior that most users will not need. We recommend you
1475 don\(aqt use this unless you are a seasoned administrator of a Mercurial install
1476 base.
1477 .sp
1478 Automatic upgrade means that any process accessing the repository will
1479 upgrade the repository format to use \fIshare\-safe\fP. This only triggers if a
1480 change is needed. This also applies to operation that would have been
1481 read\-only (like hg status).
1482 .sp
1483 If the repository cannot be locked, the automatic\-upgrade operation will be
1484 skipped. The next operation will attempt it again.
1485 .sp
1486 This configuration will apply for moves in any direction, either adding the
1487 \fIshare\-safe\fP format if \fIformat.use\-share\-safe=yes\fP or removing the
1488 \fIshare\-safe\fP requirement if \fIformat.use\-share\-safe=no\fP. So we recommend
1489 setting both this value and \fIformat.use\-share\-safe\fP at the same time.
1490 .TP
1491 .B \fBuse\-share\-safe.automatic\-upgrade\-of\-mismatching\-repositories:quiet\fP
1492 .sp
1493 Hide message when performing such automatic upgrade.
1494 .TP
1495 .B \fBusestore\fP
1496 .sp
1497 Enable or disable the "store" repository format which improves
1498 compatibility with systems that fold case or otherwise mangle
1499 filenames. Disabling this option will allow you to store longer filenames
1500 in some situations at the expense of compatibility.
1501 .sp
1502 Repositories with this on\-disk format require Mercurial version 0.9.4.
1503 .sp
1504 Enabled by default.
1505 .TP
1506 .B \fBsparse\-revlog\fP
1507 .sp
1508 Enable or disable the \fBsparse\-revlog\fP delta strategy. This format improves
1509 delta re\-use inside revlog. For very branchy repositories, it results in a
1510 smaller store. For repositories with many revisions, it also helps
1511 performance (by using shortened delta chains.)
1512 .sp
1513 Repositories with this on\-disk format require Mercurial version 4.7
1514 .sp
1515 Implies \fIusegeneraldelta\fP.
1516 .sp
1517 Enabled by default.
1518 .TP
1519 .B \fBrevlog\-compression\fP
1520 .sp
1521 Compression algorithm used by revlog. Supported values are \fIzlib\fP and
1522 \fIzstd\fP. The \fIzlib\fP engine is the historical default of Mercurial. \fIzstd\fP is
1523 a newer format that is usually a net win over \fIzlib\fP, operating faster at
1524 better compression rates. Use \fIzstd\fP to reduce CPU usage. Multiple values
1525 can be specified, the first available one will be used.
1526 .sp
1527 On some systems, the Mercurial installation may lack \fIzstd\fP support.
1528 .sp
1529 Default is \fIzstd\fP if available, \fIzlib\fP otherwise.
1530 .TP
1531 .B \fBbookmarks\-in\-store\fP
1532 .sp
1533 Store bookmarks in .hg/store/. This means that bookmarks are shared when
1534 using \fIhg share\fP regardless of the \fI\-B\fP option.
1535 .sp
1536 Repositories with this on\-disk format require Mercurial version 5.1.
1537 .sp
1538 Disabled by default.
1539 .UNINDENT
1540 .SS \fBgraph\fP
1541 .sp
1542 Web graph view configuration. This section let you change graph
1543 elements display properties by branches, for instance to make the
1544 \fBdefault\fP branch stand out.
1545 .sp
1546 Each line has the following format:
1547 .sp
1548 .nf
1549 .ft C
1550 <branch>.<argument> = <value>
1551 .ft P
1552 .fi
1553 .sp
1554 where \fB<branch>\fP is the name of the branch being
1555 customized. Example:
1556 .sp
1557 .nf
1558 .ft C
1559 [graph]
1560 # 2px width
1561 default.width = 2
1562 # red color
1563 default.color = FF0000
1564 .ft P
1565 .fi
1566 .sp
1567 Supported arguments:
1568 .INDENT 0.0
1569 .TP
1570 .B \fBwidth\fP
1571 .sp
1572 Set branch edges width in pixels.
1573 .TP
1574 .B \fBcolor\fP
1575 .sp
1576 Set branch edges color in hexadecimal RGB notation.
1577 .UNINDENT
1578 .SS \fBhooks\fP
1579 .sp
1580 Commands or Python functions that get automatically executed by
1581 various actions such as starting or finishing a commit. Multiple
1582 hooks can be run for the same action by appending a suffix to the
1583 action. Overriding a site\-wide hook can be done by changing its
1584 value or setting it to an empty string. Hooks can be prioritized
1585 by adding a prefix of \fBpriority.\fP to the hook name on a new line
1586 and setting the priority. The default priority is 0.
1587 .sp
1588 Example \fB.hg/hgrc\fP:
1589 .sp
1590 .nf
1591 .ft C
1592 [hooks]
1593 # update working directory after adding changesets
1594 changegroup.update = hg update
1595 # do not use the site\-wide hook
1596 incoming =
1597 incoming.email = /my/email/hook
1598 incoming.autobuild = /my/build/hook
1599 # force autobuild hook to run before other incoming hooks
1600 priority.incoming.autobuild = 1
1601 ### control HGPLAIN setting when running autobuild hook
1602 # HGPLAIN always set (default from Mercurial 5.7)
1603 incoming.autobuild:run\-with\-plain = yes
1604 # HGPLAIN never set
1605 incoming.autobuild:run\-with\-plain = no
1606 # HGPLAIN inherited from environment (default before Mercurial 5.7)
1607 incoming.autobuild:run\-with\-plain = auto
1608 .ft P
1609 .fi
1610 .sp
1611 Most hooks are run with environment variables set that give useful
1612 additional information. For each hook below, the environment variables
1613 it is passed are listed with names in the form \fB$HG_foo\fP. The
1614 \fB$HG_HOOKTYPE\fP and \fB$HG_HOOKNAME\fP variables are set for all hooks.
1615 They contain the type of hook which triggered the run and the full name
1616 of the hook in the config, respectively. In the example above, this will
1617 be \fB$HG_HOOKTYPE=incoming\fP and \fB$HG_HOOKNAME=incoming.email\fP.
1618 .sp
1619 Some basic Unix syntax can be enabled for portability, including \fB$VAR\fP
1620 and \fB${VAR}\fP style variables. A \fB~\fP followed by \fB\e\fP or \fB/\fP will
1621 be expanded to \fB%USERPROFILE%\fP to simulate a subset of tilde expansion
1622 on Unix. To use a literal \fB$\fP or \fB~\fP, it must be escaped with a back
1623 slash or inside of a strong quote. Strong quotes will be replaced by
1624 double quotes after processing.
1625 .sp
1626 This feature is enabled by adding a prefix of \fBtonative.\fP to the hook
1627 name on a new line, and setting it to \fBTrue\fP. For example:
1628 .sp
1629 .nf
1630 .ft C
1631 [hooks]
1632 incoming.autobuild = /my/build/hook
1633 # enable translation to cmd.exe syntax for autobuild hook
1634 tonative.incoming.autobuild = True
1635 .ft P
1636 .fi
1637 .INDENT 0.0
1638 .TP
1639 .B \fBchangegroup\fP
1640 .sp
1641 Run after a changegroup has been added via push, pull or unbundle. The ID of
1642 the first new changeset is in \fB$HG_NODE\fP and last is in \fB$HG_NODE_LAST\fP.
1643 The URL from which changes came is in \fB$HG_URL\fP.
1644 .TP
1645 .B \fBcommit\fP
1646 .sp
1647 Run after a changeset has been created in the local repository. The ID
1648 of the newly created changeset is in \fB$HG_NODE\fP. Parent changeset
1649 IDs are in \fB$HG_PARENT1\fP and \fB$HG_PARENT2\fP.
1650 .TP
1651 .B \fBincoming\fP
1652 .sp
1653 Run after a changeset has been pulled, pushed, or unbundled into
1654 the local repository. The ID of the newly arrived changeset is in
1655 \fB$HG_NODE\fP. The URL that was source of the changes is in \fB$HG_URL\fP.
1656 .TP
1657 .B \fBoutgoing\fP
1658 .sp
1659 Run after sending changes from the local repository to another. The ID of
1660 first changeset sent is in \fB$HG_NODE\fP. The source of operation is in
1661 \fB$HG_SOURCE\fP. Also see \%\fBhg help config.hooks.preoutgoing\fP\:.
1662 .TP
1663 .B \fBpost\-<command>\fP
1664 .sp
1665 Run after successful invocations of the associated command. The
1666 contents of the command line are passed as \fB$HG_ARGS\fP and the result
1667 code in \fB$HG_RESULT\fP. Parsed command line arguments are passed as
1668 \fB$HG_PATS\fP and \fB$HG_OPTS\fP. These contain string representations of
1669 the python data internally passed to <command>. \fB$HG_OPTS\fP is a
1670 dictionary of options (with unspecified options set to their defaults).
1671 \fB$HG_PATS\fP is a list of arguments. Hook failure is ignored.
1672 .TP
1673 .B \fBfail\-<command>\fP
1674 .sp
1675 Run after a failed invocation of an associated command. The contents
1676 of the command line are passed as \fB$HG_ARGS\fP. Parsed command line
1677 arguments are passed as \fB$HG_PATS\fP and \fB$HG_OPTS\fP. These contain
1678 string representations of the python data internally passed to
1679 <command>. \fB$HG_OPTS\fP is a dictionary of options (with unspecified
1680 options set to their defaults). \fB$HG_PATS\fP is a list of arguments.
1681 Hook failure is ignored.
1682 .TP
1683 .B \fBpre\-<command>\fP
1684 .sp
1685 Run before executing the associated command. The contents of the
1686 command line are passed as \fB$HG_ARGS\fP. Parsed command line arguments
1687 are passed as \fB$HG_PATS\fP and \fB$HG_OPTS\fP. These contain string
1688 representations of the data internally passed to <command>. \fB$HG_OPTS\fP
1689 is a dictionary of options (with unspecified options set to their
1690 defaults). \fB$HG_PATS\fP is a list of arguments. If the hook returns
1691 failure, the command doesn\(aqt execute and Mercurial returns the failure
1692 code.
1693 .TP
1694 .B \fBprechangegroup\fP
1695 .sp
1696 Run before a changegroup is added via push, pull or unbundle. Exit
1697 status 0 allows the changegroup to proceed. A non\-zero status will
1698 cause the push, pull or unbundle to fail. The URL from which changes
1699 will come is in \fB$HG_URL\fP.
1700 .TP
1701 .B \fBprecommit\fP
1702 .sp
1703 Run before starting a local commit. Exit status 0 allows the
1704 commit to proceed. A non\-zero status will cause the commit to fail.
1705 Parent changeset IDs are in \fB$HG_PARENT1\fP and \fB$HG_PARENT2\fP.
1706 .TP
1707 .B \fBprelistkeys\fP
1708 .sp
1709 Run before listing pushkeys (like bookmarks) in the
1710 repository. A non\-zero status will cause failure. The key namespace is
1711 in \fB$HG_NAMESPACE\fP.
1712 .TP
1713 .B \fBpreoutgoing\fP
1714 .sp
1715 Run before collecting changes to send from the local repository to
1716 another. A non\-zero status will cause failure. This lets you prevent
1717 pull over HTTP or SSH. It can also prevent propagating commits (via
1718 local pull, push (outbound) or bundle commands), but not completely,
1719 since you can just copy files instead. The source of operation is in
1720 \fB$HG_SOURCE\fP. If "serve", the operation is happening on behalf of a remote
1721 SSH or HTTP repository. If "push", "pull" or "bundle", the operation
1722 is happening on behalf of a repository on same system.
1723 .TP
1724 .B \fBprepushkey\fP
1725 .sp
1726 Run before a pushkey (like a bookmark) is added to the
1727 repository. A non\-zero status will cause the key to be rejected. The
1728 key namespace is in \fB$HG_NAMESPACE\fP, the key is in \fB$HG_KEY\fP,
1729 the old value (if any) is in \fB$HG_OLD\fP, and the new value is in
1730 \fB$HG_NEW\fP.
1731 .TP
1732 .B \fBpretag\fP
1733 .sp
1734 Run before creating a tag. Exit status 0 allows the tag to be
1735 created. A non\-zero status will cause the tag to fail. The ID of the
1736 changeset to tag is in \fB$HG_NODE\fP. The name of tag is in \fB$HG_TAG\fP. The
1737 tag is local if \fB$HG_LOCAL=1\fP, or in the repository if \fB$HG_LOCAL=0\fP.
1738 .TP
1739 .B \fBpretransmit\-inline\-clone\-bundle\fP
1740 .sp
1741 Run before transferring an inline clonebundle to the peer.
1742 If the exit status is 0, the inline clonebundle will be allowed to be
1743 transferred. A non\-zero status will cause the transfer to fail.
1744 The path of the inline clonebundle is in \fB$HG_CLONEBUNDLEPATH\fP.
1745 .TP
1746 .B \fBpretxnopen\fP
1747 .sp
1748 Run before any new repository transaction is open. The reason for the
1749 transaction will be in \fB$HG_TXNNAME\fP, and a unique identifier for the
1750 transaction will be in \fB$HG_TXNID\fP. A non\-zero status will prevent the
1751 transaction from being opened.
1752 .TP
1753 .B \fBpretxnclose\fP
1754 .sp
1755 Run right before the transaction is actually finalized. Any repository change
1756 will be visible to the hook program. This lets you validate the transaction
1757 content or change it. Exit status 0 allows the commit to proceed. A non\-zero
1758 status will cause the transaction to be rolled back. The reason for the
1759 transaction opening will be in \fB$HG_TXNNAME\fP, and a unique identifier for
1760 the transaction will be in \fB$HG_TXNID\fP. The rest of the available data will
1761 vary according the transaction type. Changes unbundled to the repository will
1762 add \fB$HG_URL\fP and \fB$HG_SOURCE\fP. New changesets will add \fB$HG_NODE\fP (the
1763 ID of the first added changeset), \fB$HG_NODE_LAST\fP (the ID of the last added
1764 changeset). Bookmark and phase changes will set \fB$HG_BOOKMARK_MOVED\fP and
1765 \fB$HG_PHASES_MOVED\fP to \fB1\fP respectively. The number of new obsmarkers, if
1766 any, will be in \fB$HG_NEW_OBSMARKERS\fP, etc.
1767 .TP
1768 .B \fBpretxnclose\-bookmark\fP
1769 .sp
1770 Run right before a bookmark change is actually finalized. Any repository
1771 change will be visible to the hook program. This lets you validate the
1772 transaction content or change it. Exit status 0 allows the commit to
1773 proceed. A non\-zero status will cause the transaction to be rolled back.
1774 The name of the bookmark will be available in \fB$HG_BOOKMARK\fP, the new
1775 bookmark location will be available in \fB$HG_NODE\fP while the previous
1776 location will be available in \fB$HG_OLDNODE\fP. In case of a bookmark
1777 creation \fB$HG_OLDNODE\fP will be empty. In case of deletion \fB$HG_NODE\fP
1778 will be empty.
1779 In addition, the reason for the transaction opening will be in
1780 \fB$HG_TXNNAME\fP, and a unique identifier for the transaction will be in
1781 \fB$HG_TXNID\fP.
1782 .TP
1783 .B \fBpretxnclose\-phase\fP
1784 .sp
1785 Run right before a phase change is actually finalized. Any repository change
1786 will be visible to the hook program. This lets you validate the transaction
1787 content or change it. Exit status 0 allows the commit to proceed. A non\-zero
1788 status will cause the transaction to be rolled back. The hook is called
1789 multiple times, once for each revision affected by a phase change.
1790 The affected node is available in \fB$HG_NODE\fP, the phase in \fB$HG_PHASE\fP
1791 while the previous \fB$HG_OLDPHASE\fP. In case of new node, \fB$HG_OLDPHASE\fP
1792 will be empty. In addition, the reason for the transaction opening will be in
1793 \fB$HG_TXNNAME\fP, and a unique identifier for the transaction will be in
1794 \fB$HG_TXNID\fP. The hook is also run for newly added revisions. In this case
1795 the \fB$HG_OLDPHASE\fP entry will be empty.
1796 .TP
1797 .B \fBtxnclose\fP
1798 .sp
1799 Run after any repository transaction has been committed. At this
1800 point, the transaction can no longer be rolled back. The hook will run
1801 after the lock is released. See \%\fBhg help config.hooks.pretxnclose\fP\: for
1802 details about available variables.
1803 .TP
1804 .B \fBtxnclose\-bookmark\fP
1805 .sp
1806 Run after any bookmark change has been committed. At this point, the
1807 transaction can no longer be rolled back. The hook will run after the lock
1808 is released. See \%\fBhg help config.hooks.pretxnclose\-bookmark\fP\: for details
1809 about available variables.
1810 .TP
1811 .B \fBtxnclose\-phase\fP
1812 .sp
1813 Run after any phase change has been committed. At this point, the
1814 transaction can no longer be rolled back. The hook will run after the lock
1815 is released. See \%\fBhg help config.hooks.pretxnclose\-phase\fP\: for details about
1816 available variables.
1817 .TP
1818 .B \fBtxnabort\fP
1819 .sp
1820 Run when a transaction is aborted. See \%\fBhg help config.hooks.pretxnclose\fP\:
1821 for details about available variables.
1822 .TP
1823 .B \fBpretxnchangegroup\fP
1824 .sp
1825 Run after a changegroup has been added via push, pull or unbundle, but before
1826 the transaction has been committed. The changegroup is visible to the hook
1827 program. This allows validation of incoming changes before accepting them.
1828 The ID of the first new changeset is in \fB$HG_NODE\fP and last is in
1829 \fB$HG_NODE_LAST\fP. Exit status 0 allows the transaction to commit. A non\-zero
1830 status will cause the transaction to be rolled back, and the push, pull or
1831 unbundle will fail. The URL that was the source of changes is in \fB$HG_URL\fP.
1832 .TP
1833 .B \fBpretxncommit\fP
1834 .sp
1835 Run after a changeset has been created, but before the transaction is
1836 committed. The changeset is visible to the hook program. This allows
1837 validation of the commit message and changes. Exit status 0 allows the
1838 commit to proceed. A non\-zero status will cause the transaction to
1839 be rolled back. The ID of the new changeset is in \fB$HG_NODE\fP. The parent
1840 changeset IDs are in \fB$HG_PARENT1\fP and \fB$HG_PARENT2\fP.
1841 .TP
1842 .B \fBpreupdate\fP
1843 .sp
1844 Run before updating the working directory. Exit status 0 allows
1845 the update to proceed. A non\-zero status will prevent the update.
1846 The changeset ID of first new parent is in \fB$HG_PARENT1\fP. If updating to a
1847 merge, the ID of second new parent is in \fB$HG_PARENT2\fP.
1848 .TP
1849 .B \fBlistkeys\fP
1850 .sp
1851 Run after listing pushkeys (like bookmarks) in the repository. The
1852 key namespace is in \fB$HG_NAMESPACE\fP. \fB$HG_VALUES\fP is a
1853 dictionary containing the keys and values.
1854 .TP
1855 .B \fBpushkey\fP
1856 .sp
1857 Run after a pushkey (like a bookmark) is added to the
1858 repository. The key namespace is in \fB$HG_NAMESPACE\fP, the key is in
1859 \fB$HG_KEY\fP, the old value (if any) is in \fB$HG_OLD\fP, and the new
1860 value is in \fB$HG_NEW\fP.
1861 .TP
1862 .B \fBtag\fP
1863 .sp
1864 Run after a tag is created. The ID of the tagged changeset is in \fB$HG_NODE\fP.
1865 The name of tag is in \fB$HG_TAG\fP. The tag is local if \fB$HG_LOCAL=1\fP, or in
1866 the repository if \fB$HG_LOCAL=0\fP.
1867 .TP
1868 .B \fBupdate\fP
1869 .sp
1870 Run after updating the working directory. The changeset ID of first
1871 new parent is in \fB$HG_PARENT1\fP. If updating to a merge, the ID of second new
1872 parent is in \fB$HG_PARENT2\fP. If the update succeeded, \fB$HG_ERROR=0\fP. If the
1873 update failed (e.g. because conflicts were not resolved), \fB$HG_ERROR=1\fP.
1874 .TP
1875 .B \fBprelock\fP
1876 .sp
1877 run before the store lock is taken, mostly used for test and debug.
1878 .TP
1879 .B \fBprewlock\fP
1880 .sp
1881 run before the working copy lock is taken, mostly used for test and debug.
1882 .UNINDENT
1883 .IP Note
1884 .
1885 It is generally better to use standard hooks rather than the
1886 generic pre\- and post\- command hooks, as they are guaranteed to be
1887 called in the appropriate contexts for influencing transactions.
1888 Also, hooks like "commit" will be called in all contexts that
1889 generate a commit (e.g. tag) and not just the commit command.
1890 .RE
1891 .IP Note
1892 .
1893 Environment variables with empty values may not be passed to
1894 hooks on platforms such as Windows. As an example, \fB$HG_PARENT2\fP
1895 will have an empty value under Unix\-like platforms for non\-merge
1896 changesets, while it will not be available at all under Windows.
1897 .RE
1898 .sp
1899 The syntax for Python hooks is as follows:
1900 .sp
1901 .nf
1902 .ft C
1903 hookname = python:modulename.submodule.callable
1904 hookname = python:/path/to/python/module.py:callable
1905 .ft P
1906 .fi
1907 .sp
1908 Python hooks are run within the Mercurial process. Each hook is
1909 called with at least three keyword arguments: a ui object (keyword
1910 \fBui\fP), a repository object (keyword \fBrepo\fP), and a \fBhooktype\fP
1911 keyword that tells what kind of hook is used. Arguments listed as
1912 environment variables above are passed as keyword arguments, with no
1913 \fBHG_\fP prefix, and names in lower case.
1914 .sp
1915 If a Python hook returns a "true" value or raises an exception, this
1916 is treated as a failure.
1917 .SS \fBhostfingerprints\fP
1918 .sp
1919 (Deprecated. Use \fB[hostsecurity]\fP\(aqs \fBfingerprints\fP options instead.)
1920 .sp
1921 Fingerprints of the certificates of known HTTPS servers.
1922 .sp
1923 A HTTPS connection to a server with a fingerprint configured here will
1924 only succeed if the servers certificate matches the fingerprint.
1925 This is very similar to how ssh known hosts works.
1926 .sp
1927 The fingerprint is the SHA\-1 hash value of the DER encoded certificate.
1928 Multiple values can be specified (separated by spaces or commas). This can
1929 be used to define both old and new fingerprints while a host transitions
1930 to a new certificate.
1931 .sp
1932 The CA chain and web.cacerts is not used for servers with a fingerprint.
1933 .sp
1934 For example:
1935 .sp
1936 .nf
1937 .ft C
1938 [hostfingerprints]
1939 hg.intevation.de = fc:e2:8d:d9:51:cd:cb:c1:4d:18:6b:b7:44:8d:49:72:57:e6:cd:33
1940 hg.intevation.org = fc:e2:8d:d9:51:cd:cb:c1:4d:18:6b:b7:44:8d:49:72:57:e6:cd:33
1941 .ft P
1942 .fi
1943 .SS \fBhostsecurity\fP
1944 .sp
1945 Used to specify global and per\-host security settings for connecting to
1946 other machines.
1947 .sp
1948 The following options control default behavior for all hosts.
1949 .INDENT 0.0
1950 .TP
1951 .B \fBciphers\fP
1952 .sp
1953 Defines the cryptographic ciphers to use for connections.
1954 .sp
1955 Value must be a valid OpenSSL Cipher List Format as documented at
1956 \%https://www.openssl.org/docs/manmaster/apps/ciphers.html#CIPHER\-LIST\-FORMAT\:.
1957 .sp
1958 This setting is for advanced users only. Setting to incorrect values
1959 can significantly lower connection security or decrease performance.
1960 You have been warned.
1961 .sp
1962 This option requires Python 2.7.
1963 .TP
1964 .B \fBminimumprotocol\fP
1965 .sp
1966 Defines the minimum channel encryption protocol to use in the client.
1967 .sp
1968 By default, the highest version of TLS supported by both client and server
1969 is used.
1970 .sp
1971 Allowed values are: \fBtls1.0\fP, \fBtls1.1\fP, \fBtls1.2\fP, \fBtls1.3\fP.
1972 .sp
1973 Depending on the version of Python being used, not all of these values may
1974 be available. See \fBhg debuginstall\fP for the values supported by the
1975 current installation.
1976 .sp
1977 When running a Python that supports modern TLS versions, the default is
1978 \fBtls1.2\fP. \fBtls1.0\fP and \fBtls1.1\fP can still be used to allow TLS 1.0
1979 or TLS 1.1 respectively, if supported by Python. However, this weakens
1980 security and should only be used as a feature of last resort if a server
1981 does not support TLS 1.2+.
1982 .UNINDENT
1983 .sp
1984 Options in the \fB[hostsecurity]\fP section can have the form
1985 \fBhostname\fP:\fBsetting\fP. This allows multiple settings to be defined on a
1986 per\-host basis.
1987 .sp
1988 The following per\-host settings can be defined.
1989 .INDENT 0.0
1990 .TP
1991 .B \fBciphers\fP
1992 .sp
1993 This behaves like \fBciphers\fP as described above except it only applies
1994 to the host on which it is defined.
1995 .TP
1996 .B \fBfingerprints\fP
1997 .sp
1998 A list of hashes of the DER encoded peer/remote certificate. Values have
1999 the form \fBalgorithm\fP:\fBfingerprint\fP. e.g.
2000 \fBsha256:c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2\fP.
2001 In addition, colons (\fB:\fP) can appear in the fingerprint part.
2002 .sp
2003 The following algorithms/prefixes are supported: \fBsha1\fP, \fBsha256\fP,
2004 \fBsha512\fP.
2005 .sp
2006 Use of \fBsha256\fP or \fBsha512\fP is preferred.
2007 .sp
2008 If a fingerprint is specified, the CA chain is not validated for this
2009 host and Mercurial will require the remote certificate to match one
2010 of the fingerprints specified. This means if the server updates its
2011 certificate, Mercurial will abort until a new fingerprint is defined.
2012 This can provide stronger security than traditional CA\-based validation
2013 at the expense of convenience.
2014 .sp
2015 This option takes precedence over \fBverifycertsfile\fP.
2016 .TP
2017 .B \fBminimumprotocol\fP
2018 .sp
2019 This behaves like \fBminimumprotocol\fP as described above except it
2020 only applies to the host on which it is defined.
2021 .TP
2022 .B \fBverifycertsfile\fP
2023 .sp
2024 Path to file a containing a list of PEM encoded certificates used to
2025 verify the server certificate. Environment variables and \fB~user\fP
2026 constructs are expanded in the filename.
2027 .sp
2028 The server certificate or the certificate\(aqs certificate authority (CA)
2029 must match a certificate from this file or certificate verification
2030 will fail and connections to the server will be refused.
2031 .sp
2032 If defined, only certificates provided by this file will be used:
2033 \fBweb.cacerts\fP and any system/default certificates will not be
2034 used.
2035 .sp
2036 This option has no effect if the per\-host \fBfingerprints\fP option
2037 is set.
2038 .sp
2039 The format of the file is as follows:
2040 .sp
2041 .nf
2042 .ft C
2043 \-\-\-\-\-BEGIN CERTIFICATE\-\-\-\-\-
2044 \&... (certificate in base64 PEM encoding) ...
2045 \-\-\-\-\-END CERTIFICATE\-\-\-\-\-
2046 \-\-\-\-\-BEGIN CERTIFICATE\-\-\-\-\-
2047 \&... (certificate in base64 PEM encoding) ...
2048 \-\-\-\-\-END CERTIFICATE\-\-\-\-\-
2049 .ft P
2050 .fi
2051 .UNINDENT
2052 .sp
2053 For example:
2054 .sp
2055 .nf
2056 .ft C
2057 [hostsecurity]
2058 hg.example.com:fingerprints = sha256:c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2
2059 hg2.example.com:fingerprints = sha1:914f1aff87249c09b6859b88b1906d30756491ca, sha1:fc:e2:8d:d9:51:cd:cb:c1:4d:18:6b:b7:44:8d:49:72:57:e6:cd:33
2060 hg3.example.com:fingerprints = sha256:9a:b0:dc:e2:75:ad:8a:b7:84:58:e5:1f:07:32:f1:87:e6:bd:24:22:af:b7:ce:8e:9c:b4:10:cf:b9:f4:0e:d2
2061 foo.example.com:verifycertsfile = /etc/ssl/trusted\-ca\-certs.pem
2062 .ft P
2063 .fi
2064 .sp
2065 To change the default minimum protocol version to TLS 1.2 but to allow TLS 1.1
2066 when connecting to \fBhg.example.com\fP:
2067 .sp
2068 .nf
2069 .ft C
2070 [hostsecurity]
2071 minimumprotocol = tls1.2
2072 hg.example.com:minimumprotocol = tls1.1
2073 .ft P
2074 .fi
2075 .SS \fBhttp_proxy\fP
2076 .sp
2077 Used to access web\-based Mercurial repositories through a HTTP
2078 proxy.
2079 .INDENT 0.0
2080 .TP
2081 .B \fBhost\fP
2082 .sp
2083 Host name and (optional) port of the proxy server, for example
2084 "myproxy:8000".
2085 .TP
2086 .B \fBno\fP
2087 .sp
2088 Optional. Comma\-separated list of host names that should bypass
2089 the proxy.
2090 .TP
2091 .B \fBpasswd\fP
2092 .sp
2093 Optional. Password to authenticate with at the proxy server.
2094 .TP
2095 .B \fBuser\fP
2096 .sp
2097 Optional. User name to authenticate with at the proxy server.
2098 .TP
2099 .B \fBalways\fP
2100 .sp
2101 Optional. Always use the proxy, even for localhost and any entries
2102 in \fBhttp_proxy.no\fP. (default: False)
2103 .UNINDENT
2104 .SS \fBhttp\fP
2105 .sp
2106 Used to configure access to Mercurial repositories via HTTP.
2107 .INDENT 0.0
2108 .TP
2109 .B \fBtimeout\fP
2110 .sp
2111 If set, blocking operations will timeout after that many seconds.
2112 (default: None)
2113 .UNINDENT
2114 .SS \fBmerge\fP
2115 .sp
2116 This section specifies behavior during merges and updates.
2117 .INDENT 0.0
2118 .TP
2119 .B \fBcheckignored\fP
2120 .sp
2121 Controls behavior when an ignored file on disk has the same name as a tracked
2122 file in the changeset being merged or updated to, and has different
2123 contents. Options are \fBabort\fP, \fBwarn\fP and \fBignore\fP. With \fBabort\fP,
2124 abort on such files. With \fBwarn\fP, warn on such files and back them up as
2125 \fB.orig\fP. With \fBignore\fP, don\(aqt print a warning and back them up as
2126 \fB.orig\fP. (default: \fBabort\fP)
2127 .TP
2128 .B \fBcheckunknown\fP
2129 .sp
2130 Controls behavior when an unknown file that isn\(aqt ignored has the same name
2131 as a tracked file in the changeset being merged or updated to, and has
2132 different contents. Similar to \fBmerge.checkignored\fP, except for files that
2133 are not ignored. (default: \fBabort\fP)
2134 .TP
2135 .B \fBon\-failure\fP
2136 .sp
2137 When set to \fBcontinue\fP (the default), the merge process attempts to
2138 merge all unresolved files using the merge chosen tool, regardless of
2139 whether previous file merge attempts during the process succeeded or not.
2140 Setting this to \fBprompt\fP will prompt after any merge failure continue
2141 or halt the merge process. Setting this to \fBhalt\fP will automatically
2142 halt the merge process on any merge tool failure. The merge process
2143 can be restarted by using the \fBresolve\fP command. When a merge is
2144 halted, the repository is left in a normal \fBunresolved\fP merge state.
2145 (default: \fBcontinue\fP)
2146 .TP
2147 .B \fBstrict\-capability\-check\fP
2148 .sp
2149 Whether capabilities of internal merge tools are checked strictly
2150 or not, while examining rules to decide merge tool to be used.
2151 (default: False)
2152 .UNINDENT
2153 .SS \fBmerge\-patterns\fP
2154 .sp
2155 This section specifies merge tools to associate with particular file
2156 patterns. Tools matched here will take precedence over the default
2157 merge tool. Patterns are globs by default, rooted at the repository
2158 root.
2159 .sp
2160 Example:
2161 .sp
2162 .nf
2163 .ft C
2164 [merge\-patterns]
2165 **.c = kdiff3
2166 **.jpg = myimgmerge
2167 .ft P
2168 .fi
2169 .SS \fBmerge\-tools\fP
2170 .sp
2171 This section configures external merge tools to use for file\-level
2172 merges. This section has likely been preconfigured at install time.
2173 Use \%\fBhg config merge\-tools\fP\: to check the existing configuration.
2174 Also see \%\fBhg help merge\-tools\fP\: for more details.
2175 .sp
2176 Example \fB~/.hgrc\fP:
2177 .sp
2178 .nf
2179 .ft C
2180 [merge\-tools]
2181 # Override stock tool location
2182 kdiff3.executable = ~/bin/kdiff3
2183 # Specify command line
2184 kdiff3.args = $base $local $other \-o $output
2185 # Give higher priority
2186 kdiff3.priority = 1
2187
2188 # Changing the priority of preconfigured tool
2189 meld.priority = 0
2190
2191 # Disable a preconfigured tool
2192 vimdiff.disabled = yes
2193
2194 # Define new tool
2195 myHtmlTool.args = \-m $local $other $base $output
2196 myHtmlTool.regkey = Software\eFooSoftware\eHtmlMerge
2197 myHtmlTool.priority = 1
2198 .ft P
2199 .fi
2200 .sp
2201 Supported arguments:
2202 .INDENT 0.0
2203 .TP
2204 .B \fBpriority\fP
2205 .sp
2206 The priority in which to evaluate this tool.
2207 (default: 0)
2208 .TP
2209 .B \fBexecutable\fP
2210 .sp
2211 Either just the name of the executable or its pathname.
2212 .sp
2213 On Windows, the path can use environment variables with ${ProgramFiles}
2214 syntax.
2215 .sp
2216 (default: the tool name)
2217 .TP
2218 .B \fBargs\fP
2219 .sp
2220 The arguments to pass to the tool executable. You can refer to the
2221 files being merged as well as the output file through these
2222 variables: \fB$base\fP, \fB$local\fP, \fB$other\fP, \fB$output\fP.
2223 .sp
2224 The meaning of \fB$local\fP and \fB$other\fP can vary depending on which action is
2225 being performed. During an update or merge, \fB$local\fP represents the original
2226 state of the file, while \fB$other\fP represents the commit you are updating to or
2227 the commit you are merging with. During a rebase, \fB$local\fP represents the
2228 destination of the rebase, and \fB$other\fP represents the commit being rebased.
2229 .sp
2230 Some operations define custom labels to assist with identifying the revisions,
2231 accessible via \fB$labellocal\fP, \fB$labelother\fP, and \fB$labelbase\fP. If custom
2232 labels are not available, these will be \fBlocal\fP, \fBother\fP, and \fBbase\fP,
2233 respectively.
2234 (default: \fB$local $base $other\fP)
2235 .TP
2236 .B \fBpremerge\fP
2237 .sp
2238 Attempt to run internal non\-interactive 3\-way merge tool before
2239 launching external tool. Options are \fBtrue\fP, \fBfalse\fP, \fBkeep\fP,
2240 \fBkeep\-merge3\fP, or \fBkeep\-mergediff\fP (experimental). The \fBkeep\fP option
2241 will leave markers in the file if the premerge fails. The \fBkeep\-merge3\fP
2242 will do the same but include information about the base of the merge in the
2243 marker (see internal :merge3 in \%\fBhg help merge\-tools\fP\:). The
2244 \fBkeep\-mergediff\fP option is similar but uses a different marker style
2245 (see internal :merge3 in \%\fBhg help merge\-tools\fP\:). (default: True)
2246 .TP
2247 .B \fBbinary\fP
2248 .sp
2249 This tool can merge binary files. (default: False, unless tool
2250 was selected by file pattern match)
2251 .TP
2252 .B \fBsymlink\fP
2253 .sp
2254 This tool can merge symlinks. (default: False)
2255 .TP
2256 .B \fBcheck\fP
2257 .sp
2258 A list of merge success\-checking options:
2259 .INDENT 7.0
2260 .TP
2261 .B \fBchanged\fP
2262 .sp
2263 Ask whether merge was successful when the merged file shows no changes.
2264 .TP
2265 .B \fBconflicts\fP
2266 .sp
2267 Check whether there are conflicts even though the tool reported success.
2268 .TP
2269 .B \fBprompt\fP
2270 .sp
2271 Always prompt for merge success, regardless of success reported by tool.
2272 .UNINDENT
2273 .TP
2274 .B \fBfixeol\fP
2275 .sp
2276 Attempt to fix up EOL changes caused by the merge tool.
2277 (default: False)
2278 .TP
2279 .B \fBgui\fP
2280 .sp
2281 This tool requires a graphical interface to run. (default: False)
2282 .TP
2283 .B \fBmergemarkers\fP
2284 .sp
2285 Controls whether the labels passed via \fB$labellocal\fP, \fB$labelother\fP, and
2286 \fB$labelbase\fP are \fBdetailed\fP (respecting \fBmergemarkertemplate\fP) or
2287 \fBbasic\fP. If \fBpremerge\fP is \fBkeep\fP or \fBkeep\-merge3\fP, the conflict
2288 markers generated during premerge will be \fBdetailed\fP if either this option or
2289 the corresponding option in the \fB[ui]\fP section is \fBdetailed\fP.
2290 (default: \fBbasic\fP)
2291 .TP
2292 .B \fBmergemarkertemplate\fP
2293 .sp
2294 This setting can be used to override \fBmergemarker\fP from the
2295 \fB[command\-templates]\fP section on a per\-tool basis; this applies to the
2296 \fB$label\fP\-prefixed variables and to the conflict markers that are generated
2297 if \fBpremerge\fP is \fBkeep\(ga or \(ga\(gakeep\-merge3\fP. See the corresponding variable
2298 in \fB[ui]\fP for more information.
2299 .UNINDENT
2300 .INDENT 0.0
2301 .TP
2302 .B \fBregkey\fP
2303 .sp
2304 Windows registry key which describes install location of this
2305 tool. Mercurial will search for this key first under
2306 \fBHKEY_CURRENT_USER\fP and then under \fBHKEY_LOCAL_MACHINE\fP.
2307 (default: None)
2308 .TP
2309 .B \fBregkeyalt\fP
2310 .sp
2311 An alternate Windows registry key to try if the first key is not
2312 found. The alternate key uses the same \fBregname\fP and \fBregappend\fP
2313 semantics of the primary key. The most common use for this key
2314 is to search for 32bit applications on 64bit operating systems.
2315 (default: None)
2316 .TP
2317 .B \fBregname\fP
2318 .sp
2319 Name of value to read from specified registry key.
2320 (default: the unnamed (default) value)
2321 .TP
2322 .B \fBregappend\fP
2323 .sp
2324 String to append to the value read from the registry, typically
2325 the executable name of the tool.
2326 (default: None)
2327 .UNINDENT
2328 .SS \fBpager\fP
2329 .sp
2330 Setting used to control when to paginate and with what external tool. See
2331 \%\fBhg help pager\fP\: for details.
2332 .INDENT 0.0
2333 .TP
2334 .B \fBpager\fP
2335 .sp
2336 Define the external tool used as pager.
2337 .sp
2338 If no pager is set, Mercurial uses the environment variable $PAGER.
2339 If neither pager.pager, nor $PAGER is set, a default pager will be
2340 used, typically \fIless\fP on Unix and \fImore\fP on Windows. Example:
2341 .sp
2342 .nf
2343 .ft C
2344 [pager]
2345 pager = less \-FRX
2346 .ft P
2347 .fi
2348 .TP
2349 .B \fBignore\fP
2350 .sp
2351 List of commands to disable the pager for. Example:
2352 .sp
2353 .nf
2354 .ft C
2355 [pager]
2356 ignore = version, help, update
2357 .ft P
2358 .fi
2359 .UNINDENT
2360 .SS \fBpatch\fP
2361 .sp
2362 Settings used when applying patches, for instance through the \(aqimport\(aq
2363 command or with Mercurial Queues extension.
2364 .INDENT 0.0
2365 .TP
2366 .B \fBeol\fP
2367 .sp
2368 When set to \(aqstrict\(aq patch content and patched files end of lines
2369 are preserved. When set to \fBlf\fP or \fBcrlf\fP, both files end of
2370 lines are ignored when patching and the result line endings are
2371 normalized to either LF (Unix) or CRLF (Windows). When set to
2372 \fBauto\fP, end of lines are again ignored while patching but line
2373 endings in patched files are normalized to their original setting
2374 on a per\-file basis. If target file does not exist or has no end
2375 of line, patch line endings are preserved.
2376 (default: strict)
2377 .TP
2378 .B \fBfuzz\fP
2379 .sp
2380 The number of lines of \(aqfuzz\(aq to allow when applying patches. This
2381 controls how much context the patcher is allowed to ignore when
2382 trying to apply a patch.
2383 (default: 2)
2384 .UNINDENT
2385 .SS \fBpaths\fP
2386 .sp
2387 Assigns symbolic names and behavior to repositories.
2388 .sp
2389 Options are symbolic names defining the URL or directory that is the
2390 location of the repository. Example:
2391 .sp
2392 .nf
2393 .ft C
2394 [paths]
2395 my_server = https://example.com/my_repo
2396 local_path = /home/me/repo
2397 .ft P
2398 .fi
2399 .sp
2400 These symbolic names can be used from the command line. To pull
2401 from \fBmy_server\fP: \%\fBhg pull my_server\fP\:. To push to \fBlocal_path\fP:
2402 \%\fBhg push local_path\fP\:. You can check \%\fBhg help urls\fP\: for details about
2403 valid URLs.
2404 .sp
2405 Options containing colons (\fB:\fP) denote sub\-options that can influence
2406 behavior for that specific path. Example:
2407 .sp
2408 .nf
2409 .ft C
2410 [paths]
2411 my_server = https://example.com/my_path
2412 my_server:pushurl = ssh://example.com/my_path
2413 .ft P
2414 .fi
2415 .sp
2416 Paths using the \fIpath://otherpath\fP scheme will inherit the sub\-options value from
2417 the path they point to.
2418 .sp
2419 The following sub\-options can be defined:
2420 .INDENT 0.0
2421 .TP
2422 .B \fBmulti\-urls\fP
2423 .sp
2424 A boolean option. When enabled the value of the \fI[paths]\fP entry will be
2425 parsed as a list and the alias will resolve to multiple destination. If some
2426 of the list entry use the \fIpath://\fP syntax, the suboption will be inherited
2427 individually.
2428 .TP
2429 .B \fBpushurl\fP
2430 .sp
2431 The URL to use for push operations. If not defined, the location
2432 defined by the path\(aqs main entry is used.
2433 .TP
2434 .B \fBpushrev\fP
2435 .sp
2436 A revset defining which revisions to push by default.
2437 .sp
2438 When \%\fBhg push\fP\: is executed without a \fB\-r\fP argument, the revset
2439 defined by this sub\-option is evaluated to determine what to push.
2440 .sp
2441 For example, a value of \fB.\fP will push the working directory\(aqs
2442 revision by default.
2443 .sp
2444 Revsets specifying bookmarks will not result in the bookmark being
2445 pushed.
2446 .TP
2447 .B \fBbookmarks.mode\fP
2448 .sp
2449 How bookmark will be dealt during the exchange. It support the following value
2450 .INDENT 7.0
2451 .IP \(bu 2
2452 .
2453 \fBdefault\fP: the default behavior, local and remote bookmarks are "merged"
2454 on push/pull.
2455 .IP \(bu 2
2456 .
2457 \fBmirror\fP: when pulling, replace local bookmarks by remote bookmarks. This
2458 is useful to replicate a repository, or as an optimization.
2459 .IP \(bu 2
2460 .
2461 \fBignore\fP: ignore bookmarks during exchange.
2462 (This currently only affect pulling)
2463 .UNINDENT
2464 .UNINDENT
2465 .sp
2466 \fBpulled\-delta\-reuse\-policy\fP
2467 Control the policy regarding deltas sent by the remote during pulls.
2468 .sp
2469 This is an advanced option that non\-admin users should not need to understand
2470 or set. This option can be used to speed up pulls from trusted central
2471 servers, or to fix\-up deltas from older servers.
2472 .sp
2473 It supports the following values:
2474 .INDENT 0.0
2475 .IP \(bu 2
2476 .
2477 \fBdefault\fP: use the policy defined by
2478 \fIstorage.revlog.reuse\-external\-delta\-parent\fP,
2479 .IP \(bu 2
2480 .
2481 \fBno\-reuse\fP: start a new optimal delta search for each new revision we add
2482 to the repository. The deltas from the server will be reused when the base
2483 it applies to is tested (this can be frequent if that base is the one and
2484 unique parent of that revision). This can significantly slowdown pulls but
2485 will result in an optimized storage space if the remote peer is sending poor
2486 quality deltas.
2487 .IP \(bu 2
2488 .
2489 \fBtry\-base\fP: try to reuse the deltas from the remote peer as long as they
2490 create a valid delta\-chain in the local repository. This speeds up the
2491 unbundling process, but can result in sub\-optimal storage space if the
2492 remote peer is sending poor quality deltas.
2493 .IP \(bu 2
2494 .
2495 \fBforced\fP: the deltas from the peer will be reused in all cases, even if
2496 the resulting delta\-chain is "invalid". This setting will ensure the bundle
2497 is applied at minimal CPU cost, but it can result in longer delta chains
2498 being created on the client, making revisions potentially slower to access
2499 in the future. If you think you need this option, you should make sure you
2500 are also talking to the Mercurial developer community to get confirmation.
2501 .UNINDENT
2502 .sp
2503 See \fIhg help config.storage.revlog.reuse\-external\-delta\-parent\fP for a similar
2504 global option. That option defines the behavior of \fIdefault\fP.
2505 .sp
2506 The following special named paths exist:
2507 .INDENT 0.0
2508 .TP
2509 .B \fBdefault\fP
2510 .sp
2511 The URL or directory to use when no source or remote is specified.
2512 .sp
2513 \%\fBhg clone\fP\: will automatically define this path to the location the
2514 repository was cloned from.
2515 .TP
2516 .B \fBdefault\-push\fP
2517 .sp
2518 (deprecated) The URL or directory for the default \%\fBhg push\fP\: location.
2519 \fBdefault:pushurl\fP should be used instead.
2520 .UNINDENT
2521 .SS \fBphases\fP
2522 .sp
2523 Specifies default handling of phases. See \%\fBhg help phases\fP\: for more
2524 information about working with phases.
2525 .INDENT 0.0
2526 .TP
2527 .B \fBpublish\fP
2528 .sp
2529 Controls draft phase behavior when working as a server. When true,
2530 pushed changesets are set to public in both client and server and
2531 pulled or cloned changesets are set to public in the client.
2532 (default: True)
2533 .TP
2534 .B \fBnew\-commit\fP
2535 .sp
2536 Phase of newly\-created commits.
2537 (default: draft)
2538 .TP
2539 .B \fBchecksubrepos\fP
2540 .sp
2541 Check the phase of the current revision of each subrepository. Allowed
2542 values are "ignore", "follow" and "abort". For settings other than
2543 "ignore", the phase of the current revision of each subrepository is
2544 checked before committing the parent repository. If any of those phases is
2545 greater than the phase of the parent repository (e.g. if a subrepo is in a
2546 "secret" phase while the parent repo is in "draft" phase), the commit is
2547 either aborted (if checksubrepos is set to "abort") or the higher phase is
2548 used for the parent repository commit (if set to "follow").
2549 (default: follow)
2550 .UNINDENT
2551 .SS \fBprofiling\fP
2552 .sp
2553 Specifies profiling type, format, and file output. Two profilers are
2554 supported: an instrumenting profiler (named \fBls\fP), and a sampling
2555 profiler (named \fBstat\fP).
2556 .sp
2557 In this section description, \(aqprofiling data\(aq stands for the raw data
2558 collected during profiling, while \(aqprofiling report\(aq stands for a
2559 statistical text report generated from the profiling data.
2560 .INDENT 0.0
2561 .TP
2562 .B \fBenabled\fP
2563 .sp
2564 Enable the profiler.
2565 (default: false)
2566 .sp
2567 This is equivalent to passing \fB\-\-profile\fP on the command line.
2568 .TP
2569 .B \fBtype\fP
2570 .sp
2571 The type of profiler to use.
2572 (default: stat)
2573 .INDENT 7.0
2574 .TP
2575 .B \fBls\fP
2576 .sp
2577 Use Python\(aqs built\-in instrumenting profiler. This profiler
2578 works on all platforms, but each line number it reports is the
2579 first line of a function. This restriction makes it difficult to
2580 identify the expensive parts of a non\-trivial function.
2581 .TP
2582 .B \fBstat\fP
2583 .sp
2584 Use a statistical profiler, statprof. This profiler is most
2585 useful for profiling commands that run for longer than about 0.1
2586 seconds.
2587 .TP
2588 .B \fBpy\-spy\fP
2589 .sp
2590 use the py\-spy profiler. A external py\-spy executable must be available.
2591 (Make sure to check \fIprofiling.output\fP config to write the result.)
2592 .UNINDENT
2593 .TP
2594 .B \fBformat\fP
2595 .sp
2596 Profiling format. Specific to the \fBls\fP instrumenting profiler.
2597 (default: text)
2598 .INDENT 7.0
2599 .TP
2600 .B \fBtext\fP
2601 .sp
2602 Generate a profiling report. When saving to a file, it should be
2603 noted that only the report is saved, and the profiling data is
2604 not kept.
2605 .TP
2606 .B \fBkcachegrind\fP
2607 .sp
2608 Format profiling data for kcachegrind use: when saving to a
2609 file, the generated file can directly be loaded into
2610 kcachegrind.
2611 .UNINDENT
2612 .TP
2613 .B \fBstatformat\fP
2614 .sp
2615 Profiling format for the \fBstat\fP profiler.
2616 (default: hotpath)
2617 .INDENT 7.0
2618 .TP
2619 .B \fBhotpath\fP
2620 .sp
2621 Show a tree\-based display containing the hot path of execution (where
2622 most time was spent).
2623 .TP
2624 .B \fBbymethod\fP
2625 .sp
2626 Show a table of methods ordered by how frequently they are active.
2627 .TP
2628 .B \fBbyline\fP
2629 .sp
2630 Show a table of lines in files ordered by how frequently they are active.
2631 .TP
2632 .B \fBjson\fP
2633 .sp
2634 Render profiling data as JSON.
2635 .UNINDENT
2636 .TP
2637 .B \fBfreq\fP
2638 .sp
2639 Sampling frequency. Specific to the \fBstat\fP sampling profiler.
2640 (default: 1000)
2641 .TP
2642 .B \fBoutput\fP
2643 .sp
2644 File path where profiling data or report should be saved. If the
2645 file exists, it is replaced. (default: None, data is printed on
2646 stderr)
2647 .TP
2648 .B \fBoutput\-dir\fP
2649 .sp
2650 Directory in which profiling data or report should be saved. The data will be written to a file with the naming scheme "hg\-profile\-{TIMESTAMP}\-{PID}.prof". If both \fBoutput\fP and \fBoutput\-dir\fP are specified, \fBoutput\fP will take precedence.
2651 .TP
2652 .B \fBoutput\-dir:create\fP
2653 .sp
2654 Create output\-dir if it doesn\(aqt already exist.
2655 .TP
2656 .B \fBsort\fP
2657 .sp
2658 Sort field. Specific to the \fBls\fP instrumenting profiler.
2659 One of \fBcallcount\fP, \fBreccallcount\fP, \fBtotaltime\fP and
2660 \fBinlinetime\fP.
2661 (default: inlinetime)
2662 .TP
2663 .B \fBtime\-track\fP
2664 .sp
2665 Control if the stat profiler track \fBcpu\fP or \fBreal\fP time.
2666 (default: \fBcpu\fP on Windows, otherwise \fBreal\fP)
2667 .TP
2668 .B \fBlimit\fP
2669 .sp
2670 Number of lines to show. Specific to the \fBls\fP instrumenting profiler.
2671 (default: 30)
2672 .TP
2673 .B \fBnested\fP
2674 .sp
2675 Show at most this number of lines of drill\-down info after each main entry.
2676 This can help explain the difference between Total and Inline.
2677 Specific to the \fBls\fP instrumenting profiler.
2678 (default: 0)
2679 .TP
2680 .B \fBshowmin\fP
2681 .sp
2682 Minimum fraction of samples an entry must have for it to be displayed.
2683 Can be specified as a float between \fB0.0\fP and \fB1.0\fP or can have a
2684 \fB%\fP afterwards to allow values up to \fB100\fP. e.g. \fB5%\fP.
2685 .sp
2686 Only used by the \fBstat\fP profiler.
2687 .sp
2688 For the \fBhotpath\fP format, default is \fB0.05\fP.
2689 For the \fBchrome\fP format, default is \fB0.005\fP.
2690 .sp
2691 The option is unused on other formats.
2692 .TP
2693 .B \fBshowmax\fP
2694 .sp
2695 Maximum fraction of samples an entry can have before it is ignored in
2696 display. Values format is the same as \fBshowmin\fP.
2697 .sp
2698 Only used by the \fBstat\fP profiler.
2699 .sp
2700 For the \fBchrome\fP format, default is \fB0.999\fP.
2701 .sp
2702 The option is unused on other formats.
2703 .TP
2704 .B \fBshowtime\fP
2705 .sp
2706 Show time taken as absolute durations, in addition to percentages.
2707 Only used by the \fBhotpath\fP format.
2708 (default: true)
2709 .UNINDENT
2710 .SS \fBprogress\fP
2711 .sp
2712 Mercurial commands can draw progress bars that are as informative as
2713 possible. Some progress bars only offer indeterminate information, while others
2714 have a definite end point.
2715 .INDENT 0.0
2716 .TP
2717 .B \fBdebug\fP
2718 .sp
2719 Whether to print debug info when updating the progress bar. (default: False)
2720 .TP
2721 .B \fBdelay\fP
2722 .sp
2723 Number of seconds (float) before showing the progress bar. (default: 3)
2724 .TP
2725 .B \fBchangedelay\fP
2726 .sp
2727 Minimum delay before showing a new topic. When set to less than 3 * refresh,
2728 that value will be used instead. (default: 1)
2729 .TP
2730 .B \fBestimateinterval\fP
2731 .sp
2732 Maximum sampling interval in seconds for speed and estimated time
2733 calculation. (default: 60)
2734 .TP
2735 .B \fBrefresh\fP
2736 .sp
2737 Time in seconds between refreshes of the progress bar. (default: 0.1)
2738 .TP
2739 .B \fBformat\fP
2740 .sp
2741 Format of the progress bar.
2742 .sp
2743 Valid entries for the format field are \fBtopic\fP, \fBbar\fP, \fBnumber\fP,
2744 \fBunit\fP, \fBestimate\fP, \fBspeed\fP, and \fBitem\fP. \fBitem\fP defaults to the
2745 last 20 characters of the item, but this can be changed by adding either
2746 \fB\-<num>\fP which would take the last num characters, or \fB+<num>\fP for the
2747 first num characters.
2748 .sp
2749 (default: topic bar number estimate)
2750 .TP
2751 .B \fBwidth\fP
2752 .sp
2753 If set, the maximum width of the progress information (that is, min(width,
2754 term width) will be used).
2755 .TP
2756 .B \fBclear\-complete\fP
2757 .sp
2758 Clear the progress bar after it\(aqs done. (default: True)
2759 .TP
2760 .B \fBdisable\fP
2761 .sp
2762 If true, don\(aqt show a progress bar.
2763 .TP
2764 .B \fBassume\-tty\fP
2765 .sp
2766 If true, ALWAYS show a progress bar, unless disable is given.
2767 .UNINDENT
2768 .SS \fBrebase\fP
2769 .INDENT 0.0
2770 .TP
2771 .B \fBevolution.allowdivergence\fP
2772 .sp
2773 Default to False, when True allow creating divergence when performing
2774 rebase of obsolete changesets.
2775 .UNINDENT
2776 .SS \fBrevsetalias\fP
2777 .sp
2778 Alias definitions for revsets. See \%\fBhg help revsets\fP\: for details.
2779 .SS \fBrewrite\fP
2780 .INDENT 0.0
2781 .TP
2782 .B \fBbackup\-bundle\fP
2783 .sp
2784 Whether to save stripped changesets to a bundle file. (default: True)
2785 .TP
2786 .B \fBupdate\-timestamp\fP
2787 .sp
2788 If true, updates the date and time of the changeset to current. It is only
2789 applicable for \fIhg amend\fP, \fIhg commit \-\-amend\fP and \fIhg uncommit\fP in the
2790 current version.
2791 .UNINDENT
2792 .sp
2793 \fBempty\-successor\fP
2794 .INDENT 0.0
2795 .INDENT 3.5
2796 .sp
2797 Control what happens with empty successors that are the result of rewrite
2798 operations. If set to \fBskip\fP, the successor is not created. If set to
2799 \fBkeep\fP, the empty successor is created and kept.
2800 .sp
2801 Currently, only the rebase and absorb commands consider this configuration.
2802 (EXPERIMENTAL)
2803 .UNINDENT
2804 .UNINDENT
2805 .SS \fBrhg\fP
2806 .sp
2807 The pure Rust fast\-path for Mercurial. See \fIrust/README.md\fP in the Mercurial repository.
2808 .INDENT 0.0
2809 .TP
2810 .B \fBfallback\-executable\fP
2811 .sp
2812 Path to the executable to run in a sub\-process when falling back to
2813 another implementation of Mercurial.
2814 .TP
2815 .B \fBfallback\-immediately\fP
2816 .sp
2817 Fall back to \fBfallback\-executable\fP as soon as possible, regardless of
2818 the \fIrhg.on\-unsupported\fP configuration. Useful for debugging, for example to
2819 bypass \fIrhg\fP if the deault \fIhg\fP points to \fIrhg\fP.
2820 .sp
2821 Note that because this requires loading the configuration, it is possible
2822 that \fIrhg\fP error out before being able to fall back.
2823 .TP
2824 .B \fBignored\-extensions\fP
2825 .sp
2826 Controls which extensions should be ignored by \fIrhg\fP. By default, \fIrhg\fP
2827 triggers the \fIrhg.on\-unsupported\fP behavior any unsupported extensions.
2828 Users can disable that behavior when they know that a given extension
2829 does not need support from \fIrhg\fP.
2830 .sp
2831 Expects a list of extension names, or \fB*\fP to ignore all extensions.
2832 .sp
2833 Note: \fB*:<suboption>\fP is also a valid extension name for this
2834 configuration option.
2835 As of this writing, the only valid "global" suboption is \fBrequired\fP.
2836 .TP
2837 .B \fBon\-unsupported\fP
2838 .sp
2839 Controls the behavior of \fIrhg\fP when detecting unsupported features.
2840 .sp
2841 Possible values are \fIabort\fP (default), \fIabort\-silent\fP and \fIfallback\fP.
2842 .INDENT 7.0
2843 .TP
2844 .B \fBabort\fP
2845 .sp
2846 Print an error message describing what feature is not supported,
2847 and exit with code 252
2848 .TP
2849 .B \fBabort\-silent\fP
2850 .sp
2851 Silently exit with code 252
2852 .TP
2853 .B \fBfallback\fP
2854 .sp
2855 Try running the fallback executable with the same parameters
2856 (and trace the fallback reason, use \fIRUST_LOG=trace\fP to see).
2857 .UNINDENT
2858 .UNINDENT
2859 .SS \fBshare\fP
2860 .INDENT 0.0
2861 .TP
2862 .B \fBsafe\-mismatch.source\-safe\fP
2863 .sp
2864 Controls what happens when the shared repository does not use the
2865 share\-safe mechanism but its source repository does.
2866 .sp
2867 Possible values are \fIabort\fP (default), \fIallow\fP, \fIupgrade\-abort\fP and
2868 \fIupgrade\-allow\fP.
2869 .INDENT 7.0
2870 .TP
2871 .B \fBabort\fP
2872 .sp
2873 Disallows running any command and aborts
2874 .TP
2875 .B \fBallow\fP
2876 .sp
2877 Respects the feature presence in the share source
2878 .TP
2879 .B \fBupgrade\-abort\fP
2880 .sp
2881 Tries to upgrade the share to use share\-safe; if it fails, aborts
2882 .TP
2883 .B \fBupgrade\-allow\fP
2884 .sp
2885 Tries to upgrade the share; if it fails, continue by
2886 respecting the share source setting
2887 .UNINDENT
2888 .sp
2889 Check \%\fBhg help config.format.use\-share\-safe\fP\: for details about the
2890 share\-safe feature.
2891 .TP
2892 .B \fBsafe\-mismatch.source\-safe:verbose\-upgrade\fP
2893 .sp
2894 Display a message when upgrading, (default: True)
2895 .TP
2896 .B \fBsafe\-mismatch.source\-safe.warn\fP
2897 .sp
2898 Shows a warning on operations if the shared repository does not use
2899 share\-safe, but the source repository does.
2900 (default: True)
2901 .TP
2902 .B \fBsafe\-mismatch.source\-not\-safe\fP
2903 .sp
2904 Controls what happens when the shared repository uses the share\-safe
2905 mechanism but its source does not.
2906 .sp
2907 Possible values are \fIabort\fP (default), \fIallow\fP, \fIdowngrade\-abort\fP and
2908 \fIdowngrade\-allow\fP.
2909 .INDENT 7.0
2910 .TP
2911 .B \fBabort\fP
2912 .sp
2913 Disallows running any command and aborts
2914 .TP
2915 .B \fBallow\fP
2916 .sp
2917 Respects the feature presence in the share source
2918 .TP
2919 .B \fBdowngrade\-abort\fP
2920 .sp
2921 Tries to downgrade the share to not use share\-safe; if it fails, aborts
2922 .TP
2923 .B \fBdowngrade\-allow\fP
2924 .sp
2925 Tries to downgrade the share to not use share\-safe;
2926 if it fails, continue by respecting the shared source setting
2927 .UNINDENT
2928 .sp
2929 Check \%\fBhg help config.format.use\-share\-safe\fP\: for details about the
2930 share\-safe feature.
2931 .TP
2932 .B \fBsafe\-mismatch.source\-not\-safe:verbose\-upgrade\fP
2933 .sp
2934 Display a message when upgrading, (default: True)
2935 .TP
2936 .B \fBsafe\-mismatch.source\-not\-safe.warn\fP
2937 .sp
2938 Shows a warning on operations if the shared repository uses share\-safe,
2939 but the source repository does not.
2940 (default: True)
2941 .UNINDENT
2942 .SS \fBstorage\fP
2943 .sp
2944 Control the strategy Mercurial uses internally to store history. Options in this
2945 category impact performance and repository size.
2946 .INDENT 0.0
2947 .TP
2948 .B \fBall\-slow\-path\fP
2949 .sp
2950 Control the behavior of Mercurial when lacking performant code
2951 .sp
2952 Some format features might only have a fast implementation when a specific
2953 flavor is installed (e.g. when the Rust extensions are available). A slow pure
2954 Python implementation might be available to help with converting the repository
2955 to another format or to perform a few accesses in an automation context.
2956 Using such accesses might result in Mercurial becoming multiple time slower
2957 than usual.
2958 .sp
2959 Acceptable values:
2960 .sp
2961 \fBallow\fP: Silently use the slower implementation to access the repository.
2962 \fBwarn\fP: Warn, but use the slower implementation to access the repository.
2963 \fBabort\fP: Prevent access to such repositories. (This is the default)
2964 .sp
2965 See the individual "storage.*.slow\-path" configs for details. These options can
2966 override the default.
2967 .TP
2968 .B \fBrevlog.dirstate\-v2.slow\-path\fP
2969 .sp
2970 Control the behavior of Mercurial when using a repository with the "dirstate\-v2"
2971 feature with an installation of Mercurial without a fast implementation for
2972 the feature:
2973 .sp
2974 \fBallow\fP: Silently use the slower implementation to access the repository.
2975 \fBwarn\fP: Warn, but use the slower implementation to access the repository.
2976 \fBdefault\fP: use value from the \fIstorage.all\-slow\-path\fP value.
2977 \fBabort\fP: Prevent access to such repositories. (This is the default)
2978 .sp
2979 For details on the "dirstate\-v2" feature, see:
2980 \%\fBhg help config.format.use\-dirstate\-v2\fP\:.
2981 .TP
2982 .B \fBrevlog.exchange\-compressed\-delta\fP
2983 .sp
2984 Controls whether the repository might emit or request
2985 compressed deltas in bundles.
2986 .sp
2987 Exchanging deltas in their compressed form results in larger bundles and higher
2988 bandwidth usage, but reduces CPU usage on both ends and helps the main server
2989 to use agressive compression levels to share that benefit with ordinary clients
2990 pulling from them.
2991 .sp
2992 Even when activated, the exchange of compressed deltas will only be used if the
2993 exchange uses a changegroup format that supports it (04 and above) and the
2994 receiving end supports it.
2995 .TP
2996 .B \fBrevlog.issue6528.fix\-incoming\fP
2997 .sp
2998 Version 5.8 of Mercurial had a bug leading to altering the parent of file
2999 revision with copy information (or any other metadata) on exchange. This
3000 leads to the copy metadata to be overlooked by various internal logic. The
3001 issue was fixed in Mercurial 5.8.1.
3002 (See \%https://bz.mercurial\-scm.org/show_bug.cgi?id=6528\: for details)
3003 .sp
3004 As a result Mercurial is now checking and fixing incoming file revisions to
3005 make sure there parents are in the right order. This behavior can be
3006 disabled by setting this option to \fIno\fP. This apply to revisions added
3007 through push, pull, clone and unbundle.
3008 .sp
3009 To fix affected revisions that already exist within the repository, one can
3010 use \%\fBhg debug\-repair\-issue\-6528\fP\:.
3011 .UNINDENT
3012 .INDENT 0.0
3013 .TP
3014 .B \fBrevlog.delta\-parent\-search.candidate\-group\-chunk\-size\fP
3015 .sp
3016 Tune the number of delta bases the storage will consider in the
3017 same "round" of search. In some very rare cases, using a smaller value
3018 might result in faster processing at the possible expense of storage
3019 space, while using larger values might result in slower processing at the
3020 possible benefit of storage space. A value of "0" means no limitation.
3021 .sp
3022 default: no limitation
3023 .sp
3024 This is unlikely that you\(aqll have to tune this configuration. If you think
3025 you do, consider talking with the mercurial developer community about your
3026 repositories.
3027 .UNINDENT
3028 .INDENT 0.0
3029 .TP
3030 .B \fBrevlog.mmap.index\fP
3031 .sp
3032 Whether to use the Operating System "memory mapping" feature (when
3033 possible) to access the revlog index. This improves performance
3034 and reduces memory pressure.
3035 .UNINDENT
3036 .sp
3037 \fBrevlog.mmap.index:size\-threshold\fP
3038 .INDENT 0.0
3039 .INDENT 3.5
3040 .sp
3041 The size of index above which to use the "memory mapping" feature.
3042 .UNINDENT
3043 .UNINDENT
3044 .INDENT 0.0
3045 .TP
3046 .B \fBrevlog.optimize\-delta\-parent\-choice\fP
3047 .sp
3048 When storing a merge revision, both parents will be equally considered as
3049 a possible delta base. This results in better delta selection and improved
3050 revlog compression. This option is enabled by default.
3051 .sp
3052 Turning this option off can result in large increase of repository size for
3053 repository with many merges.
3054 .TP
3055 .B \fBrevlog.persistent\-nodemap.mmap\fP
3056 .sp
3057 Whether to use the Operating System "memory mapping" feature (when
3058 possible) to access the persistent nodemap data. This improve performance
3059 and reduce memory pressure.
3060 .sp
3061 Default to True.
3062 .sp
3063 For details on the "persistent\-nodemap" feature, see:
3064 \%\fBhg help config.format.use\-persistent\-nodemap\fP\:.
3065 .TP
3066 .B \fBrevlog.persistent\-nodemap.slow\-path\fP
3067 .sp
3068 Control the behavior of Mercurial when using a repository with a "persistent"
3069 nodemap with an installation of Mercurial without a fast implementation for
3070 the feature:
3071 .sp
3072 \fBallow\fP: Silently use the slower implementation to access the repository.
3073 \fBwarn\fP: Warn, but use the slower implementation to access the repository.
3074 \fBdefault\fP: use the value from the \fIstorage.all\-slow\-path\fP value.
3075 \fBabort\fP: Prevent access to such repositories. (This is the default)
3076 .sp
3077 For details on the "persistent\-nodemap" feature, see:
3078 \%\fBhg help config.format.use\-persistent\-nodemap\fP\:.
3079 .TP
3080 .B \fBrevlog.reuse\-external\-delta\-parent\fP
3081 .sp
3082 Control the order in which delta parents are considered when adding new
3083 revisions from an external source.
3084 (typically: apply bundle from \fIhg pull\fP or \fIhg push\fP).
3085 .sp
3086 New revisions are usually provided as a delta against other revisions. By
3087 default, Mercurial will try to reuse this delta first, therefore using the
3088 same "delta parent" as the source. Directly using delta\(aqs from the source
3089 reduces CPU usage and usually speeds up operation. However, in some case,
3090 the source might have sub\-optimal delta bases and forcing their reevaluation
3091 is useful. For example, pushes from an old client could have sub\-optimal
3092 delta\(aqs parent that the server want to optimize. (lack of general delta, bad
3093 parents, choice, lack of sparse\-revlog, etc).
3094 .sp
3095 This option is enabled by default. Turning it off will ensure bad delta
3096 parent choices from older client do not propagate to this repository, at
3097 the cost of a small increase in CPU consumption.
3098 .sp
3099 Note: this option only control the order in which delta parents are
3100 considered. Even when disabled, the existing delta from the source will be
3101 reused if the same delta parent is selected.
3102 .TP
3103 .B \fBrevlog.reuse\-external\-delta\fP
3104 .sp
3105 Control the reuse of delta from external source.
3106 (typically: apply bundle from \fIhg pull\fP or \fIhg push\fP).
3107 .sp
3108 New revisions are usually provided as a delta against another revision. By
3109 default, Mercurial will not recompute the same delta again, trusting
3110 externally provided deltas. There have been rare cases of small adjustment
3111 to the diffing algorithm in the past. So in some rare case, recomputing
3112 delta provided by ancient clients can provides better results. Disabling
3113 this option means going through a full delta recomputation for all incoming
3114 revisions. It means a large increase in CPU usage and will slow operations
3115 down.
3116 .sp
3117 This option is enabled by default. When disabled, it also disables the
3118 related \fBstorage.revlog.reuse\-external\-delta\-parent\fP option.
3119 .TP
3120 .B \fBrevlog.reuse\-external\-delta\-compression\fP
3121 .sp
3122 When true, reuse the compression of incoming deltas
3123 when receiving a compressed delta if its compression type is compatible
3124 with the one used by the revlog.
3125 .TP
3126 .B \fBrevlog.zlib.level\fP
3127 .sp
3128 Zlib compression level used when storing data into the repository. Accepted
3129 Value range from 1 (lowest compression) to 9 (highest compression). Zlib
3130 default value is 6.
3131 .TP
3132 .B \fBrevlog.zstd.level\fP
3133 .sp
3134 zstd compression level used when storing data into the repository. Accepted
3135 Value range from 1 (lowest compression) to 22 (highest compression).
3136 (default 3)
3137 .UNINDENT
3138 .SS \fBserver\fP
3139 .sp
3140 Controls generic server settings.
3141 .INDENT 0.0
3142 .TP
3143 .B \fBbookmarks\-pushkey\-compat\fP
3144 .sp
3145 Trigger pushkey hook when being pushed bookmark updates. This config exist
3146 for compatibility purpose (default to True)
3147 .sp
3148 If you use \fBpushkey\fP and \fBpre\-pushkey\fP hooks to control bookmark
3149 movement we recommend you migrate them to \fBtxnclose\-bookmark\fP and
3150 \fBpretxnclose\-bookmark\fP.
3151 .TP
3152 .B \fBcompressionengines\fP
3153 .sp
3154 List of compression engines and their relative priority to advertise
3155 to clients.
3156 .sp
3157 The order of compression engines determines their priority, the first
3158 having the highest priority. If a compression engine is not listed
3159 here, it won\(aqt be advertised to clients.
3160 .sp
3161 If not set (the default), built\-in defaults are used. Run
3162 \%\fBhg debuginstall\fP\: to list available compression engines and their
3163 default wire protocol priority.
3164 .sp
3165 Older Mercurial clients only support zlib compression and this setting
3166 has no effect for legacy clients.
3167 .TP
3168 .B \fBuncompressed\fP
3169 .sp
3170 Whether to allow clients to clone a repository using the
3171 uncompressed streaming protocol. This transfers about 40% more
3172 data than a regular clone, but uses less memory and CPU on both
3173 server and client. Over a LAN (100 Mbps or better) or a very fast
3174 WAN, an uncompressed streaming clone is a lot faster (~10x) than a
3175 regular clone. Over most WAN connections (anything slower than
3176 about 6 Mbps), uncompressed streaming is slower, because of the
3177 extra data transfer overhead. This mode will also temporarily hold
3178 the write lock while determining what data to transfer.
3179 (default: True)
3180 .TP
3181 .B \fBuncompressedallowsecret\fP
3182 .sp
3183 Whether to allow stream clones when the repository contains secret
3184 changesets. (default: False)
3185 .TP
3186 .B \fBpreferuncompressed\fP
3187 .sp
3188 When set, clients will try to use the uncompressed streaming
3189 protocol. (default: False)
3190 .TP
3191 .B \fBdisablefullbundle\fP
3192 .sp
3193 When set, servers will refuse attempts to do pull\-based clones.
3194 If this option is set, \fBpreferuncompressed\fP and/or clone bundles
3195 are highly recommended. Partial clones will still be allowed.
3196 (default: False)
3197 .TP
3198 .B \fBstreamunbundle\fP
3199 .sp
3200 When set, servers will apply data sent from the client directly,
3201 otherwise it will be written to a temporary file first. This option
3202 effectively prevents concurrent pushes.
3203 .TP
3204 .B \fBpullbundle\fP
3205 .sp
3206 When set, the server will check pullbundles.manifest for bundles
3207 covering the requested heads and common nodes. The first matching
3208 entry will be streamed to the client.
3209 .sp
3210 For HTTP transport, the stream will still use zlib compression
3211 for older clients.
3212 .TP
3213 .B \fBconcurrent\-push\-mode\fP
3214 .sp
3215 Level of allowed race condition between two pushing clients.
3216 .INDENT 7.0
3217 .IP \(bu 2
3218 .
3219 \(aqstrict\(aq: push is abort if another client touched the repository
3220 while the push was preparing.
3221 .IP \(bu 2
3222 .
3223 \(aqcheck\-related\(aq: push is only aborted if it affects head that got also
3224 affected while the push was preparing. (default since 5.4)
3225 .UNINDENT
3226 .sp
3227 \(aqcheck\-related\(aq only takes effect for compatible clients (version
3228 4.3 and later). Older clients will use \(aqstrict\(aq.
3229 .TP
3230 .B \fBvalidate\fP
3231 .sp
3232 Whether to validate the completeness of pushed changesets by
3233 checking that all new file revisions specified in manifests are
3234 present. (default: False)
3235 .TP
3236 .B \fBmaxhttpheaderlen\fP
3237 .sp
3238 Instruct HTTP clients not to send request headers longer than this
3239 many bytes. (default: 1024)
3240 .TP
3241 .B \fBbundle1\fP
3242 .sp
3243 Whether to allow clients to push and pull using the legacy bundle1
3244 exchange format. (default: True)
3245 .TP
3246 .B \fBbundle1gd\fP
3247 .sp
3248 Like \fBbundle1\fP but only used if the repository is using the
3249 \fIgeneraldelta\fP storage format. (default: True)
3250 .TP
3251 .B \fBbundle1.push\fP
3252 .sp
3253 Whether to allow clients to push using the legacy bundle1 exchange
3254 format. (default: True)
3255 .TP
3256 .B \fBbundle1gd.push\fP
3257 .sp
3258 Like \fBbundle1.push\fP but only used if the repository is using the
3259 \fIgeneraldelta\fP storage format. (default: True)
3260 .TP
3261 .B \fBbundle1.pull\fP
3262 .sp
3263 Whether to allow clients to pull using the legacy bundle1 exchange
3264 format. (default: True)
3265 .TP
3266 .B \fBbundle1gd.pull\fP
3267 .sp
3268 Like \fBbundle1.pull\fP but only used if the repository is using the
3269 \fIgeneraldelta\fP storage format. (default: True)
3270 .sp
3271 Large repositories using the \fIgeneraldelta\fP storage format should
3272 consider setting this option because converting \fIgeneraldelta\fP
3273 repositories to the exchange format required by the bundle1 data
3274 format can consume a lot of CPU.
3275 .TP
3276 .B \fBbundle2.stream\fP
3277 .sp
3278 Whether to allow clients to pull using the bundle2 streaming protocol.
3279 (default: True)
3280 .TP
3281 .B \fBzliblevel\fP
3282 .sp
3283 Integer between \fB\-1\fP and \fB9\fP that controls the zlib compression level
3284 for wire protocol commands that send zlib compressed output (notably the
3285 commands that send repository history data).
3286 .sp
3287 The default (\fB\-1\fP) uses the default zlib compression level, which is
3288 likely equivalent to \fB6\fP. \fB0\fP means no compression. \fB9\fP means
3289 maximum compression.
3290 .sp
3291 Setting this option allows server operators to make trade\-offs between
3292 bandwidth and CPU used. Lowering the compression lowers CPU utilization
3293 but sends more bytes to clients.
3294 .sp
3295 This option only impacts the HTTP server.
3296 .TP
3297 .B \fBzstdlevel\fP
3298 .sp
3299 Integer between \fB1\fP and \fB22\fP that controls the zstd compression level
3300 for wire protocol commands. \fB1\fP is the minimal amount of compression and
3301 \fB22\fP is the highest amount of compression.
3302 .sp
3303 The default (\fB3\fP) should be significantly faster than zlib while likely
3304 delivering better compression ratios.
3305 .sp
3306 This option only impacts the HTTP server.
3307 .sp
3308 See also \fBserver.zliblevel\fP.
3309 .TP
3310 .B \fBview\fP
3311 .sp
3312 Repository filter used when exchanging revisions with the peer.
3313 .sp
3314 The default view (\fBserved\fP) excludes secret and hidden changesets.
3315 Another useful value is \fBimmutable\fP (no draft, secret or hidden
3316 changesets). (EXPERIMENTAL)
3317 .UNINDENT
3318 .SS \fBsmtp\fP
3319 .sp
3320 Configuration for extensions that need to send email messages.
3321 .INDENT 0.0
3322 .TP
3323 .B \fBhost\fP
3324 .sp
3325 Host name of mail server, e.g. "mail.example.com".
3326 .TP
3327 .B \fBport\fP
3328 .sp
3329 Optional. Port to connect to on mail server. (default: 465 if
3330 \fBtls\fP is smtps; 25 otherwise)
3331 .TP
3332 .B \fBtls\fP
3333 .sp
3334 Optional. Method to enable TLS when connecting to mail server: starttls,
3335 smtps or none. (default: none)
3336 .TP
3337 .B \fBusername\fP
3338 .sp
3339 Optional. User name for authenticating with the SMTP server.
3340 (default: None)
3341 .TP
3342 .B \fBpassword\fP
3343 .sp
3344 Optional. Password for authenticating with the SMTP server. If not
3345 specified, interactive sessions will prompt the user for a
3346 password; non\-interactive sessions will fail. (default: None)
3347 .TP
3348 .B \fBlocal_hostname\fP
3349 .sp
3350 Optional. The hostname that the sender can use to identify
3351 itself to the MTA.
3352 .UNINDENT
3353 .SS \fBsubpaths\fP
3354 .sp
3355 Subrepository source URLs can go stale if a remote server changes name
3356 or becomes temporarily unavailable. This section lets you define
3357 rewrite rules of the form:
3358 .sp
3359 .nf
3360 .ft C
3361 <pattern> = <replacement>
3362 .ft P
3363 .fi
3364 .sp
3365 where \fBpattern\fP is a regular expression matching a subrepository
3366 source URL and \fBreplacement\fP is the replacement string used to
3367 rewrite it. Groups can be matched in \fBpattern\fP and referenced in
3368 \fBreplacements\fP. For instance:
3369 .sp
3370 .nf
3371 .ft C
3372 http://server/(.*)\-hg/ = http://hg.server/\e1/
3373 .ft P
3374 .fi
3375 .sp
3376 rewrites \fBhttp://server/foo\-hg/\fP into \fBhttp://hg.server/foo/\fP.
3377 .sp
3378 Relative subrepository paths are first made absolute, and the
3379 rewrite rules are then applied on the full (absolute) path. If \fBpattern\fP
3380 doesn\(aqt match the full path, an attempt is made to apply it on the
3381 relative path alone. The rules are applied in definition order.
3382 .SS \fBsubrepos\fP
3383 .sp
3384 This section contains options that control the behavior of the
3385 subrepositories feature. See also \%\fBhg help subrepos\fP\:.
3386 .sp
3387 Security note: auditing in Mercurial is known to be insufficient to
3388 prevent clone\-time code execution with carefully constructed Git
3389 subrepos. It is unknown if a similar detect is present in Subversion
3390 subrepos. Both Git and Subversion subrepos are disabled by default
3391 out of security concerns. These subrepo types can be enabled using
3392 the respective options below.
3393 .INDENT 0.0
3394 .TP
3395 .B \fBallowed\fP
3396 .sp
3397 Whether subrepositories are allowed in the working directory.
3398 .sp
3399 When false, commands involving subrepositories (like \%\fBhg update\fP\:)
3400 will fail for all subrepository types.
3401 (default: true)
3402 .TP
3403 .B \fBhg:allowed\fP
3404 .sp
3405 Whether Mercurial subrepositories are allowed in the working
3406 directory. This option only has an effect if \fBsubrepos.allowed\fP
3407 is true.
3408 (default: true)
3409 .TP
3410 .B \fBgit:allowed\fP
3411 .sp
3412 Whether Git subrepositories are allowed in the working directory.
3413 This option only has an effect if \fBsubrepos.allowed\fP is true.
3414 .sp
3415 See the security note above before enabling Git subrepos.
3416 (default: false)
3417 .TP
3418 .B \fBsvn:allowed\fP
3419 .sp
3420 Whether Subversion subrepositories are allowed in the working
3421 directory. This option only has an effect if \fBsubrepos.allowed\fP
3422 is true.
3423 .sp
3424 See the security note above before enabling Subversion subrepos.
3425 (default: false)
3426 .UNINDENT
3427 .SS \fBtemplatealias\fP
3428 .sp
3429 Alias definitions for templates. See \%\fBhg help templates\fP\: for details.
3430 .SS \fBtemplates\fP
3431 .sp
3432 Use the \fB[templates]\fP section to define template strings.
3433 See \%\fBhg help templates\fP\: for details.
3434 .SS \fBtrusted\fP
3435 .sp
3436 Mercurial will not use the settings in the
3437 \fB.hg/hgrc\fP file from a repository if it doesn\(aqt belong to a trusted
3438 user or to a trusted group, as various hgrc features allow arbitrary
3439 commands to be run. This issue is often encountered when configuring
3440 hooks or extensions for shared repositories or servers. However,
3441 the web interface will use some safe settings from the \fB[web]\fP
3442 section.
3443 .sp
3444 This section specifies what users and groups are trusted. The
3445 current user is always trusted. To trust everybody, list a user or a
3446 group with name \fB*\fP. These settings must be placed in an
3447 \fIalready\-trusted file\fP to take effect, such as \fB$HOME/.hgrc\fP of the
3448 user or service running Mercurial.
3449 .INDENT 0.0
3450 .TP
3451 .B \fBusers\fP
3452 .sp
3453 Comma\-separated list of trusted users.
3454 .TP
3455 .B \fBgroups\fP
3456 .sp
3457 Comma\-separated list of trusted groups.
3458 .UNINDENT
3459 .SS \fBui\fP
3460 .sp
3461 User interface controls.
3462 .INDENT 0.0
3463 .TP
3464 .B \fBarchivemeta\fP
3465 .sp
3466 Whether to include the .hg_archival.txt file containing meta data
3467 (hashes for the repository base and for tip) in archives created
3468 by the \%\fBhg archive\fP\: command or downloaded via hgweb.
3469 (default: True)
3470 .TP
3471 .B \fBaskusername\fP
3472 .sp
3473 Whether to prompt for a username when committing. If True, and
3474 neither \fB$HGUSER\fP nor \fB$EMAIL\fP has been specified, then the user will
3475 be prompted to enter a username. If no username is entered, the
3476 default \fBUSER@HOST\fP is used instead.
3477 (default: False)
3478 .TP
3479 .B \fBclonebundles\fP
3480 .sp
3481 Whether the "clone bundles" feature is enabled.
3482 .sp
3483 When enabled, \%\fBhg clone\fP\: may download and apply a server\-advertised
3484 bundle file from a URL instead of using the normal exchange mechanism.
3485 .sp
3486 This can likely result in faster and more reliable clones.
3487 .sp
3488 (default: True)
3489 .TP
3490 .B \fBclonebundlefallback\fP
3491 .sp
3492 Whether failure to apply an advertised "clone bundle" from a server
3493 should result in fallback to a regular clone.
3494 .sp
3495 This is disabled by default because servers advertising "clone
3496 bundles" often do so to reduce server load. If advertised bundles
3497 start mass failing and clients automatically fall back to a regular
3498 clone, this would add significant and unexpected load to the server
3499 since the server is expecting clone operations to be offloaded to
3500 pre\-generated bundles. Failing fast (the default behavior) ensures
3501 clients don\(aqt overwhelm the server when "clone bundle" application
3502 fails.
3503 .sp
3504 (default: False)
3505 .TP
3506 .B \fBclonebundleprefers\fP
3507 .sp
3508 Defines preferences for which "clone bundles" to use.
3509 .sp
3510 Servers advertising "clone bundles" may advertise multiple available
3511 bundles. Each bundle may have different attributes, such as the bundle
3512 type and compression format. This option is used to prefer a particular
3513 bundle over another.
3514 .sp
3515 The following keys are defined by Mercurial:
3516 .INDENT 7.0
3517 .TP
3518 .B BUNDLESPEC
3519 .
3520 A bundle type specifier. These are strings passed to \%\fBhg bundle \-t\fP\:.
3521 e.g. \fBgzip\-v2\fP or \fBbzip2\-v1\fP.
3522 .TP
3523 .B COMPRESSION
3524 .
3525 The compression format of the bundle. e.g. \fBgzip\fP and \fBbzip2\fP.
3526 .UNINDENT
3527 .sp
3528 Server operators may define custom keys.
3529 .sp
3530 Example values: \fBCOMPRESSION=bzip2\fP,
3531 \fBBUNDLESPEC=gzip\-v2, COMPRESSION=gzip\fP.
3532 .sp
3533 By default, the first bundle advertised by the server is used.
3534 .TP
3535 .B \fBcolor\fP
3536 .sp
3537 When to colorize output. Possible value are Boolean ("yes" or "no"), or
3538 "debug", or "always". (default: "yes"). "yes" will use color whenever it
3539 seems possible. See \%\fBhg help color\fP\: for details.
3540 .TP
3541 .B \fBcommitsubrepos\fP
3542 .sp
3543 Whether to commit modified subrepositories when committing the
3544 parent repository. If False and one subrepository has uncommitted
3545 changes, abort the commit.
3546 (default: False)
3547 .TP
3548 .B \fBdebug\fP
3549 .sp
3550 Print debugging information. (default: False)
3551 .TP
3552 .B \fBeditor\fP
3553 .sp
3554 The editor to use during a commit. (default: \fB$EDITOR\fP or \fBvi\fP)
3555 .TP
3556 .B \fBfallbackencoding\fP
3557 .sp
3558 Encoding to try if it\(aqs not possible to decode the changelog using
3559 UTF\-8. (default: ISO\-8859\-1)
3560 .TP
3561 .B \fBgraphnodetemplate\fP
3562 .sp
3563 (DEPRECATED) Use \fBcommand\-templates.graphnode\fP instead.
3564 .TP
3565 .B \fBignore\fP
3566 .sp
3567 A file to read per\-user ignore patterns from. This file should be
3568 in the same format as a repository\-wide .hgignore file. Filenames
3569 are relative to the repository root. This option supports hook syntax,
3570 so if you want to specify multiple ignore files, you can do so by
3571 setting something like \fBignore.other = ~/.hgignore2\fP. For details
3572 of the ignore file format, see the \fBhgignore(5)\fP man page.
3573 .TP
3574 .B \fBinteractive\fP
3575 .sp
3576 Allow to prompt the user. (default: True)
3577 .TP
3578 .B \fBinterface\fP
3579 .sp
3580 Select the default interface for interactive features (default: text).
3581 Possible values are \(aqtext\(aq and \(aqcurses\(aq.
3582 .TP
3583 .B \fBinterface.chunkselector\fP
3584 .sp
3585 Select the interface for change recording (e.g. \%\fBhg commit \-i\fP\:).
3586 Possible values are \(aqtext\(aq and \(aqcurses\(aq.
3587 This config overrides the interface specified by ui.interface.
3588 .TP
3589 .B \fBlarge\-file\-limit\fP
3590 .sp
3591 Largest file size that gives no memory use warning.
3592 Possible values are integers or 0 to disable the check.
3593 Value is expressed in bytes by default, one can use standard units for
3594 convenience (e.g. 10MB, 0.1GB, etc) (default: 10MB)
3595 .TP
3596 .B \fBlogtemplate\fP
3597 .sp
3598 (DEPRECATED) Use \fBcommand\-templates.log\fP instead.
3599 .TP
3600 .B \fBmerge\fP
3601 .sp
3602 The conflict resolution program to use during a manual merge.
3603 For more information on merge tools see \%\fBhg help merge\-tools\fP\:.
3604 For configuring merge tools see the \fB[merge\-tools]\fP section.
3605 .TP
3606 .B \fBmergemarkers\fP
3607 .sp
3608 Sets the merge conflict marker label styling. The \fBdetailed\fP style
3609 uses the \fBcommand\-templates.mergemarker\fP setting to style the labels.
3610 The \fBbasic\fP style just uses \(aqlocal\(aq and \(aqother\(aq as the marker label.
3611 One of \fBbasic\fP or \fBdetailed\fP.
3612 (default: \fBbasic\fP)
3613 .TP
3614 .B \fBmergemarkertemplate\fP
3615 .sp
3616 (DEPRECATED) Use \fBcommand\-templates.mergemarker\fP instead.
3617 .TP
3618 .B \fBmessage\-output\fP
3619 .sp
3620 Where to write status and error messages. (default: \fBstdio\fP)
3621 .INDENT 7.0
3622 .TP
3623 .B \fBchannel\fP
3624 .sp
3625 Use separate channel for structured output. (Command\-server only)
3626 .TP
3627 .B \fBstderr\fP
3628 .sp
3629 Everything to stderr.
3630 .TP
3631 .B \fBstdio\fP
3632 .sp
3633 Status to stdout, and error to stderr.
3634 .UNINDENT
3635 .TP
3636 .B \fBorigbackuppath\fP
3637 .sp
3638 The path to a directory used to store generated .orig files. If the path is
3639 not a directory, one will be created. If set, files stored in this
3640 directory have the same name as the original file and do not have a .orig
3641 suffix.
3642 .TP
3643 .B \fBpaginate\fP
3644 .sp
3645 Control the pagination of command output (default: True). See \%\fBhg help pager\fP\:
3646 for details.
3647 .TP
3648 .B \fBpatch\fP
3649 .sp
3650 An optional external tool that \fBhg import\fP and some extensions
3651 will use for applying patches. By default Mercurial uses an
3652 internal patch utility. The external tool must work as the common
3653 Unix \fBpatch\fP program. In particular, it must accept a \fB\-p\fP
3654 argument to strip patch headers, a \fB\-d\fP argument to specify the
3655 current directory, a file name to patch, and a patch file to take
3656 from stdin.
3657 .sp
3658 It is possible to specify a patch tool together with extra
3659 arguments. For example, setting this option to \fBpatch \-\-merge\fP
3660 will use the \fBpatch\fP program with its 2\-way merge option.
3661 .TP
3662 .B \fBportablefilenames\fP
3663 .sp
3664 Check for portable filenames. Can be \fBwarn\fP, \fBignore\fP or \fBabort\fP.
3665 (default: \fBwarn\fP)
3666 .INDENT 7.0
3667 .TP
3668 .B \fBwarn\fP
3669 .sp
3670 Print a warning message on POSIX platforms, if a file with a non\-portable
3671 filename is added (e.g. a file with a name that can\(aqt be created on
3672 Windows because it contains reserved parts like \fBAUX\fP, reserved
3673 characters like \fB:\fP, or would cause a case collision with an existing
3674 file).
3675 .TP
3676 .B \fBignore\fP
3677 .sp
3678 Don\(aqt print a warning.
3679 .TP
3680 .B \fBabort\fP
3681 .sp
3682 The command is aborted.
3683 .TP
3684 .B \fBtrue\fP
3685 .sp
3686 Alias for \fBwarn\fP.
3687 .TP
3688 .B \fBfalse\fP
3689 .sp
3690 Alias for \fBignore\fP.
3691 .UNINDENT
3692 .sp
3693 On Windows, this configuration option is ignored and the command aborted.
3694 .TP
3695 .B \fBpre\-merge\-tool\-output\-template\fP
3696 .sp
3697 (DEPRECATED) Use \fBcommand\-template.pre\-merge\-tool\-output\fP instead.
3698 .TP
3699 .B \fBquiet\fP
3700 .sp
3701 Reduce the amount of output printed.
3702 (default: False)
3703 .TP
3704 .B \fBrelative\-paths\fP
3705 .sp
3706 Prefer relative paths in the UI.
3707 .TP
3708 .B \fBremotecmd\fP
3709 .sp
3710 Remote command to use for clone/push/pull operations.
3711 (default: \fBhg\fP)
3712 .TP
3713 .B \fBreport_untrusted\fP
3714 .sp
3715 Warn if a \fB.hg/hgrc\fP file is ignored due to not being owned by a
3716 trusted user or group.
3717 (default: True)
3718 .TP
3719 .B \fBslash\fP
3720 .sp
3721 (Deprecated. Use \fBslashpath\fP template filter instead.)
3722 .sp
3723 Display paths using a slash (\fB/\fP) as the path separator. This
3724 only makes a difference on systems where the default path
3725 separator is not the slash character (e.g. Windows uses the
3726 backslash character (\fB\e\fP)).
3727 (default: False)
3728 .TP
3729 .B \fBstatuscopies\fP
3730 .sp
3731 Display copies in the status command.
3732 .TP
3733 .B \fBssh\fP
3734 .sp
3735 Command to use for SSH connections. (default: \fBssh\fP)
3736 .TP
3737 .B \fBssherrorhint\fP
3738 .sp
3739 A hint shown to the user in the case of SSH error (e.g.
3740 \fBPlease see http://company/internalwiki/ssh.html\fP)
3741 .TP
3742 .B \fBstrict\fP
3743 .sp
3744 Require exact command names, instead of allowing unambiguous
3745 abbreviations. (default: False)
3746 .TP
3747 .B \fBstyle\fP
3748 .sp
3749 Name of style to use for command output.
3750 .TP
3751 .B \fBsupportcontact\fP
3752 .sp
3753 A URL where users should report a Mercurial traceback. Use this if you are a
3754 large organisation with its own Mercurial deployment process and crash
3755 reports should be addressed to your internal support.
3756 .TP
3757 .B \fBtextwidth\fP
3758 .sp
3759 Maximum width of help text. A longer line generated by \fBhg help\fP or
3760 \fBhg subcommand \-\-help\fP will be broken after white space to get this
3761 width or the terminal width, whichever comes first.
3762 A non\-positive value will disable this and the terminal width will be
3763 used. (default: 78)
3764 .TP
3765 .B \fBtimeout\fP
3766 .sp
3767 The timeout used when a lock is held (in seconds), a negative value
3768 means no timeout. (default: 600)
3769 .TP
3770 .B \fBtimeout.warn\fP
3771 .sp
3772 Time (in seconds) before a warning is printed about held lock. A negative
3773 value means no warning. (default: 0)
3774 .TP
3775 .B \fBtraceback\fP
3776 .sp
3777 Mercurial always prints a traceback when an unknown exception
3778 occurs. Setting this to True will make Mercurial print a traceback
3779 on all exceptions, even those recognized by Mercurial (such as
3780 IOError or MemoryError). (default: False)
3781 .UNINDENT
3782 .sp
3783 \fBtweakdefaults\fP
3784 .INDENT 0.0
3785 .INDENT 3.5
3786 .sp
3787 By default Mercurial\(aqs behavior changes very little from release
3788 to release, but over time the recommended config settings
3789 shift. Enable this config to opt in to get automatic tweaks to
3790 Mercurial\(aqs behavior over time. This config setting will have no
3791 effect if \fBHGPLAIN\fP is set or \fBHGPLAINEXCEPT\fP is set and does
3792 not include \fBtweakdefaults\fP. (default: False)
3793 .sp
3794 It currently means:
3795 .sp
3796 .nf
3797 .ft C
3798 [ui]
3799 # The rollback command is dangerous. As a rule, don\(aqt use it.
3800 rollback = False
3801 # Make \(gahg status\(ga report copy information
3802 statuscopies = yes
3803 # Prefer curses UIs when available. Revert to plain\-text with \(gatext\(ga.
3804 interface = curses
3805 # Make compatible commands emit cwd\-relative paths by default.
3806 relative\-paths = yes
3807
3808 [commands]
3809 # Grep working directory by default.
3810 grep.all\-files = True
3811 # Refuse to perform an \(gahg update\(ga that would cause a file content merge
3812 update.check = noconflict
3813 # Show conflicts information in \(gahg status\(ga
3814 status.verbose = True
3815 # Make \(gahg resolve\(ga with no action (like \(ga\-m\(ga) fail instead of re\-merging.
3816 resolve.explicit\-re\-merge = True
3817
3818 [diff]
3819 git = 1
3820 showfunc = 1
3821 word\-diff = 1
3822 .ft P
3823 .fi
3824 .UNINDENT
3825 .UNINDENT
3826 .INDENT 0.0
3827 .TP
3828 .B \fBusername\fP
3829 .sp
3830 The committer of a changeset created when running "commit".
3831 Typically a person\(aqs name and email address, e.g. \fBFred Widget
3832 <[email protected]>\fP. Environment variables in the
3833 username are expanded.
3834 .sp
3835 (default: \fB$EMAIL\fP or \fBusername@hostname\fP. If the username in
3836 hgrc is empty, e.g. if the system admin set \fBusername =\fP in the
3837 system hgrc, it has to be specified manually or in a different
3838 hgrc file)
3839 .TP
3840 .B \fBverbose\fP
3841 .sp
3842 Increase the amount of output printed. (default: False)
3843 .UNINDENT
3844 .SS \fBusage\fP
3845 .INDENT 0.0
3846 .TP
3847 .B \fBrepository\-role\fP
3848 .sp
3849 What this repository is used for.
3850 .sp
3851 This is used to adjust behavior and performance to best fit the repository purpose.
3852 .sp
3853 Currently recognised values are:
3854 .INDENT 7.0
3855 .IP \(bu 2
3856 .
3857 \fBdefault\fP: an all purpose repository
3858 .UNINDENT
3859 .TP
3860 .B \fBresources\fP
3861 .sp
3862 How aggressive Mercurial can be with resource usage:
3863 .sp
3864 Currently recognised values are:
3865 .INDENT 7.0
3866 .IP \(bu 2
3867 .
3868 \fBdefault\fP: the default value currently is equivalent to medium,
3869 .IP \(bu 2
3870 .
3871 \fBhigh\fP: allows for higher cpu, memory and disk\-space usage to improve
3872 performance of some operations.
3873 .IP \(bu 2
3874 .
3875 \fBmedium\fP: aims at a moderate resource usage,
3876 .IP \(bu 2
3877 .
3878 \fBlow\fP: reduces resources usage when possible, decreasing overall
3879 performance.
3880 .UNINDENT
3881 .sp
3882 For finer configuration, see also \fIusage.resources.cpu\fP,
3883 \fIusage.resources.disk\fP and \fIusage.resources.memory\fP.
3884 .TP
3885 .B \fBresources.cpu\fP
3886 .sp
3887 How aggressive Mercurial can be in terms of cpu usage:
3888 .sp
3889 Currently recognised values are:
3890 .INDENT 7.0
3891 .IP \(bu 2
3892 .
3893 \fBdefault\fP: the default value, inherits the value from \fIusage.resources\fP,
3894 .IP \(bu 2
3895 .
3896 \fBhigh\fP: allows for more aggressive cpu usage, improving storage quality
3897 and the performance of some operations at the expense of machine load
3898 .IP \(bu 2
3899 .
3900 \fImedium\fP: aims at a moderate cpu usage,
3901 .IP \(bu 2
3902 .
3903 \fIlow\fP: reduces cpu usage when possible, potentially at the expense of
3904 slower operations, increased storage and exchange payload.
3905 .UNINDENT
3906 .TP
3907 .B \fBresources.disk\fP
3908 .sp
3909 How aggressive Mercurial can be in terms of disk usage:
3910 .sp
3911 Currently recognised values are::
3912 \- \fBdefault\fP: the default value, inherits the value from \fIusage.resources\fP,
3913 .INDENT 7.0
3914 .IP \(bu 2
3915 .
3916 \fBhigh\fP: allows for more disk space usage where it can improve performance,
3917 .IP \(bu 2
3918 .
3919 \fBmedium\fP: aims at a moderate disk usage,
3920 .IP \(bu 2
3921 .
3922 \fBlow\fP: reduces disk usage when possible, decreasing performance in some
3923 occasion.
3924 .UNINDENT
3925 .TP
3926 .B \fBresources.memory\fP
3927 .sp
3928 How aggressive Mercurial can be in terms of memory usage:
3929 .sp
3930 Currently recognised values are:
3931 .sp
3932 .nf
3933 .ft C
3934 \- \(ga\(gadefault\(ga\(ga: the default value, inherits the value from \(gausage.resources\(ga,
3935 .ft P
3936 .fi
3937 .INDENT 7.0
3938 .IP \(bu 2
3939 .
3940 \fBhigh\fP: allows for more aggressive memory usage to improve overall
3941 performance,
3942 .IP \(bu 2
3943 .
3944 \fBmedium\fP: aims at a moderate memory usage,
3945 .IP \(bu 2
3946 .
3947 \fBlow\fP: reduces memory usage when possible at the cost of overall
3948 performance.
3949 .UNINDENT
3950 .TP
3951 .B \fBresources.bandwidth\fP
3952 .sp
3953 How aggressive Mercurial can be in terms of bandwidth usage:
3954 .sp
3955 Currently recognised values are:
3956 .sp
3957 .nf
3958 .ft C
3959 \- \(ga\(gadefault\(ga\(ga: the default value, inherits the value from \(gausage.resources\(ga,
3960 .ft P
3961 .fi
3962 .INDENT 7.0
3963 .IP \(bu 2
3964 .
3965 \fBhigh\fP: allows for more aggressive bandwidth usage to improve overall
3966 performance,
3967 .IP \(bu 2
3968 .
3969 \fBmedium\fP: aims at a moderate bandwidth usage,
3970 .IP \(bu 2
3971 .
3972 \fBlow\fP: reduces bandwidth usage when possible at the cost of overall
3973 performance.
3974 .UNINDENT
3975 .UNINDENT
3976 .SS \fBcommand\-templates\fP
3977 .sp
3978 Templates used for customizing the output of commands.
3979 .INDENT 0.0
3980 .TP
3981 .B \fBgraphnode\fP
3982 .sp
3983 The template used to print changeset nodes in an ASCII revision graph.
3984 (default: \fB{graphnode}\fP)
3985 .TP
3986 .B \fBlog\fP
3987 .sp
3988 Template string for commands that print changesets.
3989 .TP
3990 .B \fBmergemarker\fP
3991 .sp
3992 The template used to print the commit description next to each conflict
3993 marker during merge conflicts. See \%\fBhg help templates\fP\: for the template
3994 format.
3995 .sp
3996 Defaults to showing the hash, tags, branches, bookmarks, author, and
3997 the first line of the commit description.
3998 .sp
3999 If you use non\-ASCII characters in names for tags, branches, bookmarks,
4000 authors, and/or commit descriptions, you must pay attention to encodings of
4001 managed files. At template expansion, non\-ASCII characters use the encoding
4002 specified by the \fB\-\-encoding\fP global option, \fBHGENCODING\fP or other
4003 environment variables that govern your locale. If the encoding of the merge
4004 markers is different from the encoding of the merged files,
4005 serious problems may occur.
4006 .sp
4007 Can be overridden per\-merge\-tool, see the \fB[merge\-tools]\fP section.
4008 .TP
4009 .B \fBoneline\-summary\fP
4010 .sp
4011 A template used by \fIhg rebase\fP and other commands for showing a one\-line
4012 summary of a commit. If the template configured here is longer than one
4013 line, then only the first line is used.
4014 .sp
4015 The template can be overridden per command by defining a template in
4016 \fIoneline\-summary.<command>\fP, where \fI<command>\fP can be e.g. "rebase".
4017 .TP
4018 .B \fBpre\-merge\-tool\-output\fP
4019 .sp
4020 A template that is printed before executing an external merge tool. This can
4021 be used to print out additional context that might be useful to have during
4022 the conflict resolution, such as the description of the various commits
4023 involved or bookmarks/tags.
4024 .sp
4025 Additional information is available in the \fBlocal\(ga, \(ga\(gabase\fP, and \fBother\fP
4026 dicts. For example: \fB{local.label}\fP, \fB{base.name}\fP, or
4027 \fB{other.islink}\fP.
4028 .UNINDENT
4029 .SS \fBweb\fP
4030 .sp
4031 Web interface configuration. The settings in this section apply to
4032 both the builtin webserver (started by \%\fBhg serve\fP\:) and the script you
4033 run through a webserver (\fBhgweb.cgi\fP and the derivatives for FastCGI
4034 and WSGI).
4035 .sp
4036 The Mercurial webserver does no authentication (it does not prompt for
4037 usernames and passwords to validate \fIwho\fP users are), but it does do
4038 authorization (it grants or denies access for \fIauthenticated users\fP
4039 based on settings in this section). You must either configure your
4040 webserver to do authentication for you, or disable the authorization
4041 checks.
4042 .sp
4043 For a quick setup in a trusted environment, e.g., a private LAN, where
4044 you want it to accept pushes from anybody, you can use the following
4045 command line:
4046 .sp
4047 .nf
4048 .ft C
4049 $ hg \-\-config web.allow\-push=* \-\-config web.push_ssl=False serve
4050 .ft P
4051 .fi
4052 .sp
4053 Note that this will allow anybody to push anything to the server and
4054 that this should not be used for public servers.
4055 .sp
4056 The full set of options is:
4057 .INDENT 0.0
4058 .TP
4059 .B \fBaccesslog\fP
4060 .sp
4061 Where to output the access log. (default: stdout)
4062 .TP
4063 .B \fBaddress\fP
4064 .sp
4065 Interface address to bind to. (default: all)
4066 .TP
4067 .B \fBallow\-archive\fP
4068 .sp
4069 List of archive format (bz2, gz, zip) allowed for downloading.
4070 (default: empty)
4071 .TP
4072 .B \fBallowbz2\fP
4073 .sp
4074 (DEPRECATED) Whether to allow .tar.bz2 downloading of repository
4075 revisions.
4076 (default: False)
4077 .TP
4078 .B \fBallowgz\fP
4079 .sp
4080 (DEPRECATED) Whether to allow .tar.gz downloading of repository
4081 revisions.
4082 (default: False)
4083 .TP
4084 .B \fBallow\-pull\fP
4085 .sp
4086 Whether to allow pulling from the repository. (default: True)
4087 .TP
4088 .B \fBallow\-push\fP
4089 .sp
4090 Whether to allow pushing to the repository. If empty or not set,
4091 pushing is not allowed. If the special value \fB*\fP, any remote
4092 user can push, including unauthenticated users. Otherwise, the
4093 remote user must have been authenticated, and the authenticated
4094 user name must be present in this list. The contents of the
4095 allow\-push list are examined after the deny_push list.
4096 .TP
4097 .B \fBallow_read\fP
4098 .sp
4099 If the user has not already been denied repository access due to
4100 the contents of deny_read, this list determines whether to grant
4101 repository access to the user. If this list is not empty, and the
4102 user is unauthenticated or not present in the list, then access is
4103 denied for the user. If the list is empty or not set, then access
4104 is permitted to all users by default. Setting allow_read to the
4105 special value \fB*\fP is equivalent to it not being set (i.e. access
4106 is permitted to all users). The contents of the allow_read list are
4107 examined after the deny_read list.
4108 .TP
4109 .B \fBallowzip\fP
4110 .sp
4111 (DEPRECATED) Whether to allow .zip downloading of repository
4112 revisions. This feature creates temporary files.
4113 (default: False)
4114 .TP
4115 .B \fBarchivesubrepos\fP
4116 .sp
4117 Whether to recurse into subrepositories when archiving.
4118 (default: False)
4119 .TP
4120 .B \fBbaseurl\fP
4121 .sp
4122 Base URL to use when publishing URLs in other locations, so
4123 third\-party tools like email notification hooks can construct
4124 URLs. Example: \fBhttp://hgserver/repos/\fP.
4125 .TP
4126 .B \fBcacerts\fP
4127 .sp
4128 Path to file containing a list of PEM encoded certificate
4129 authority certificates. Environment variables and \fB~user\fP
4130 constructs are expanded in the filename. If specified on the
4131 client, then it will verify the identity of remote HTTPS servers
4132 with these certificates.
4133 .sp
4134 To disable SSL verification temporarily, specify \fB\-\-insecure\fP from
4135 command line.
4136 .sp
4137 You can use OpenSSL\(aqs CA certificate file if your platform has
4138 one. On most Linux systems this will be
4139 \fB/etc/ssl/certs/ca\-certificates.crt\fP. Otherwise you will have to
4140 generate this file manually. The form must be as follows:
4141 .sp
4142 .nf
4143 .ft C
4144 \-\-\-\-\-BEGIN CERTIFICATE\-\-\-\-\-
4145 \&... (certificate in base64 PEM encoding) ...
4146 \-\-\-\-\-END CERTIFICATE\-\-\-\-\-
4147 \-\-\-\-\-BEGIN CERTIFICATE\-\-\-\-\-
4148 \&... (certificate in base64 PEM encoding) ...
4149 \-\-\-\-\-END CERTIFICATE\-\-\-\-\-
4150 .ft P
4151 .fi
4152 .TP
4153 .B \fBcache\fP
4154 .sp
4155 Whether to support caching in hgweb. (default: True)
4156 .TP
4157 .B \fBcertificate\fP
4158 .sp
4159 Certificate to use when running \%\fBhg serve\fP\:.
4160 .TP
4161 .B \fBcollapse\fP
4162 .sp
4163 With \fBdescend\fP enabled, repositories in subdirectories are shown at
4164 a single level alongside repositories in the current path. With
4165 \fBcollapse\fP also enabled, repositories residing at a deeper level than
4166 the current path are grouped behind navigable directory entries that
4167 lead to the locations of these repositories. In effect, this setting
4168 collapses each collection of repositories found within a subdirectory
4169 into a single entry for that subdirectory. (default: False)
4170 .TP
4171 .B \fBcomparisoncontext\fP
4172 .sp
4173 Number of lines of context to show in side\-by\-side file comparison. If
4174 negative or the value \fBfull\fP, whole files are shown. (default: 5)
4175 .sp
4176 This setting can be overridden by a \fBcontext\fP request parameter to the
4177 \fBcomparison\fP command, taking the same values.
4178 .TP
4179 .B \fBcontact\fP
4180 .sp
4181 Name or email address of the person in charge of the repository.
4182 (default: ui.username or \fB$EMAIL\fP or "unknown" if unset or empty)
4183 .TP
4184 .B \fBcsp\fP
4185 .sp
4186 Send a \fBContent\-Security\-Policy\fP HTTP header with this value.
4187 .sp
4188 The value may contain a special string \fB%nonce%\fP, which will be replaced
4189 by a randomly\-generated one\-time use value. If the value contains
4190 \fB%nonce%\fP, \fBweb.cache\fP will be disabled, as caching undermines the
4191 one\-time property of the nonce. This nonce will also be inserted into
4192 \fB<script>\fP elements containing inline JavaScript.
4193 .sp
4194 Note: lots of HTML content sent by the server is derived from repository
4195 data. Please consider the potential for malicious repository data to
4196 "inject" itself into generated HTML content as part of your security
4197 threat model.
4198 .TP
4199 .B \fBdeny_push\fP
4200 .sp
4201 Whether to deny pushing to the repository. If empty or not set,
4202 push is not denied. If the special value \fB*\fP, all remote users are
4203 denied push. Otherwise, unauthenticated users are all denied, and
4204 any authenticated user name present in this list is also denied. The
4205 contents of the deny_push list are examined before the allow\-push list.
4206 .TP
4207 .B \fBdeny_read\fP
4208 .sp
4209 Whether to deny reading/viewing of the repository. If this list is
4210 not empty, unauthenticated users are all denied, and any
4211 authenticated user name present in this list is also denied access to
4212 the repository. If set to the special value \fB*\fP, all remote users
4213 are denied access (rarely needed ;). If deny_read is empty or not set,
4214 the determination of repository access depends on the presence and
4215 content of the allow_read list (see description). If both
4216 deny_read and allow_read are empty or not set, then access is
4217 permitted to all users by default. If the repository is being
4218 served via hgwebdir, denied users will not be able to see it in
4219 the list of repositories. The contents of the deny_read list have
4220 priority over (are examined before) the contents of the allow_read
4221 list.
4222 .TP
4223 .B \fBdescend\fP
4224 .sp
4225 hgwebdir indexes will not descend into subdirectories. Only repositories
4226 directly in the current path will be shown (other repositories are still
4227 available from the index corresponding to their containing path).
4228 .TP
4229 .B \fBdescription\fP
4230 .sp
4231 Textual description of the repository\(aqs purpose or contents.
4232 (default: "unknown")
4233 .TP
4234 .B \fBencoding\fP
4235 .sp
4236 Character encoding name. (default: the current locale charset)
4237 Example: "UTF\-8".
4238 .TP
4239 .B \fBerrorlog\fP
4240 .sp
4241 Where to output the error log. (default: stderr)
4242 .TP
4243 .B \fBguessmime\fP
4244 .sp
4245 Control MIME types for raw download of file content.
4246 Set to True to let hgweb guess the content type from the file
4247 extension. This will serve HTML files as \fBtext/html\fP and might
4248 allow cross\-site scripting attacks when serving untrusted
4249 repositories. (default: False)
4250 .TP
4251 .B \fBhidden\fP
4252 .sp
4253 Whether to hide the repository in the hgwebdir index.
4254 (default: False)
4255 .TP
4256 .B \fBipv6\fP
4257 .sp
4258 Whether to use IPv6. (default: False)
4259 .TP
4260 .B \fBlabels\fP
4261 .sp
4262 List of string \fIlabels\fP associated with the repository.
4263 .sp
4264 Labels are exposed as a template keyword and can be used to customize
4265 output. e.g. the \fBindex\fP template can group or filter repositories
4266 by labels and the \fBsummary\fP template can display additional content
4267 if a specific label is present.
4268 .TP
4269 .B \fBlogoimg\fP
4270 .sp
4271 File name of the logo image that some templates display on each page.
4272 The file name is relative to \fBstaticurl\fP. That is, the full path to
4273 the logo image is "staticurl/logoimg".
4274 If unset, \fBhglogo.png\fP will be used.
4275 .TP
4276 .B \fBlogourl\fP
4277 .sp
4278 Base URL to use for logos. If unset, \fBhttps://mercurial\-scm.org/\fP
4279 will be used.
4280 .TP
4281 .B \fBmaxchanges\fP
4282 .sp
4283 Maximum number of changes to list on the changelog. (default: 10)
4284 .TP
4285 .B \fBmaxfiles\fP
4286 .sp
4287 Maximum number of files to list per changeset. (default: 10)
4288 .TP
4289 .B \fBmaxshortchanges\fP
4290 .sp
4291 Maximum number of changes to list on the shortlog, graph or filelog
4292 pages. (default: 60)
4293 .TP
4294 .B \fBname\fP
4295 .sp
4296 Repository name to use in the web interface.
4297 (default: current working directory)
4298 .TP
4299 .B \fBport\fP
4300 .sp
4301 Port to listen on. (default: 8000)
4302 .TP
4303 .B \fBprefix\fP
4304 .sp
4305 Prefix path to serve from. (default: \(aq\(aq (server root))
4306 .TP
4307 .B \fBpush_ssl\fP
4308 .sp
4309 Whether to require that inbound pushes be transported over SSL to
4310 prevent password sniffing. (default: True)
4311 .TP
4312 .B \fBrefreshinterval\fP
4313 .sp
4314 How frequently directory listings re\-scan the filesystem for new
4315 repositories, in seconds. This is relevant when wildcards are used
4316 to define paths. Depending on how much filesystem traversal is
4317 required, refreshing may negatively impact performance.
4318 .sp
4319 Values less than or equal to 0 always refresh.
4320 (default: 20)
4321 .TP
4322 .B \fBserver\-header\fP
4323 .sp
4324 Value for HTTP \fBServer\fP response header.
4325 .TP
4326 .B \fBstatic\fP
4327 .sp
4328 Directory where static files are served from.
4329 .TP
4330 .B \fBstaticurl\fP
4331 .sp
4332 Base URL to use for static files. If unset, static files (e.g. the
4333 hgicon.png favicon) will be served by the CGI script itself. Use
4334 this setting to serve them directly with the HTTP server.
4335 Example: \fBhttp://hgserver/static/\fP.
4336 .TP
4337 .B \fBstripes\fP
4338 .sp
4339 How many lines a "zebra stripe" should span in multi\-line output.
4340 Set to 0 to disable. (default: 1)
4341 .TP
4342 .B \fBstyle\fP
4343 .sp
4344 Which template map style to use. The available options are the names of
4345 subdirectories in the HTML templates path. (default: \fBpaper\fP)
4346 Example: \fBmonoblue\fP.
4347 .TP
4348 .B \fBtemplates\fP
4349 .sp
4350 Where to find the HTML templates. The default path to the HTML templates
4351 can be obtained from \fBhg debuginstall\fP.
4352 .UNINDENT
4353 .SS \fBwebsub\fP
4354 .sp
4355 Web substitution filter definition. You can use this section to
4356 define a set of regular expression substitution patterns which
4357 let you automatically modify the hgweb server output.
4358 .sp
4359 The default hgweb templates only apply these substitution patterns
4360 on the revision description fields. You can apply them anywhere
4361 you want when you create your own templates by adding calls to the
4362 "websub" filter (usually after calling the "escape" filter).
4363 .sp
4364 This can be used, for example, to convert issue references to links
4365 to your issue tracker, or to convert "markdown\-like" syntax into
4366 HTML (see the examples below).
4367 .sp
4368 Each entry in this section names a substitution filter.
4369 The value of each entry defines the substitution expression itself.
4370 The websub expressions follow the old interhg extension syntax,
4371 which in turn imitates the Unix sed replacement syntax:
4372 .sp
4373 .nf
4374 .ft C
4375 patternname = s/SEARCH_REGEX/REPLACE_EXPRESSION/[i]
4376 .ft P
4377 .fi
4378 .sp
4379 You can use any separator other than "/". The final "i" is optional
4380 and indicates that the search must be case insensitive.
4381 .sp
4382 Examples:
4383 .sp
4384 .nf
4385 .ft C
4386 [websub]
4387 issues = s|issue(\ed+)|<a href="http://bts.example.org/issue\e1">issue\e1</a>|i
4388 italic = s/\eb_(\eS+)_\eb/<i>\e1<\e/i>/
4389 bold = s/\e*\eb(\eS+)\eb\e*/<b>\e1<\e/b>/
4390 .ft P
4391 .fi
4392 .SS \fBworker\fP
4393 .sp
4394 Parallel master/worker configuration. We currently perform working
4395 directory updates in parallel on Unix\-like systems, which greatly
4396 helps performance.
4397 .INDENT 0.0
4398 .TP
4399 .B \fBenabled\fP
4400 .sp
4401 Whether to enable workers code to be used.
4402 (default: true)
4403 .TP
4404 .B \fBnumcpus\fP
4405 .sp
4406 Number of CPUs to use for parallel operations. A zero or
4407 negative value is treated as \fBuse the default\fP.
4408 (default: 4 or the number of CPUs on the system, whichever is larger)
4409 .TP
4410 .B \fBbackgroundclose\fP
4411 .sp
4412 Whether to enable closing file handles on background threads during certain
4413 operations. Some platforms aren\(aqt very efficient at closing file
4414 handles that have been written or appended to. By performing file closing
4415 on background threads, file write rate can increase substantially.
4416 (default: true on Windows, false elsewhere)
4417 .TP
4418 .B \fBbackgroundcloseminfilecount\fP
4419 .sp
4420 Minimum number of files required to trigger background file closing.
4421 Operations not writing this many files won\(aqt start background close
4422 threads.
4423 (default: 2048)
4424 .TP
4425 .B \fBbackgroundclosemaxqueue\fP
4426 .sp
4427 The maximum number of opened file handles waiting to be closed in the
4428 background. This option only has an effect if \fBbackgroundclose\fP is
4429 enabled.
4430 (default: 384)
4431 .TP
4432 .B \fBbackgroundclosethreadcount\fP
4433 .sp
4434 Number of threads to process background file closes. Only relevant if
4435 \fBbackgroundclose\fP is enabled.
4436 (default: 4)
4437 .TP
4438 .B \fBparallel\-stream\-bundle\-processing\fP
4439 .sp
4440 Read, parse and write stream bundle in parallel speeding up the process.
4441 .sp
4442 Also see \fIworker.parallel\-stream\-bundle\-processing.memory\-target\fP to control
4443 the memory usage of the buffers.
4444 .sp
4445 Also see \fIworker.parallel\-stream\-bundle\-processing.num\-writer\fP to control the
4446 amount of concurrent writers.
4447 .TP
4448 .B \fBparallel\-stream\-bundle\-processing.memory\-target\fP
4449 .sp
4450 Limit memory usage around this value. This is not a hard target a Mercurial will use a bit more, but this reduce the amount of buffered stream content that we read ahead.
4451 .sp
4452 If set to a negative value, the amount of memory used will not be restricted.
4453 .sp
4454 When set to 0, the default value depends on the value of the
4455 \fIusage.resources.memory\fP configuration:
4456 .INDENT 7.0
4457 .IP \(bu 2
4458 .
4459 low: 100 MB
4460 .IP \(bu 2
4461 .
4462 medium: 500 MB (default)
4463 .IP \(bu 2
4464 .
4465 high: 2 GB
4466 .UNINDENT
4467 .TP
4468 .B \fBparallel\-stream\-bundle\-processing.num\-writer\fP
4469 .sp
4470 Control the number of file being written concurrently when applying a stream
4471 bundle.
4472 .sp
4473 When set to 0, the default, the value used depends on the value of the
4474 \fIusage.resources.cpu\fP configuration:
4475 .INDENT 7.0
4476 .IP \(bu 2
4477 .
4478 low: 1 writer
4479 .IP \(bu 2
4480 .
4481 medium: 4 writers (default)
4482 .IP \(bu 2
4483 .
4484 high: 8 writers
4485 .UNINDENT
4486 .UNINDENT
4487 .SH AUTHOR
4488 .sp
4489 Bryan O\(aqSullivan <\%[email protected]\:>.
4490 .sp
4491 Mercurial was written by Olivia Mackall <\%[email protected]\:>.
4492 .SH SEE ALSO
4493 .sp
4494 \%\fBhg\fP(1)\:, \%\fBhgignore\fP(5)\:
4495 .SH COPYING
4496 .sp
4497 This manual page is copyright 2005 Bryan O\(aqSullivan.
4498 Mercurial is copyright 2005\-2026 Olivia Mackall.
4499 Free use of this software is granted under the terms of the GNU General
4500 Public License version 2 or any later version.
4501 .\" Common link and substitution definitions.
4502 .
4503 .SH AUTHOR
4504 Bryan O'Sullivan <[email protected]>
4505
4506 Organization: Mercurial
4507 .\" Generated by docutils manpage writer.
4508 .\"
4509 .