Finding mercurial.ini
Tony Mechelynck
antoine.mechelynck at gmail.com
Mon Apr 10 23:18:04 UTC 2017
On Fri, Apr 7, 2017 at 11:26 PM, Peter Kronenberg
<pakronenberg at gmail.com> wrote:
> I've installed a server on my Windows machine under Apache. I want to
> create an installation-specific mercurial.ini, so that it doesn't use the
> ini file in my User directory. But I can't find the proper location. I
> have the hg.exe file in c:\Python27\Scripts. I thought that mercurial.ini
> should go into the same directory, but that doesn't seem to work. What is
> the proper location?
>
> thanks
> Peter
>From the manpage for hgrc (maybe you don't have that manpage on Windows):
On Windows, the following files are consulted:
· <repo>/.hg/hgrc (per-repository)
· %USERPROFILE%\.hgrc (per-user)
· %USERPROFILE%\Mercurial.ini (per-user)
· %HOME%\.hgrc (per-user)
· %HOME%\Mercurial.ini (per-user)
· HKEY_LOCAL_MACHINE\SOFTWARE\Mercurial (per-installation)
· <install-dir>\hgrc.d\*.rc (per-installation)
· <install-dir>\Mercurial.ini (per-installation)
· <internal>/default.d/*.rc (defaults)
Note The registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercurial is used when running
32-bit Python on 64-bit Windows.
On Windows 9x, %HOME% is replaced by %APPDATA%.
Best regadrs,
Tony.
More information about the Mercurial
mailing list