https://github.com/mozilla/gecko-dev
Revision d1d6324de049e1a5c68d259fa2ea8f7e36f77536 authored by Gregory Szorc on 27 April 2015, 17:43:49 UTC, committed by Gregory Szorc on 27 April 2015, 17:43:49 UTC
This is needed for compatibility with an upcoming release of
MozillaBuild, which distributes Mercurial as a Python package, not as a
standalone Windows program. As a result, it introduces "hg" into $PATH,
which "which" will happily prefer as the "hg" binary. This upsets
subprocess. So, we explicitly prefer "hg.exe" over "hg".

We could accomplish the same thing by calling which.whichall() and
sorting results. But this is more code and IMO not worth the effort to
implement.
1 parent 9dcb456
History
Tip revision: d1d6324de049e1a5c68d259fa2ea8f7e36f77536 authored by Gregory Szorc on 27 April 2015, 17:43:49 UTC
Bug 1128586 - Prefer hg.exe over hg. r=RyanVM, a=NPOTB
Tip revision: d1d6324

README.txt

back to top