bug 994717 - add mgerva to allowed list; r=Callek
authorHal Wine <hwine@mozilla.com>
Thu, 10 Apr 2014 12:30:15 -0700
changeset 180 b806bcd1f3356af335a76c9b2771390ba11c7630
parent 179 d5e45273fd1deb4f039c8937072bc725d427c304
child 181 953b3f1a8610d219b6a6033eb3ea62d37eab6620
push id108
push userhwine@mozilla.com
push dateThu, 10 Apr 2014 19:30:25 +0000
reviewersCallek
bugs994717
bug 994717 - add mgerva to allowed list; r=Callek
mozhghooks/whitelist_releng.py
--- a/mozhghooks/whitelist_releng.py
+++ b/mozhghooks/whitelist_releng.py
@@ -9,52 +9,55 @@
 #
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
+# USA.
 
-# This script implements a whitelist containing people from the releng and relops teams.
+# This script implements a whitelist containing people from the releng and
+# relops teams.
 #
 # run `python setup.py install` to install the module in the proper place,
 # and then modify the repository's hgrc as per example-hgrc.
 
 import os
 
 ALLOWED_USERS = set([
     'Callek@gmail.com',
+    'arich@mozilla.com',
     'armenzg@mozilla.com',
-    'arich@mozilla.com',
     'asasaki@mozilla.com',
     'bhearsum@mozilla.com',
     'catlee@mozilla.com',
     'coop@mozilla.com',
     'dmitchell@mozilla.com',
     'hwine@mozilla.com',
-    'jarmstrong@mozilla.com',
     'jhopkins@mozilla.com',
     'jlund@mozilla.com',
-    'joduinn@mozilla.com',
     'jwatkins@mozilla.com',
     'jwood@mozilla.com',
     'kmoir@mozilla.com',
     'mcornmesser@mozilla.com',
+    'mgerva@mozilla.com',
     'mshal@mozilla.com',
     'mtabara@mozilla.com',
     'nthomas@mozilla.com',
     'pmoore@mozilla.com',
     'qfortier@mozilla.com',
     'raliiev@mozilla.com',
     'sbruno@mozilla.com',
 ])
 
+
 def hook(ui, repo, node=None, **kwargs):
     rev = repo[node].rev()
     tip = repo['tip'].rev()
-    branches = set(repo.changectx(i).branch() for i in range(rev, tip+1))
+    branches = set(repo.changectx(i).branch() for i in range(rev, tip + 1))
     if 'production' in branches and os.environ['USER'] not in ALLOWED_USERS:
-        print "** you (%s) are not allowed to push to the production branch" % (os.environ['USER'],)
+        print "** you (%s) are not allowed to push to the production branch" \
+            % (os.environ['USER'],)
         return 1
     return 0