Bug 1305597 - explicit path to hg 3.9.1 with valid mercurial.ini draft
authorRob Thijssen <rthijssen@mozilla.com>
Tue, 27 Sep 2016 13:01:45 +0100
changeset 417966 c97bf746986ec007eb1678219e0b8278f7b3ea09
parent 417649 c55bcb7c777ea09431b4d16903ed079ae5632648
child 532216 cf4f36f431cd5ef3ee8879eb2351a37e82f538df
push id30542
push userrthijssen@mozilla.com
push dateTue, 27 Sep 2016 12:11:32 +0000
bugs1305597
milestone52.0a1
Bug 1305597 - explicit path to hg 3.9.1 with valid mercurial.ini MozReview-Commit-ID: 9fBuF2KHHzT
taskcluster/taskgraph/transforms/job/mozharness.py
--- 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),
     ]