I've downloaded the latest Mercurial source and build and installed it on my Windows machine. Python's Script folder is in my Path variable, but Mercurial's install generated hg.bat file calling hg: %~dp0..\python "%~dp0hg" %* This causes an error when Python is installed in a path containing spaces (e.g. "C:\Program Files\Python") -- it will try to call "C:\Program" with arguments "Files\Python\python ...") I've fixed it in my install by quoting python: "%~dp0..\python" "%~dp0hg" %*
Fixed by http://hg.intevation.org/mercurial/crew/rev/5096faaa280e Benjamin Pollack <benjamin@bitquabit.com> windows: handle spaces in path to Python (issue2074)
Isssue2421 is a duplicate of this one.
--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:07 EDT --- This bug was previously known as _bug_ 2074 at http://mercurial.selenic.com/bts/issue2074