hgrc.5.text FILES content, ordering implied?

Martin Geisler mg at lazybytes.net
Wed Aug 26 16:34:16 CDT 2009


Douglas Philips <dgou at mac.com> writes:

> Should it really do this?
>
> I mean, read two config files on Windows? And only on Windows? Yes, I
> just tried 1.3.1 under Leopard and it ignores Mercurial.ini
> (mercurial.ini as well).

The responsible code is this:

  http://www.selenic.com/hg/index.cgi/file/37042e8b3b34/mercurial/posix.py#l45
  http://www.selenic.com/hg/index.cgi/file/37042e8b3b34/mercurial/windows.py#l80

You can see that the Windows code explicitly looks for both '.hgrc' and
'mercurial.ini' whereas the Posix file looks for '.hgrc' only.

I don't know why it is inconsistent like this -- I would have expected
it to either read both files on all systems or read just a single
system-specific file on each system.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090826/368ba50c/attachment.pgp 


More information about the Mercurial-devel mailing list