Mercurial > public > mercurial-scm > hg-stable
diff mercurial/help/config.txt @ 30961:354020079723
hg: allow usage of XDG_CONFIG_HOME/hg/hgrc
Modern applications must use the following paths to store configuration files:
- $XDG_CONFIG_HOME/hg/hgrc,
- $HOME/.config/hg/hgrc (if XDG_CONFIG_HOME is unset or not absolute).
For backward compatibility, ~/.hgrc is still created if no hgrc exist using hg
config --edit.
See https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
author | David Demelier <demelier.david@gmail.com> |
---|---|
date | Tue, 07 Feb 2017 17:33:35 +0100 |
parents | d7bf7d2bd5ab |
children | e7eca6e1372e |
line wrap: on
line diff
--- a/mercurial/help/config.txt Wed Feb 01 17:47:35 2017 +0100 +++ b/mercurial/help/config.txt Tue Feb 07 17:33:35 2017 +0100 @@ -56,6 +56,7 @@ - ``<repo>/.hg/hgrc`` (per-repository) - ``$HOME/.hgrc`` (per-user) + - ``${XDG_CONFIG_HOME:-$HOME/.config}/hg/hgrc`` (per-user) - ``<install-root>/etc/mercurial/hgrc`` (per-installation) - ``<install-root>/etc/mercurial/hgrc.d/*.rc`` (per-installation) - ``/etc/mercurial/hgrc`` (per-system)