Commit 1bb7ddc8 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1669879 - Always use `hg` in run-task on mac. r=releng-reviewers,mtabara

All the workers that had hg under /tools/python27-mercurial are gone.
This also fixes run-task for workers running > 10.14.

Differential Revision: https://phabricator.services.mozilla.com/D92867
parent f20ca4ec
......@@ -411,14 +411,7 @@ def vcs_checkout(source_repo, dest, store_path,
print('revision is not specified for checkout')
sys.exit(1)
if IS_MACOSX:
release = platform.mac_ver()
versionNums = release[0].split('.')[:2]
os_version = "%s.%s" % (versionNums[0], versionNums[1])
hg_bin = '/tools/python27-mercurial/bin/hg'
if os_version == "10.14":
hg_bin = 'hg'
elif IS_POSIX:
if IS_MACOSX or IS_POSIX:
hg_bin = 'hg'
elif IS_WINDOWS:
# This is where OCC installs it in the AMIs.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment