[PATCH] win32: allow hgrc.d on Windows
Steve Borho
steve at borho.org
Sun Feb 7 22:36:03 UTC 2010
On Sun, Feb 7, 2010 at 7:14 AM, Patrick Mézard <pmezard at gmail.com> wrote:
> Le 07/02/10 12:34, Steve Borho a écrit :
>> # HG changeset patch
>> # User Steve Borho <steve at borho.org>
>> # Date 1265542462 21600
>> # Node ID 14672bbd226694122d0689e85aad714f89afba70
>> # Parent ec02cf8d16286551cdaf7d5fec51f0ef6c5aeef2
>> win32: allow hgrc.d on Windows
>
> Just to know, what will you use that for?
I'm refactoring the TortoiseHg installer to make some components
optional, and hgrc.d is the only sane way to do this.
I would like to do this for the Mercurial MSI installer as well.
Right now the ISS script is appending contrib/mergetools.hgrc to
contrib/win32/mercurial.ini which is just horrible. The INI file has
dos EOLN and mergetools.hgrc has unix EOLN. My new MSI installer is
a tad more clever. It appends %include mergetools.hgrc to
mercurial.ini. But still, it's much cleaner to simply install both
files into PF\Mercurial\hgrc.d as mercurial.rc and mergetools.rc.
> Also, shouldn't be doc/hgrc.5.txt be updated?
Excellent point. If no-one objects, I'll update HGRC.5 and push this to crew.
--
Steve Borho
PS: I was the one who added the registry key to this same function for
use by the TortoiseHg Python shell extension, and it is no longer
needed by THG. I think we should deprecate the registry key in 1.5
and drop it in a later release.
More information about the Mercurial-devel
mailing list