|
@@
-23,7
+23,7
b' FILES'
|
|
23
|
|
|
23
|
|
|
24
|
Mercurial reads configuration data from several files, if they exist.
|
|
24
|
Mercurial reads configuration data from several files, if they exist.
|
|
25
|
The names of these files depend on the system on which Mercurial is
|
|
25
|
The names of these files depend on the system on which Mercurial is
|
|
26
|
installed. `*.rc` files from a single directory are read in
|
|
26
|
installed. ``*.rc`` files from a single directory are read in
|
|
27
|
alphabetical order, later ones overriding earlier ones. Where multiple
|
|
27
|
alphabetical order, later ones overriding earlier ones. Where multiple
|
|
28
|
paths are given below, settings from later paths override earlier
|
|
28
|
paths are given below, settings from later paths override earlier
|
|
29
|
ones.
|
|
29
|
ones.
|
|
@@
-32,10
+32,10
b' ones.'
|
|
32
|
| (Unix) ``<install-root>/etc/mercurial/hgrc``
|
|
32
|
| (Unix) ``<install-root>/etc/mercurial/hgrc``
|
|
33
|
|
|
33
|
|
|
34
|
Per-installation configuration files, searched for in the
|
|
34
|
Per-installation configuration files, searched for in the
|
|
35
|
directory where Mercurial is installed. `<install-root>` is the
|
|
35
|
directory where Mercurial is installed. ``<install-root>`` is the
|
|
36
|
parent directory of the hg executable (or symlink) being run. For
|
|
36
|
parent directory of the **hg** executable (or symlink) being run. For
|
|
37
|
example, if installed in `/shared/tools/bin/hg`, Mercurial will look
|
|
37
|
example, if installed in ``/shared/tools/bin/hg``, Mercurial will look
|
|
38
|
in `/shared/tools/etc/mercurial/hgrc`. Options in these files apply
|
|
38
|
in ``/shared/tools/etc/mercurial/hgrc``. Options in these files apply
|
|
39
|
to all Mercurial commands executed by any user in any directory.
|
|
39
|
to all Mercurial commands executed by any user in any directory.
|
|
40
|
|
|
40
|
|
|
41
|
| (Unix) ``/etc/mercurial/hgrc.d/*.rc``
|
|
41
|
| (Unix) ``/etc/mercurial/hgrc.d/*.rc``
|
|
@@
-54,7
+54,7
b' ones.'
|
|
54
|
which Mercurial is running. Options in these files apply to all
|
|
54
|
which Mercurial is running. Options in these files apply to all
|
|
55
|
Mercurial commands executed by any user in any directory. Registry
|
|
55
|
Mercurial commands executed by any user in any directory. Registry
|
|
56
|
keys contain PATH-like strings, every part of which must reference
|
|
56
|
keys contain PATH-like strings, every part of which must reference
|
|
57
|
a `Mercurial.ini` file or be a directory where `*.rc` files will
|
|
57
|
a ``Mercurial.ini`` file or be a directory where ``*.rc`` files will
|
|
58
|
be read.
|
|
58
|
be read.
|
|
59
|
|
|
59
|
|
|
60
|
| (Unix) ``$HOME/.hgrc``
|
|
60
|
| (Unix) ``$HOME/.hgrc``
|
|
@@
-64,7
+64,7
b' ones.'
|
|
64
|
| (Windows) ``%USERPROFILE%\.hgrc``
|
|
64
|
| (Windows) ``%USERPROFILE%\.hgrc``
|
|
65
|
|
|
65
|
|
|
66
|
Per-user configuration file(s), for the user running Mercurial. On
|
|
66
|
Per-user configuration file(s), for the user running Mercurial. On
|
|
67
|
Windows 9x, `%HOME%` is replaced by `%APPDATA%`. Options in these
|
|
67
|
Windows 9x, ``%HOME%`` is replaced by ``%APPDATA%``. Options in these
|
|
68
|
files apply to all Mercurial commands executed by this user in any
|
|
68
|
files apply to all Mercurial commands executed by this user in any
|
|
69
|
directory. Options in these files override per-installation and
|
|
69
|
directory. Options in these files override per-installation and
|
|
70
|
per-system options.
|
|
70
|
per-system options.
|
|
@@
-82,8
+82,8
b' ones.'
|
|
82
|
SYNTAX
|
|
82
|
SYNTAX
|
|
83
|
------
|
|
83
|
------
|
|
84
|
|
|
84
|
|
|
85
|
A configuration file consists of sections, led by a "`[section]`" header
|
|
85
|
A configuration file consists of sections, led by a "``[section]``" header
|
|
86
|
and followed by "`name: value`" entries; "`name=value`" is also accepted.
|
|
86
|
and followed by "``name: value``" entries; "``name=value``" is also accepted.
|
|
87
|
|
|
87
|
|
|
88
|
::
|
|
88
|
::
|
|
89
|
|
|
89
|
|
|
@@
-121,7
+121,7
b' For example, this definition::'
|
|
121
|
|
|
121
|
|
|
122
|
latest = log --limit 5
|
|
122
|
latest = log --limit 5
|
|
123
|
|
|
123
|
|
|
124
|
creates a new command `latest` that shows only the five most recent
|
|
124
|
creates a new command ``latest`` that shows only the five most recent
|
|
125
|
changesets. You can define subsequent aliases using earlier ones::
|
|
125
|
changesets. You can define subsequent aliases using earlier ones::
|
|
126
|
|
|
126
|
|
|
127
|
stable5 = latest -b stable
|
|
127
|
stable5 = latest -b stable
|
|
@@
-154,9
+154,9
b' Example::'
|
|
154
|
Supported arguments:
|
|
154
|
Supported arguments:
|
|
155
|
|
|
155
|
|
|
156
|
``prefix``
|
|
156
|
``prefix``
|
|
157
|
Either "\*" or a URI prefix with or without the scheme part.
|
|
157
|
Either "``*``" or a URI prefix with or without the scheme part.
|
|
158
|
The authentication entry with the longest matching prefix is used
|
|
158
|
The authentication entry with the longest matching prefix is used
|
|
159
|
(where "*" matches everything and counts as a match of length
|
|
159
|
(where "``*``" matches everything and counts as a match of length
|
|
160
|
1). If the prefix doesn't include a scheme, the match is performed
|
|
160
|
1). If the prefix doesn't include a scheme, the match is performed
|
|
161
|
against the URI with its scheme stripped as well, and the schemes
|
|
161
|
against the URI with its scheme stripped as well, and the schemes
|
|
162
|
argument, q.v., is then subsequently consulted.
|
|
162
|
argument, q.v., is then subsequently consulted.
|
|
@@
-191,9
+191,9
b' localization/canonicalization of files.'
|
|
191
|
|
|
191
|
|
|
192
|
Filters consist of a filter pattern followed by a filter command.
|
|
192
|
Filters consist of a filter pattern followed by a filter command.
|
|
193
|
Filter patterns are globs by default, rooted at the repository root.
|
|
193
|
Filter patterns are globs by default, rooted at the repository root.
|
|
194
|
For example, to match any file ending in "`.txt`" in the root
|
|
194
|
For example, to match any file ending in "``.txt``" in the root
|
|
195
|
directory only, use the pattern "`*.txt`". To match any file ending
|
|
195
|
directory only, use the pattern "``*.txt``". To match any file ending
|
|
196
|
in "`.c`" anywhere in the repository, use the pattern "`**.c`".
|
|
196
|
in "``.c``" anywhere in the repository, use the pattern "``**.c``".
|
|
197
|
|
|
197
|
|
|
198
|
The filter command can start with a specifier, either "pipe:" or
|
|
198
|
The filter command can start with a specifier, either "pipe:" or
|
|
199
|
"tempfile:". If no specifier is given, "pipe:" is used by default.
|
|
199
|
"tempfile:". If no specifier is given, "pipe:" is used by default.
|
|
@@
-307,7
+307,7
b' Settings for extensions that send email '
|
|
307
|
convenient for recipients. Addresses, headers, and parts not
|
|
307
|
convenient for recipients. Addresses, headers, and parts not
|
|
308
|
containing patches of outgoing messages will be encoded in the
|
|
308
|
containing patches of outgoing messages will be encoded in the
|
|
309
|
first character set to which conversion from local encoding
|
|
309
|
first character set to which conversion from local encoding
|
|
310
|
(`$HGENCODING`, `ui.fallbackencoding`) succeeds. If correct
|
|
310
|
(``$HGENCODING``, ``ui.fallbackencoding``) succeeds. If correct
|
|
311
|
conversion fails, the text in question is sent as is. Defaults to
|
|
311
|
conversion fails, the text in question is sent as is. Defaults to
|
|
312
|
empty (explicit) list.
|
|
312
|
empty (explicit) list.
|
|
313
|
|
|
313
|
|
|
@@
-336,19
+336,19
b' Mercurial has an extension mechanism for'
|
|
336
|
enable an extension, create an entry for it in this section.
|
|
336
|
enable an extension, create an entry for it in this section.
|
|
337
|
|
|
337
|
|
|
338
|
If you know that the extension is already in Python's search path,
|
|
338
|
If you know that the extension is already in Python's search path,
|
|
339
|
you can give the name of the module, followed by "`=`", with nothing
|
|
339
|
you can give the name of the module, followed by "``=``", with nothing
|
|
340
|
after the "`=`".
|
|
340
|
after the "``=``".
|
|
341
|
|
|
341
|
|
|
342
|
Otherwise, give a name that you choose, followed by "`=`", followed by
|
|
342
|
Otherwise, give a name that you choose, followed by "``=``", followed by
|
|
343
|
the path to the "`.py`" file (including the file name extension) that
|
|
343
|
the path to the "``.py``" file (including the file name extension) that
|
|
344
|
defines the extension.
|
|
344
|
defines the extension.
|
|
345
|
|
|
345
|
|
|
346
|
To explicitly disable an extension that is enabled in an hgrc of
|
|
346
|
To explicitly disable an extension that is enabled in an hgrc of
|
|
347
|
broader scope, prepend its path with "`!`", as in
|
|
347
|
broader scope, prepend its path with "``!``", as in
|
|
348
|
"`hgext.foo = !/ext/path`" or "`hgext.foo = !`" when path is not
|
|
348
|
"``hgext.foo = !/ext/path``" or "``hgext.foo = !``" when path is not
|
|
349
|
supplied.
|
|
349
|
supplied.
|
|
350
|
|
|
350
|
|
|
351
|
Example for `~/.hgrc`::
|
|
351
|
Example for ``~/.hgrc``::
|
|
352
|
|
|
352
|
|
|
353
|
[extensions]
|
|
353
|
[extensions]
|
|
354
|
# (the mq extension will get loaded from Mercurial's path)
|
|
354
|
# (the mq extension will get loaded from Mercurial's path)
|
|
@@
-396,7
+396,7
b' Example::'
|
|
396
|
This section configures external merge tools to use for file-level
|
|
396
|
This section configures external merge tools to use for file-level
|
|
397
|
merges.
|
|
397
|
merges.
|
|
398
|
|
|
398
|
|
|
399
|
Example `~/.hgrc`::
|
|
399
|
Example ``~/.hgrc``::
|
|
400
|
|
|
400
|
|
|
401
|
[merge-tools]
|
|
401
|
[merge-tools]
|
|
402
|
# Override stock tool location
|
|
402
|
# Override stock tool location
|
|
@@
-422,8
+422,8
b' Supported arguments:'
|
|
422
|
``args``
|
|
422
|
``args``
|
|
423
|
The arguments to pass to the tool executable. You can refer to the
|
|
423
|
The arguments to pass to the tool executable. You can refer to the
|
|
424
|
files being merged as well as the output file through these
|
|
424
|
files being merged as well as the output file through these
|
|
425
|
variables: `$base`, `$local`, `$other`, `$output`.
|
|
425
|
variables: ``$base``, ``$local``, ``$other``, ``$output``.
|
|
426
|
Default: `$local $base $other`
|
|
426
|
Default: ``$local $base $other``
|
|
427
|
``premerge``
|
|
427
|
``premerge``
|
|
428
|
Attempt to run internal non-interactive 3-way merge tool before
|
|
428
|
Attempt to run internal non-interactive 3-way merge tool before
|
|
429
|
launching external tool.
|
|
429
|
launching external tool.
|
|
@@
-450,7
+450,7
b' Supported arguments:'
|
|
450
|
``regkey``
|
|
450
|
``regkey``
|
|
451
|
Windows registry key which describes install location of this
|
|
451
|
Windows registry key which describes install location of this
|
|
452
|
tool. Mercurial will search for this key first under
|
|
452
|
tool. Mercurial will search for this key first under
|
|
453
|
`HKEY_CURRENT_USER` and then under `HKEY_LOCAL_MACHINE`.
|
|
453
|
``HKEY_CURRENT_USER`` and then under ``HKEY_LOCAL_MACHINE``.
|
|
454
|
Default: None
|
|
454
|
Default: None
|
|
455
|
``regname``
|
|
455
|
``regname``
|
|
456
|
Name of value to read from specified registry key. Defaults to the
|
|
456
|
Name of value to read from specified registry key. Defaults to the
|
|
@@
-469,7
+469,7
b' hooks can be run for the same action by '
|
|
469
|
action. Overriding a site-wide hook can be done by changing its
|
|
469
|
action. Overriding a site-wide hook can be done by changing its
|
|
470
|
value or setting it to an empty string.
|
|
470
|
value or setting it to an empty string.
|
|
471
|
|
|
471
|
|
|
472
|
Example `.hg/hgrc`::
|
|
472
|
Example ``.hg/hgrc``::
|
|
473
|
|
|
473
|
|
|
474
|
[hooks]
|
|
474
|
[hooks]
|
|
475
|
# do not use the site-wide hook
|
|
475
|
# do not use the site-wide hook
|
|
@@
-483,82
+483,82
b' variables it is passed are listed with n'
|
|
483
|
|
|
483
|
|
|
484
|
``changegroup``
|
|
484
|
``changegroup``
|
|
485
|
Run after a changegroup has been added via push, pull or unbundle.
|
|
485
|
Run after a changegroup has been added via push, pull or unbundle.
|
|
486
|
ID of the first new changeset is in `$HG_NODE`. URL from which
|
|
486
|
ID of the first new changeset is in ``$HG_NODE``. URL from which
|
|
487
|
changes came is in `$HG_URL`.
|
|
487
|
changes came is in ``$HG_URL``.
|
|
488
|
``commit``
|
|
488
|
``commit``
|
|
489
|
Run after a changeset has been created in the local repository. ID
|
|
489
|
Run after a changeset has been created in the local repository. ID
|
|
490
|
of the newly created changeset is in `$HG_NODE`. Parent changeset
|
|
490
|
of the newly created changeset is in ``$HG_NODE``. Parent changeset
|
|
491
|
IDs are in `$HG_PARENT1` and `$HG_PARENT2`.
|
|
491
|
IDs are in ``$HG_PARENT1`` and ``$HG_PARENT2``.
|
|
492
|
``incoming``
|
|
492
|
``incoming``
|
|
493
|
Run after a changeset has been pulled, pushed, or unbundled into
|
|
493
|
Run after a changeset has been pulled, pushed, or unbundled into
|
|
494
|
the local repository. The ID of the newly arrived changeset is in
|
|
494
|
the local repository. The ID of the newly arrived changeset is in
|
|
495
|
`$HG_NODE`. URL that was source of changes came is in `$HG_URL`.
|
|
495
|
``$HG_NODE``. URL that was source of changes came is in ``$HG_URL``.
|
|
496
|
``outgoing``
|
|
496
|
``outgoing``
|
|
497
|
Run after sending changes from local repository to another. ID of
|
|
497
|
Run after sending changes from local repository to another. ID of
|
|
498
|
first changeset sent is in `$HG_NODE`. Source of operation is in
|
|
498
|
first changeset sent is in ``$HG_NODE``. Source of operation is in
|
|
499
|
`$HG_SOURCE`; see "preoutgoing" hook for description.
|
|
499
|
``$HG_SOURCE``; see "preoutgoing" hook for description.
|
|
500
|
``post-<command>``
|
|
500
|
``post-<command>``
|
|
501
|
Run after successful invocations of the associated command. The
|
|
501
|
Run after successful invocations of the associated command. The
|
|
502
|
contents of the command line are passed as `$HG_ARGS` and the result
|
|
502
|
contents of the command line are passed as ``$HG_ARGS`` and the result
|
|
503
|
code in `$HG_RESULT`. Hook failure is ignored.
|
|
503
|
code in ``$HG_RESULT``. Hook failure is ignored.
|
|
504
|
``pre-<command>``
|
|
504
|
``pre-<command>``
|
|
505
|
Run before executing the associated command. The contents of the
|
|
505
|
Run before executing the associated command. The contents of the
|
|
506
|
command line are passed as `$HG_ARGS`. If the hook returns failure,
|
|
506
|
command line are passed as ``$HG_ARGS``. If the hook returns failure,
|
|
507
|
the command doesn't execute and Mercurial returns the failure
|
|
507
|
the command doesn't execute and Mercurial returns the failure
|
|
508
|
code.
|
|
508
|
code.
|
|
509
|
``prechangegroup``
|
|
509
|
``prechangegroup``
|
|
510
|
Run before a changegroup is added via push, pull or unbundle. Exit
|
|
510
|
Run before a changegroup is added via push, pull or unbundle. Exit
|
|
511
|
status 0 allows the changegroup to proceed. Non-zero status will
|
|
511
|
status 0 allows the changegroup to proceed. Non-zero status will
|
|
512
|
cause the push, pull or unbundle to fail. URL from which changes
|
|
512
|
cause the push, pull or unbundle to fail. URL from which changes
|
|
513
|
will come is in `$HG_URL`.
|
|
513
|
will come is in ``$HG_URL``.
|
|
514
|
``precommit``
|
|
514
|
``precommit``
|
|
515
|
Run before starting a local commit. Exit status 0 allows the
|
|
515
|
Run before starting a local commit. Exit status 0 allows the
|
|
516
|
commit to proceed. Non-zero status will cause the commit to fail.
|
|
516
|
commit to proceed. Non-zero status will cause the commit to fail.
|
|
517
|
Parent changeset IDs are in `$HG_PARENT1` and `$HG_PARENT2`.
|
|
517
|
Parent changeset IDs are in ``$HG_PARENT1`` and ``$HG_PARENT2``.
|
|
518
|
``preoutgoing``
|
|
518
|
``preoutgoing``
|
|
519
|
Run before collecting changes to send from the local repository to
|
|
519
|
Run before collecting changes to send from the local repository to
|
|
520
|
another. Non-zero status will cause failure. This lets you prevent
|
|
520
|
another. Non-zero status will cause failure. This lets you prevent
|
|
521
|
pull over HTTP or SSH. Also prevents against local pull, push
|
|
521
|
pull over HTTP or SSH. Also prevents against local pull, push
|
|
522
|
(outbound) or bundle commands, but not effective, since you can
|
|
522
|
(outbound) or bundle commands, but not effective, since you can
|
|
523
|
just copy files instead then. Source of operation is in
|
|
523
|
just copy files instead then. Source of operation is in
|
|
524
|
`$HG_SOURCE`. If "serve", operation is happening on behalf of remote
|
|
524
|
``$HG_SOURCE``. If "serve", operation is happening on behalf of remote
|
|
525
|
SSH or HTTP repository. If "push", "pull" or "bundle", operation
|
|
525
|
SSH or HTTP repository. If "push", "pull" or "bundle", operation
|
|
526
|
is happening on behalf of repository on same system.
|
|
526
|
is happening on behalf of repository on same system.
|
|
527
|
``pretag``
|
|
527
|
``pretag``
|
|
528
|
Run before creating a tag. Exit status 0 allows the tag to be
|
|
528
|
Run before creating a tag. Exit status 0 allows the tag to be
|
|
529
|
created. Non-zero status will cause the tag to fail. ID of
|
|
529
|
created. Non-zero status will cause the tag to fail. ID of
|
|
530
|
changeset to tag is in `$HG_NODE`. Name of tag is in `$HG_TAG`. Tag is
|
|
530
|
changeset to tag is in ``$HG_NODE``. Name of tag is in ``$HG_TAG``. Tag is
|
|
531
|
local if `$HG_LOCAL=1`, in repository if `$HG_LOCAL=0`.
|
|
531
|
local if ``$HG_LOCAL=1``, in repository if ``$HG_LOCAL=0``.
|
|
532
|
``pretxnchangegroup``
|
|
532
|
``pretxnchangegroup``
|
|
533
|
Run after a changegroup has been added via push, pull or unbundle,
|
|
533
|
Run after a changegroup has been added via push, pull or unbundle,
|
|
534
|
but before the transaction has been committed. Changegroup is
|
|
534
|
but before the transaction has been committed. Changegroup is
|
|
535
|
visible to hook program. This lets you validate incoming changes
|
|
535
|
visible to hook program. This lets you validate incoming changes
|
|
536
|
before accepting them. Passed the ID of the first new changeset in
|
|
536
|
before accepting them. Passed the ID of the first new changeset in
|
|
537
|
`$HG_NODE`. Exit status 0 allows the transaction to commit. Non-zero
|
|
537
|
``$HG_NODE``. Exit status 0 allows the transaction to commit. Non-zero
|
|
538
|
status will cause the transaction to be rolled back and the push,
|
|
538
|
status will cause the transaction to be rolled back and the push,
|
|
539
|
pull or unbundle will fail. URL that was source of changes is in
|
|
539
|
pull or unbundle will fail. URL that was source of changes is in
|
|
540
|
`$HG_URL`.
|
|
540
|
``$HG_URL``.
|
|
541
|
``pretxncommit``
|
|
541
|
``pretxncommit``
|
|
542
|
Run after a changeset has been created but the transaction not yet
|
|
542
|
Run after a changeset has been created but the transaction not yet
|
|
543
|
committed. Changeset is visible to hook program. This lets you
|
|
543
|
committed. Changeset is visible to hook program. This lets you
|
|
544
|
validate commit message and changes. Exit status 0 allows the
|
|
544
|
validate commit message and changes. Exit status 0 allows the
|
|
545
|
commit to proceed. Non-zero status will cause the transaction to
|
|
545
|
commit to proceed. Non-zero status will cause the transaction to
|
|
546
|
be rolled back. ID of changeset is in `$HG_NODE`. Parent changeset
|
|
546
|
be rolled back. ID of changeset is in ``$HG_NODE``. Parent changeset
|
|
547
|
IDs are in `$HG_PARENT1` and `$HG_PARENT2`.
|
|
547
|
IDs are in ``$HG_PARENT1`` and ``$HG_PARENT2``.
|
|
548
|
``preupdate``
|
|
548
|
``preupdate``
|
|
549
|
Run before updating the working directory. Exit status 0 allows
|
|
549
|
Run before updating the working directory. Exit status 0 allows
|
|
550
|
the update to proceed. Non-zero status will prevent the update.
|
|
550
|
the update to proceed. Non-zero status will prevent the update.
|
|
551
|
Changeset ID of first new parent is in `$HG_PARENT1`. If merge, ID
|
|
551
|
Changeset ID of first new parent is in ``$HG_PARENT1``. If merge, ID
|
|
552
|
of second new parent is in `$HG_PARENT2`.
|
|
552
|
of second new parent is in ``$HG_PARENT2``.
|
|
553
|
``tag``
|
|
553
|
``tag``
|
|
554
|
Run after a tag is created. ID of tagged changeset is in `$HG_NODE`.
|
|
554
|
Run after a tag is created. ID of tagged changeset is in ``$HG_NODE``.
|
|
555
|
Name of tag is in `$HG_TAG`. Tag is local if `$HG_LOCAL=1`, in
|
|
555
|
Name of tag is in ``$HG_TAG``. Tag is local if ``$HG_LOCAL=1``, in
|
|
556
|
repository if `$HG_LOCAL=0`.
|
|
556
|
repository if ``$HG_LOCAL=0``.
|
|
557
|
``update``
|
|
557
|
``update``
|
|
558
|
Run after updating the working directory. Changeset ID of first
|
|
558
|
Run after updating the working directory. Changeset ID of first
|
|
559
|
new parent is in `$HG_PARENT1`. If merge, ID of second new parent is
|
|
559
|
new parent is in ``$HG_PARENT1``. If merge, ID of second new parent is
|
|
560
|
in `$HG_PARENT2`. If the update succeeded, `$HG_ERROR=0`. If the
|
|
560
|
in ``$HG_PARENT2``. If the update succeeded, ``$HG_ERROR=0``. If the
|
|
561
|
update failed (e.g. because conflicts not resolved), `$HG_ERROR=1`.
|
|
561
|
update failed (e.g. because conflicts not resolved), ``$HG_ERROR=1``.
|
|
562
|
|
|
562
|
|
|
563
|
NOTE: it is generally better to use standard hooks rather than the
|
|
563
|
NOTE: it is generally better to use standard hooks rather than the
|
|
564
|
generic pre- and post- command hooks as they are guaranteed to be
|
|
564
|
generic pre- and post- command hooks as they are guaranteed to be
|
|
@@
-567,7
+567,7
b' Also, hooks like "commit" will be called'
|
|
567
|
generate a commit (e.g. tag) and not just the commit command.
|
|
567
|
generate a commit (e.g. tag) and not just the commit command.
|
|
568
|
|
|
568
|
|
|
569
|
NOTE: Environment variables with empty values may not be passed to
|
|
569
|
NOTE: Environment variables with empty values may not be passed to
|
|
570
|
hooks on platforms such as Windows. As an example, `$HG_PARENT2` will
|
|
570
|
hooks on platforms such as Windows. As an example, ``$HG_PARENT2`` will
|
|
571
|
have an empty value under Unix-like platforms for non-merge
|
|
571
|
have an empty value under Unix-like platforms for non-merge
|
|
572
|
changesets, while it will not be available at all under Windows.
|
|
572
|
changesets, while it will not be available at all under Windows.
|
|
573
|
|
|
573
|
|
|
@@
-581,7
+581,7
b' called with at least three keyword argum'
|
|
581
|
"ui"), a repository object (keyword "repo"), and a "hooktype"
|
|
581
|
"ui"), a repository object (keyword "repo"), and a "hooktype"
|
|
582
|
keyword that tells what kind of hook is used. Arguments listed as
|
|
582
|
keyword that tells what kind of hook is used. Arguments listed as
|
|
583
|
environment variables above are passed as keyword arguments, with no
|
|
583
|
environment variables above are passed as keyword arguments, with no
|
|
584
|
"`HG_`" prefix, and names in lower case.
|
|
584
|
"``HG_``" prefix, and names in lower case.
|
|
585
|
|
|
585
|
|
|
586
|
If a Python hook returns a "true" value or raises an exception, this
|
|
586
|
If a Python hook returns a "true" value or raises an exception, this
|
|
587
|
is treated as a failure.
|
|
587
|
is treated as a failure.
|
|
@@
-699,14
+699,14
b' Controls generic server settings.'
|
|
699
|
``trusted``
|
|
699
|
``trusted``
|
|
700
|
"""""""""""
|
|
700
|
"""""""""""
|
|
701
|
For security reasons, Mercurial will not use the settings in the
|
|
701
|
For security reasons, Mercurial will not use the settings in the
|
|
702
|
`.hg/hgrc` file from a repository if it doesn't belong to a trusted
|
|
702
|
``.hg/hgrc`` file from a repository if it doesn't belong to a trusted
|
|
703
|
user or to a trusted group. The main exception is the web interface,
|
|
703
|
user or to a trusted group. The main exception is the web interface,
|
|
704
|
which automatically uses some safe settings, since it's common to
|
|
704
|
which automatically uses some safe settings, since it's common to
|
|
705
|
serve repositories from different users.
|
|
705
|
serve repositories from different users.
|
|
706
|
|
|
706
|
|
|
707
|
This section specifies what users and groups are trusted. The
|
|
707
|
This section specifies what users and groups are trusted. The
|
|
708
|
current user is always trusted. To trust everybody, list a user or a
|
|
708
|
current user is always trusted. To trust everybody, list a user or a
|
|
709
|
group with name "`*`".
|
|
709
|
group with name "``*``".
|
|
710
|
|
|
710
|
|
|
711
|
``users``
|
|
711
|
``users``
|
|
712
|
Comma-separated list of trusted users.
|
|
712
|
Comma-separated list of trusted users.
|
|
@@
-726,14
+726,14
b' User interface controls.'
|
|
726
|
Default is true.
|
|
726
|
Default is true.
|
|
727
|
``askusername``
|
|
727
|
``askusername``
|
|
728
|
Whether to prompt for a username when committing. If True, and
|
|
728
|
Whether to prompt for a username when committing. If True, and
|
|
729
|
neither `$HGUSER` nor `$EMAIL` has been specified, then the user will
|
|
729
|
neither ``$HGUSER`` nor ``$EMAIL`` has been specified, then the user will
|
|
730
|
be prompted to enter a username. If no username is entered, the
|
|
730
|
be prompted to enter a username. If no username is entered, the
|
|
731
|
default USER@HOST is used instead.
|
|
731
|
default USER@HOST is used instead.
|
|
732
|
Default is False.
|
|
732
|
Default is False.
|
|
733
|
``debug``
|
|
733
|
``debug``
|
|
734
|
Print debugging information. True or False. Default is False.
|
|
734
|
Print debugging information. True or False. Default is False.
|
|
735
|
``editor``
|
|
735
|
``editor``
|
|
736
|
The editor to use during a commit. Default is `$EDITOR` or "vi".
|
|
736
|
The editor to use during a commit. Default is ``$EDITOR`` or "vi".
|
|
737
|
``fallbackencoding``
|
|
737
|
``fallbackencoding``
|
|
738
|
Encoding to try if it's not possible to decode the changelog using
|
|
738
|
Encoding to try if it's not possible to decode the changelog using
|
|
739
|
UTF-8. Default is ISO-8859-1.
|
|
739
|
UTF-8. Default is ISO-8859-1.
|
|
@@
-742,7
+742,7
b' User interface controls.'
|
|
742
|
in the same format as a repository-wide .hgignore file. This
|
|
742
|
in the same format as a repository-wide .hgignore file. This
|
|
743
|
option supports hook syntax, so if you want to specify multiple
|
|
743
|
option supports hook syntax, so if you want to specify multiple
|
|
744
|
ignore files, you can do so by setting something like
|
|
744
|
ignore files, you can do so by setting something like
|
|
745
|
"ignore.other = ~/.hgignore2". For details of the ignore file
|
|
745
|
"``ignore.other = ~/.hgignore2``". For details of the ignore file
|
|
746
|
format, see the hgignore(5) man page.
|
|
746
|
format, see the hgignore(5) man page.
|
|
747
|
``interactive``
|
|
747
|
``interactive``
|
|
748
|
Allow to prompt the user. True or False. Default is True.
|
|
748
|
Allow to prompt the user. True or False. Default is True.
|
|
@@
-772,13
+772,13
b' merge-tools section.'
|
|
772
|
``remotecmd``
|
|
772
|
``remotecmd``
|
|
773
|
remote command to use for clone/push/pull operations. Default is 'hg'.
|
|
773
|
remote command to use for clone/push/pull operations. Default is 'hg'.
|
|
774
|
``report_untrusted``
|
|
774
|
``report_untrusted``
|
|
775
|
Warn if a `.hg/hgrc` file is ignored due to not being owned by a
|
|
775
|
Warn if a ``.hg/hgrc`` file is ignored due to not being owned by a
|
|
776
|
trusted user or group. True or False. Default is True.
|
|
776
|
trusted user or group. True or False. Default is True.
|
|
777
|
``slash``
|
|
777
|
``slash``
|
|
778
|
Display paths using a slash ("`/`") as the path separator. This
|
|
778
|
Display paths using a slash ("``/``") as the path separator. This
|
|
779
|
only makes a difference on systems where the default path
|
|
779
|
only makes a difference on systems where the default path
|
|
780
|
separator is not the slash character (e.g. Windows uses the
|
|
780
|
separator is not the slash character (e.g. Windows uses the
|
|
781
|
backslash character ("`\\`")).
|
|
781
|
backslash character ("``\``")).
|
|
782
|
Default is False.
|
|
782
|
Default is False.
|
|
783
|
``ssh``
|
|
783
|
``ssh``
|
|
784
|
command to use for SSH connections. Default is 'ssh'.
|
|
784
|
command to use for SSH connections. Default is 'ssh'.
|
|
@@
-793,9
+793,9
b' merge-tools section.'
|
|
793
|
``username``
|
|
793
|
``username``
|
|
794
|
The committer of a changeset created when running "commit".
|
|
794
|
The committer of a changeset created when running "commit".
|
|
795
|
Typically a person's name and email address, e.g. "Fred Widget
|
|
795
|
Typically a person's name and email address, e.g. "Fred Widget
|
|
796
|
<fred@example.com>". Default is `$EMAIL` or username@hostname. If
|
|
796
|
<fred@example.com>". Default is ``$EMAIL`` or username@hostname. If
|
|
797
|
the username in hgrc is empty, it has to be specified manually or
|
|
797
|
the username in hgrc is empty, it has to be specified manually or
|
|
798
|
in a different hgrc file (e.g. `$HOME/.hgrc`, if the admin set
|
|
798
|
in a different hgrc file (e.g. ``$HOME/.hgrc``, if the admin set
|
|
799
|
"username =" in the system hgrc).
|
|
799
|
"username =" in the system hgrc).
|
|
800
|
``verbose``
|
|
800
|
``verbose``
|
|
801
|
Increase the amount of output printed. True or False. Default is False.
|
|
801
|
Increase the amount of output printed. True or False. Default is False.
|
|
@@
-824,7
+824,7
b' Web interface configuration.'
|
|
824
|
Whether to allow pulling from the repository. Default is true.
|
|
824
|
Whether to allow pulling from the repository. Default is true.
|
|
825
|
``allow_push``
|
|
825
|
``allow_push``
|
|
826
|
Whether to allow pushing to the repository. If empty or not set,
|
|
826
|
Whether to allow pushing to the repository. If empty or not set,
|
|
827
|
push is not allowed. If the special value "`*`", any remote user can
|
|
827
|
push is not allowed. If the special value "``*``", any remote user can
|
|
828
|
push, including unauthenticated users. Otherwise, the remote user
|
|
828
|
push, including unauthenticated users. Otherwise, the remote user
|
|
829
|
must have been authenticated, and the authenticated user name must
|
|
829
|
must have been authenticated, and the authenticated user name must
|
|
830
|
be present in this list (separated by whitespace or ","). The
|
|
830
|
be present in this list (separated by whitespace or ","). The
|
|
@@
-837,7
+837,7
b' Web interface configuration.'
|
|
837
|
user is unauthenticated or not present in the list (separated by
|
|
837
|
user is unauthenticated or not present in the list (separated by
|
|
838
|
whitespace or ","), then access is denied for the user. If the
|
|
838
|
whitespace or ","), then access is denied for the user. If the
|
|
839
|
list is empty or not set, then access is permitted to all users by
|
|
839
|
list is empty or not set, then access is permitted to all users by
|
|
840
|
default. Setting allow_read to the special value "`*`" is equivalent
|
|
840
|
default. Setting allow_read to the special value "``*``" is equivalent
|
|
841
|
to it not being set (i.e. access is permitted to all users). The
|
|
841
|
to it not being set (i.e. access is permitted to all users). The
|
|
842
|
contents of the allow_read list are examined after the deny_read
|
|
842
|
contents of the allow_read list are examined after the deny_read
|
|
843
|
list.
|
|
843
|
list.
|
|
@@
-850,10
+850,10
b' Web interface configuration.'
|
|
850
|
URLs. Example: "http://hgserver/repos/"
|
|
850
|
URLs. Example: "http://hgserver/repos/"
|
|
851
|
``contact``
|
|
851
|
``contact``
|
|
852
|
Name or email address of the person in charge of the repository.
|
|
852
|
Name or email address of the person in charge of the repository.
|
|
853
|
Defaults to ui.username or `$EMAIL` or "unknown" if unset or empty.
|
|
853
|
Defaults to ui.username or ``$EMAIL`` or "unknown" if unset or empty.
|
|
854
|
``deny_push``
|
|
854
|
``deny_push``
|
|
855
|
Whether to deny pushing to the repository. If empty or not set,
|
|
855
|
Whether to deny pushing to the repository. If empty or not set,
|
|
856
|
push is not denied. If the special value "`*`", all remote users are
|
|
856
|
push is not denied. If the special value "``*``", all remote users are
|
|
857
|
denied push. Otherwise, unauthenticated users are all denied, and
|
|
857
|
denied push. Otherwise, unauthenticated users are all denied, and
|
|
858
|
any authenticated user name present in this list (separated by
|
|
858
|
any authenticated user name present in this list (separated by
|
|
859
|
whitespace or ",") is also denied. The contents of the deny_push
|
|
859
|
whitespace or ",") is also denied. The contents of the deny_push
|
|
@@
-863,7
+863,7
b' Web interface configuration.'
|
|
863
|
not empty, unauthenticated users are all denied, and any
|
|
863
|
not empty, unauthenticated users are all denied, and any
|
|
864
|
authenticated user name present in this list (separated by
|
|
864
|
authenticated user name present in this list (separated by
|
|
865
|
whitespace or ",") is also denied access to the repository. If set
|
|
865
|
whitespace or ",") is also denied access to the repository. If set
|
|
866
|
to the special value "`*`", all remote users are denied access
|
|
866
|
to the special value "``*``", all remote users are denied access
|
|
867
|
(rarely needed ;). If deny_read is empty or not set, the
|
|
867
|
(rarely needed ;). If deny_read is empty or not set, the
|
|
868
|
determination of repository access depends on the presence and
|
|
868
|
determination of repository access depends on the presence and
|
|
869
|
content of the allow_read list (see description). If both
|
|
869
|
content of the allow_read list (see description). If both
|