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
This commit is contained in:
Mike Hommey 2020-10-08 09:40:25 +00:00
Родитель 6baafff796
Коммит d9a9f5848c
1 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -414,14 +414,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.