Bug 630526, update generateBlocklistBuilder to pass the product_name to the script. r=nthomas
authorJustin Wood <Callek@gmail.com>
Thu, 17 Feb 2011 22:26:53 -0500
changeset 1324 56e21ad2fb5d772dd8361b62a7507c2fc3221465
parent 1323 4b216084db36f3b497efe62f03e829269e1a0f27
child 1325 1c993575142b5cc009ae1271e0f1b322becbd01c
push id891
push userCallek@gmail.com
push dateMon, 21 Feb 2011 03:33:06 +0000
reviewersnthomas
bugs630526, 426214
Bug 630526, update generateBlocklistBuilder to pass the product_name to the script. r=nthomas Port |Bug 426214 - Automatically update blocklist.xml in cvs/hg from blocklist service| to SeaMonkey
misc.py
--- a/misc.py
+++ b/misc.py
@@ -2850,16 +2850,18 @@ def generateMobileBranchObjects(config, 
 
     if not config.get('enable_merging', True):
         nomergeBuilders.extend(builders + nightlyBuilders)
 
     return mobile_objects
 
 def generateBlocklistBuilder(config, branch_name, platform, base_name, slaves) :
     extra_args = ['-d', '-b', config['repo_path']]
+    if config['product_name'] is not None:
+        extra_args.extend(['-p', config['product_name']])
     if config['hg_username'] is not None:
         extra_args.extend(['-u', config['hg_username']])
     if config['hg_ssh_key'] is not None:
         extra_args.extend(['-k', config['hg_ssh_key']])
     if config['blocklist_update_on_closed_tree'] is True:
         extra_args.extend(['-c'])
     blocklistupdate_factory = ScriptFactory(
         "%s%s" % (config['hgurl'],