Mercurial > hg
changeset 11226:b9e89fc5c7f1
doc: document expansion of %include and ui.username
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Thu, 27 May 2010 10:37:14 +0200 |
parents | d6dbd5e4ee72 |
children | 5cdac5c35e68 |
files | doc/hgrc.5.txt |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/hgrc.5.txt Wed May 26 14:03:29 2010 -0700 +++ b/doc/hgrc.5.txt Thu May 27 10:37:14 2010 +0200 @@ -146,6 +146,12 @@ current configuration file. The inclusion is recursive, which means that included files can include other files. Filenames are relative to the configuration file in which the ``%include`` directive is found. +Environment variables and ``~user`` constructs are expanded in +``file``. This lets you do something like:: + + %include ~/.hgrc.d/$HOST.rc + +to include a different configuration file on each computer you use. A line with ``%unset name`` will remove ``name`` from the current section, if it has been set previously. @@ -893,7 +899,8 @@ <fred@example.com>``. Default is ``$EMAIL`` or ``username@hostname``. If the username in hgrc is empty, it has to be specified manually or in a different hgrc file (e.g. ``$HOME/.hgrc``, if the admin set - ``username =`` in the system hgrc). + ``username =`` in the system hgrc). Environment variables in the + username are expanded. ``verbose`` Increase the amount of output printed. True or False. Default is False.