]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: don't fail when Mercurial is a batch file on Windows
authorAlexey Borzenkov <snaury@gmail.com>
Mon, 9 Apr 2012 19:39:59 +0000 (15:39 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 9 Apr 2012 19:39:59 +0000 (15:39 -0400)
commit0669261af107eddb13d71293d654b595417f8053
tree505cdb7bbf868622df6b252d60982bdf8ae75931
parentf6d582db6123e3b199fa34334505f952e554312d
cmd/dist: don't fail when Mercurial is a batch file on Windows

On windows Mercurial installed with easy_install typically creates
an hg.bat batch file in Python Scripts directory, which cannot be used
with CreateProcess unless full path is specified. Work around by
launching hg via cmd.exe /c.

Additionally, fix a rare FormatMessageW crash.

Fixes #3093.

R=golang-dev, rsc, alex.brainman, aram, jdpoirier, mattn.jp
CC=golang-dev
https://golang.org/cl/5937043
src/cmd/dist/windows.c