Skip to content

Commit

Permalink
Bug 1512188 - Move base repo normalization into collect_vcs_options()…
Browse files Browse the repository at this point in the history
…; r=tomprince,dustin

This is a generic normalization and doesn't need to be Firefox
specific.

Differential Revision: https://phabricator.services.mozilla.com/D13817

--HG--
extra : moz-landing-system : lando
  • Loading branch information
indygreg committed Dec 29, 2018
1 parent 8fb6cd0 commit 7d0932f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions taskcluster/scripts/run-task
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,12 @@ def collect_vcs_options(args, project):
if checkout:
checkout = os.path.expanduser(checkout)

# Some callers set the base repository to mozilla-central for historical
# reasons. Switch to mozilla-unified because robustcheckout works best
# with it.
if base_repo == 'https://hg.mozilla.org/mozilla-central':
base_repo = 'https://hg.mozilla.org/mozilla-unified'

return {
'project': project,
'checkout': checkout,
Expand Down Expand Up @@ -721,19 +727,12 @@ def main(args):
gecko_options = collect_vcs_options(args, 'gecko')

if gecko_options['checkout']:
base_repo = gecko_checkout['base-repo']
# Some callers set the base repository to mozilla-central for historical
# reasons. Switch to mozilla-unified because robustcheckout works best
# with it.
if base_repo == 'https://hg.mozilla.org/mozilla-central':
base_repo = 'https://hg.mozilla.org/mozilla-unified'

os.environ['GECKO_HEAD_REV'] = vcs_checkout(
gecko_options['head-repo'],
gecko_options['checkout'],
os.environ['HG_STORE_PATH'],
fetch_hgfingerprint=args.fetch_hgfingerprint,
base_repo=base_repo,
base_repo=gecko_options['base-repo'],
revision=gecko_options['revision'],
branch=gecko_options['branch'],
sparse_profile=gecko_options['sparse-profile'])
Expand Down

0 comments on commit 7d0932f

Please sign in to comment.