Finding mercurial.ini

Steve - Gadget Barnes gadgetsteve at hotmail.com
Tue Apr 11 06:46:28 UTC 2017



On 11/04/2017 00:18, Tony Mechelynck wrote:
> 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.
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>

The command:
   hg help config | more
Will display the help for config and on the first and second page you 
will find exactly the above information.

-- 
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect 
those of my employer.


More information about the Mercurial mailing list