8 [ui] |
8 [ui] |
9 username = Firstname Lastname <firstname.lastname@example.net> |
9 username = Firstname Lastname <firstname.lastname@example.net> |
10 verbose = True |
10 verbose = True |
11 |
11 |
12 The above entries will be referred to as ``ui.username`` and |
12 The above entries will be referred to as ``ui.username`` and |
13 ``ui.verbose``, respectively. See the Syntax section below. |
13 ``ui.verbose``, respectively. See :hg:`help config.syntax`. |
14 |
14 |
15 Files |
15 Files |
16 ===== |
16 ===== |
17 |
17 |
18 Mercurial reads configuration data from several files, if they exist. |
18 Mercurial reads configuration data from several files, if they exist. |
74 Per-repository configuration options only apply in a |
74 Per-repository configuration options only apply in a |
75 particular repository. This file is not version-controlled, and |
75 particular repository. This file is not version-controlled, and |
76 will not get transferred during a "clone" operation. Options in |
76 will not get transferred during a "clone" operation. Options in |
77 this file override options in all other configuration files. On |
77 this file override options in all other configuration files. On |
78 Plan 9 and Unix, most of this file will be ignored if it doesn't |
78 Plan 9 and Unix, most of this file will be ignored if it doesn't |
79 belong to a trusted user or to a trusted group. See the documentation |
79 belong to a trusted user or to a trusted group. See |
80 for the ``[trusted]`` section below for more details. |
80 :hg:`help config.trusted` for more details. |
81 |
81 |
82 Per-user configuration file(s) are for the user running Mercurial. On |
82 Per-user configuration file(s) are for the user running Mercurial. On |
83 Windows 9x, ``%HOME%`` is replaced by ``%APPDATA%``. Options in these |
83 Windows 9x, ``%HOME%`` is replaced by ``%APPDATA%``. Options in these |
84 files apply to all Mercurial commands executed by this user in any |
84 files apply to all Mercurial commands executed by this user in any |
85 directory. Options in these files override per-system and per-installation |
85 directory. Options in these files override per-system and per-installation |
290 ``auth`` |
290 ``auth`` |
291 -------- |
291 -------- |
292 |
292 |
293 Authentication credentials for HTTP authentication. This section |
293 Authentication credentials for HTTP authentication. This section |
294 allows you to store usernames and passwords for use when logging |
294 allows you to store usernames and passwords for use when logging |
295 *into* HTTP servers. See the ``[web]`` configuration section if |
295 *into* HTTP servers. See :hg:`help config.web` if |
296 you want to configure *who* can login to your HTTP server. |
296 you want to configure *who* can login to your HTTP server. |
297 |
297 |
298 Each line has the following format:: |
298 Each line has the following format:: |
299 |
299 |
300 <name>.<argument> = <value> |
300 <name>.<argument> = <value> |
747 ``$HG_NODE``. URL that was source of changes came is in ``$HG_URL``. |
747 ``$HG_NODE``. URL that was source of changes came is in ``$HG_URL``. |
748 |
748 |
749 ``outgoing`` |
749 ``outgoing`` |
750 Run after sending changes from local repository to another. ID of |
750 Run after sending changes from local repository to another. ID of |
751 first changeset sent is in ``$HG_NODE``. Source of operation is in |
751 first changeset sent is in ``$HG_NODE``. Source of operation is in |
752 ``$HG_SOURCE``; see "preoutgoing" hook for description. |
752 ``$HG_SOURCE``; Also see :hg:`help config.preoutgoing` hook. |
753 |
753 |
754 ``post-<command>`` |
754 ``post-<command>`` |
755 Run after successful invocations of the associated command. The |
755 Run after successful invocations of the associated command. The |
756 contents of the command line are passed as ``$HG_ARGS`` and the result |
756 contents of the command line are passed as ``$HG_ARGS`` and the result |
757 code in ``$HG_RESULT``. Parsed command line arguments are passed as |
757 code in ``$HG_RESULT``. Parsed command line arguments are passed as |
829 ``HG_PHASES_MOVED`` to ``1``, etc. |
829 ``HG_PHASES_MOVED`` to ``1``, etc. |
830 |
830 |
831 ``txnclose`` |
831 ``txnclose`` |
832 Run after any repository transaction has been committed. At this |
832 Run after any repository transaction has been committed. At this |
833 point, the transaction can no longer be rolled back. The hook will run |
833 point, the transaction can no longer be rolled back. The hook will run |
834 after the lock is released. See ``pretxnclose`` docs for details about |
834 after the lock is released. See :hg:`help config.pretxnclose` docs for |
835 available variables. |
835 details about available variables. |
836 |
836 |
837 ``txnabort`` |
837 ``txnabort`` |
838 Run when a transaction is aborted. See ``pretxnclose`` docs for details about |
838 Run when a transaction is aborted. See :hg:`help config.pretxnclose` |
839 available variables. |
839 docs for details about available variables. |
840 |
840 |
841 ``pretxnchangegroup`` |
841 ``pretxnchangegroup`` |
842 Run after a changegroup has been added via push, pull or unbundle, |
842 Run after a changegroup has been added via push, pull or unbundle, |
843 but before the transaction has been committed. Changegroup is |
843 but before the transaction has been committed. Changegroup is |
844 visible to hook program. This lets you validate incoming changes |
844 visible to hook program. This lets you validate incoming changes |