mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1881272: remove support for unused 'l10n_repos', 'tag_override', and 'gecko_locale_revisions' in mozharness a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D213822
This commit is contained in:
parent
b03deeb5b4
commit
38406e1f63
@ -83,9 +83,7 @@ class VCSMixin(object):
|
||||
args=(vcs_obj, kwargs["dest"]),
|
||||
)
|
||||
|
||||
def vcs_checkout_repos(
|
||||
self, repo_list, parent_dir=None, tag_override=None, **kwargs
|
||||
):
|
||||
def vcs_checkout_repos(self, repo_list, parent_dir=None, **kwargs):
|
||||
"""Check out a list of repos."""
|
||||
orig_dir = os.getcwd()
|
||||
c = self.config
|
||||
@ -98,8 +96,6 @@ class VCSMixin(object):
|
||||
for repo_dict in repo_list:
|
||||
kwargs = deepcopy(kwargs_orig)
|
||||
kwargs.update(repo_dict)
|
||||
if tag_override:
|
||||
kwargs["branch"] = tag_override
|
||||
dest = self.query_dest(kwargs)
|
||||
revision_dict[dest] = {"repo": kwargs["repo"]}
|
||||
revision_dict[dest]["revision"] = self.vcs_checkout(**kwargs)
|
||||
|
@ -4,8 +4,7 @@
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
# ***** END LICENSE BLOCK *****
|
||||
"""Localization.
|
||||
"""
|
||||
"""Localization."""
|
||||
|
||||
import os
|
||||
import pprint
|
||||
@ -22,7 +21,6 @@ class LocalesMixin(object):
|
||||
"""
|
||||
self.abs_dirs = None
|
||||
self.locales = None
|
||||
self.gecko_locale_revisions = None
|
||||
self.l10n_revisions = {}
|
||||
|
||||
def query_locales(self):
|
||||
@ -145,11 +143,6 @@ class LocalesMixin(object):
|
||||
if parent_dir is None:
|
||||
parent_dir = self.query_abs_dirs()["abs_l10n_dir"]
|
||||
self.mkdir_p(parent_dir)
|
||||
# This block is to allow for pulling buildbot-configs in Fennec
|
||||
# release builds, since we don't pull it in MBF anymore.
|
||||
if c.get("l10n_repos"):
|
||||
repos = c.get("l10n_repos")
|
||||
self.vcs_checkout_repos(repos, tag_override=c.get("tag_override"))
|
||||
# Pull locales
|
||||
locales = self.query_locales()
|
||||
locale_repos = []
|
||||
@ -160,12 +153,10 @@ class LocalesMixin(object):
|
||||
locale_repos.append(
|
||||
{"repo": "%s/%s" % (hg_l10n_base, locale), "branch": tag, "vcs": vcs}
|
||||
)
|
||||
revs = self.vcs_checkout_repos(
|
||||
self.vcs_checkout_repos(
|
||||
repo_list=locale_repos,
|
||||
parent_dir=parent_dir,
|
||||
tag_override=c.get("tag_override"),
|
||||
)
|
||||
self.gecko_locale_revisions = revs
|
||||
|
||||
|
||||
# __main__ {{{1
|
||||
|
@ -64,15 +64,6 @@ class MultiLocaleBuild(LocalesMixin, MercurialScript):
|
||||
"help": "Specify the L10n tag",
|
||||
},
|
||||
],
|
||||
[
|
||||
["--tag-override"],
|
||||
{
|
||||
"action": "store",
|
||||
"dest": "tag_override",
|
||||
"type": "string",
|
||||
"help": "Override the tags set for all repos",
|
||||
},
|
||||
],
|
||||
]
|
||||
|
||||
def __init__(self, require_config_file=True):
|
||||
|
@ -59,17 +59,6 @@ class DesktopSingleLocale(LocalesMixin, AutomationMixin, VCSMixin, BaseScript):
|
||||
" revision separated by colon, en-GB:default.",
|
||||
},
|
||||
],
|
||||
[
|
||||
[
|
||||
"--tag-override",
|
||||
],
|
||||
{
|
||||
"action": "store",
|
||||
"dest": "tag_override",
|
||||
"type": "string",
|
||||
"help": "Override the tags set for all repos",
|
||||
},
|
||||
],
|
||||
[
|
||||
[
|
||||
"--en-us-installer-url",
|
||||
|
Loading…
Reference in New Issue
Block a user