Bug 1740062: Add some qualifiers for mach vendor revision for Angle r=jewilde

Depends on D132592

Differential Revision: https://phabricator.services.mozilla.com/D132593
This commit is contained in:
Tom Ritter 2022-01-05 19:52:46 +00:00
Родитель 472b8ca74e
Коммит 54336b65f3
1 изменённых файлов: 10 добавлений и 2 удалений

12
python/mozbuild/mozbuild/vendor/host_angle.py поставляемый
Просмотреть файл

@ -20,12 +20,20 @@ class AngleHost(BaseHost):
if row["os"] == "win64":
for version in row["versions"]:
if version["channel"] == "beta":
branch = "chromium/" + version["true_branch"]
if revision != "HEAD" and revision != branch:
raise Exception(
"Passing a --revision for Angle that is not HEAD "
+ "or the true branch is not supported."
)
return (
"chromium/" + version["true_branch"],
branch,
version["current_reldate"],
)
raise Exception("Could not find win64 beta version in the JSON response")
def upstream_snapshot(self, revision):
raise Exception("Should not be called")
raise Exception("Not supported for Angle")