Bug 1027657 - Allow pushing Instantbird-only changes on a closed c-c tree. r=Callek
authoraleth <aleth@instantbird.org>
Mon, 23 Jun 2014 12:44:53 +0200
changeset 359288 411870c96b45ba06dfce20ab2db49c4148aea2be
parent 359287 3ad6ab8c7f6ae21f4467aa8ae9e8599643f971f7
child 359289 21b59f2dbb750ca57988f72cbcf35d5505bcf082
push id16998
push userrwood@mozilla.com
push dateMon, 02 May 2016 19:42:03 +0000
reviewersCallek
bugs1027657
Bug 1027657 - Allow pushing Instantbird-only changes on a closed c-c tree. r=Callek
hghooks/mozhghooks/treeclosure_comm_central.py
--- a/hghooks/mozhghooks/treeclosure_comm_central.py
+++ b/hghooks/mozhghooks/treeclosure_comm_central.py
@@ -20,16 +20,20 @@ from urllib2 import urlopen
 import os.path
 import re
 import json
 
 # Array of which directories SeaMonkey exclusively controls in comm-central
 seamonkeyOwns = [
   'suite'
 ]
+# Array of which directories Instantbird exclusively controls in comm-central
+instantbirdOwns = [
+  'im'
+]
 # Everything else is assumed to be controlled by Thunderbird.
 
 magicwords = "CLOSED TREE"
 
 treestatus_base_url = "https://treestatus.mozilla.org"
 
 def printError(message):
     print "\n\n************************** ERROR ****************************"
@@ -102,16 +106,18 @@ def hook(ui, repo, node, **kwargs):
         # all changesets from node to 'tip' inclusive are part of this push
         rev = repo.changectx(node).rev()
         tip = repo.changectx('tip').rev()
         for i in range(rev, tip+1):
             ctx = repo.changectx(i)
             for changedFile in ctx.files():
                 if isOwned(changedFile, seamonkeyOwns):
                     apps['seamonkey'] = True
+                elif isOwned(changedFile, instantbirdOwns):
+                    pass  # ignore Instantbird for tree closure reasons
                 else:
                     apps['thunderbird'] = True
 
         repoName = os.path.basename(repo.root)
         status = 0
 
         for app in apps:
             if apps[app]: