(cc-ing list for archival purposes)

On 08.01.2010 00:48, Steve Borho wrote:
> hg.exe will definitely pick up the installed Mercurial.ini since it's
> in the install directory, but your hgtk.bat will not.  I'm guessing
> you can put a stub Mercurial.ini in C:\Python26 with just:
> 
> @include ..\Program Files\TortoiseHg\Mercurial.ini

After looking at mercurial/win32.py, line 92 (def system_rcpath_win32)
and http://www.selenic.com/mercurial/hgrc.5.html#files , it seems I can set
additional ini file paths in the registry.

In my specific case (64 bit Windows), putting the follwing into a .reg file

<file>
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercurial]
@="C:\\Program Files\\TortoiseHg\\mercurial.ini"
</file>

and applying that to the registry turns out to be effective.

The 'Wow6432Node' part is really needed in my case. I suppose it is because
everything is running as 32 bit processes and my Windows is 64 bit.

Low-level proof:

C:\Users\adi\hgrepos\thg-default>python
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from mercurial import win32
>>> win32.system_rcpath_win32()
['C:\\Program Files\\TortoiseHg\\mercurial.ini']

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Tortoisehg-discuss mailing list
Tortoisehg-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to