Not reading Mercurial.ini in Windows system
Steve Borho
steve at borho.org
Thu Oct 18 10:13:37 CDT 2007
On Thu, 2007-10-18 at 10:22 -0400, Bergquist, Jerome wrote:
> Steve,
>
> Yes, I did use your install script. I had emailed you then about the hg path
> not being added during the install so I was not able to run hg.
>
> I ran the commands you asked for (see below) and yes, the HGRCPATH was not
> set correctly. I must have missed the HGRCPATH part when reading the setup
> and configuration sections.
The installer should have setup HGRCPATH for you, so you didn't miss
anything.
> I updated the path and it is working now. What was throwing me off was that
> commit found that .ini, in the list of directories that HGRC(5) says it
> looks for, to write the username to even though it did not find it to read
> from. I had run commit with different user names and they were updated in
> the %USERPROFILE%\Mercurial.ini that I had created.
>
> Thank you Steve again for your help !!
No problem. Thanks for bringing this to my attention so I can get it
fixed before the next release.
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> U:\>c:
>
> C:\>hg version
> Mercurial Distributed SCM (version 0.9.4)
>
> Copyright (C) 2005-2007 Matt Mackall <mpm at selenic.com> and others
> This is free software; see the source for copying conditions. There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> C:\>echo %HGRCPATH%
> C:\Python25\mercurial\hgrc.d;U:\\mercurial.ini
This is unexpected. The install script uses %HOMEPATH%%HOMEDIR% to get
what is usually "C:\Documents and Settings\USERNAME". At least on your
computer that was a very bad idea.
So at the least, I should change the script to use %USERPROFILE%.
--
Steve Borho (steve at borho.org)
http://www.borho.org/~steve/steve.asc
Key fingerprint = 2D08 E7CF B624 624C DE1F E2E4 B0C2 5292 F2C6 2C8C
More information about the Mercurial
mailing list