help="The release config file to use.") parser.add_option("-b", "--buildbot-configs", dest="buildbot_configs", help="The place to clone buildbot-configs from") parser.add_option("-t", "--release-tag", dest="release_tag", help="Release tag to update buildbot-configs to") options, args = parser.parse_args() retry(mercurial, args=(options.buildbot_configs, 'buildbot-configs')) update('buildbot-configs', revision=options.release_tag) config = validate(options, args) configDir = path.dirname(options.configfile) # We generate this upfront to ensure that it's consistent throughout all # repositories that use it. However, in cases where a relbranch is provided # for all repositories, it will not be used generatedRelbranch = generateRelbranchName(config['milestone']) if config.get('relbranchPrefix'): generatedRelbranch = generateRelbranchName( config['milestone'], prefix=config['relbranchPrefix']) tags = getTags(config['baseTag'], config['buildNumber']) l10nRepos = getL10nRepositories(path.join('buildbot-configs', configDir, config['l10nRevisionFile']), config['l10nRepoPath']) for repo in config['sourceRepositories'].values(): relbranch = repo['relbranch'] or generatedRelbranch tagRepo(config, repo['path'], repo['name'], repo['revision'], tags, repo['bumpFiles'], relbranch, options.attempts) failed = [] for l in sorted(l10nRepos): info = l10nRepos[l]
parser.add_option("--tag-other", dest="tag_other", action="store_true", default=False, help="Tag the other repo(s).") options, args = parser.parse_args() mercurial(options.buildbot_configs, 'buildbot-configs') update('buildbot-configs', revision=options.release_tag) config = validate(options, args) configDir = path.dirname(options.configfile) # We generate this upfront to ensure that it's consistent throughout all # repositories that use it. However, in cases where a relbranch is provided # for all repositories, it will not be used generatedRelbranch = generateRelbranchName(config['version']) if config.get('relbranchPrefix'): generatedRelbranch = generateRelbranchName( config['version'], prefix=config['relbranchPrefix']) tags = getTags(config['baseTag'], config['buildNumber']) l10nRevisionFile = path.join('buildbot-configs', configDir, config['l10nRevisionFile']) l10nRepos = getL10nRepositories( open(l10nRevisionFile).read(), config['l10nRepoPath']) if options.tag_source: for repo in config['sourceRepositories'].values(): relbranch = repo['relbranch'] or generatedRelbranch tagRepo(config, repo['path'], repo['name'], repo['revision'], tags, repo['bumpFiles'], relbranch, options.attempts) failed = []
action="store_true", default=False, help="Tag the L10n repo(s).") parser.add_option("--tag-other", dest="tag_other", action="store_true", default=False, help="Tag the other repo(s).") options, args = parser.parse_args() mercurial(options.buildbot_configs, 'buildbot-configs') update('buildbot-configs', revision=options.release_tag) config = validate(options, args) configDir = path.dirname(options.configfile) # We generate this upfront to ensure that it's consistent throughout all # repositories that use it. However, in cases where a relbranch is provided # for all repositories, it will not be used generatedRelbranch = generateRelbranchName(config['version']) if config.get('relbranchPrefix'): generatedRelbranch = generateRelbranchName( config['version'], prefix=config['relbranchPrefix']) tags = getTags(config['baseTag'], config['buildNumber']) l10nRevisionFile = path.join( 'buildbot-configs', configDir, config['l10nRevisionFile']) l10nRepos = getL10nRepositories( open(l10nRevisionFile).read(), config['l10nRepoPath']) if options.tag_source: for repo in config['sourceRepositories'].values(): relbranch = repo['relbranch'] or generatedRelbranch tagRepo(config, repo['path'], repo['name'], repo['revision'], tags, repo['bumpFiles'], relbranch, options.attempts) failed = []