Bug 1305597 - explicit path to hg 3.9.1 with valid mercurial.ini
MozReview-Commit-ID: 9fBuF2KHHzT
--- a/taskcluster/taskgraph/transforms/job/mozharness.py
+++ b/taskcluster/taskgraph/transforms/job/mozharness.py
@@ -182,14 +182,15 @@ def mozharness_on_windows(config, job, t
})
mh_command = [r'c:\mozilla-build\python\python.exe']
mh_command.append('\\'.join([r'.\build\src\testing', run['script'].replace('/', '\\')]))
for cfg in run['config']:
mh_command.append('--config ' + cfg.replace('/', '\\'))
mh_command.append('--branch ' + config.params['project'])
mh_command.append(r'--skip-buildbot-actions --work-dir %cd:Z:=z:%\build')
+ hg = r'c:\Program Files\Mercurial\hg.exe'
worker['command'] = [
r'mkdir .\build\src',
- r'hg share c:\builds\hg-shared\mozilla-central .\build\src',
- r'hg pull -u -R .\build\src --rev %GECKO_HEAD_REV% %GECKO_HEAD_REPOSITORY%',
+ r'"{}" share c:\builds\hg-shared\mozilla-central .\build\src'.format(hg),
+ r'"{}" pull -u -R .\build\src --rev %GECKO_HEAD_REV% %GECKO_HEAD_REPOSITORY%'.format(hg),
' '.join(mh_command),
]