author Mozilla Releng Treescript <>
Wed, 29 Jun 2022 07:00:16 +0000
changeset 622411 8e5247451c9a83abe6f877f5f2c62332a84c9aaf
parent 603826 f5bc15cd675b29bf7c961815b1ef5992a686b09f
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD es-MX -> 9a31632cf87a851a1098be4b8f4124daab607967 ko -> 217a9bde95e1cfafd86cf9e09599e5fe838da2c6 sl -> 67cecc7d62a21ddc3b8942f1e3741df67933c53b zh-TW -> 4955eee5c0cc3d8df3b5e06065319552c908f981

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, # You can obtain one at

from __future__ import absolute_import, print_function, unicode_literals

import requests

from mozbuild.vendor.host_base import BaseHost

class AngleHost(BaseHost):
    def upstream_commit(self, revision):
        raise Exception("Should not be called")

    def upstream_tag(self, revision):
        data = requests.get("").json()

        for row in data:
            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 (

        raise Exception("Could not find win64 beta version in the JSON response")

    def upstream_snapshot(self, revision):
        raise Exception("Not supported for Angle")