where are the docs for $HG environment variable?
Evan Powers
evan.powers+hg at gmail.com
Mon Jul 2 14:12:21 CDT 2007
On 7/2/07, Thomas Arendsen Hein <thomas at intevation.de> wrote:
> What is special in your setup that hg can't find its own executable?
What's special is that he's on Windows (which isn't that special); the
function Hg uses to find its own executable, set_hgexecutable() in
mercurial/util.py, simply doesn't work on Windows (or XP at least,
based on my own experience; I'm not sure which version Forest uses).
The underlying reason is that the Windows command shell passes exactly
what you type as argv0, so if you type "hg view", then argv0 is "hg"
even though the command shell searched %PATHEXT% and %PATH% to find
the file "c:\Program Files\Mercurial\hg.exe". Since set_hgexecutable()
effectively just prepends the current working directory on Windows,
the value of %HG% is basically never right.
There's a little more in the set_hgexecutable() thread on
mercurial-devel (6/29/2007), including a very crude patch I wrote.
- Evan
More information about the Mercurial
mailing list