bug 1010053 - remove try_gcc45 hook; r=glandium
authorHal Wine <hwine@mozilla.com>
Tue, 03 Jun 2014 16:07:26 -0700
changeset 196 83912e7844d4afa59da5ddb4276445c96577be00
parent 195 1d448b7b8187833f91fea05bebed82875dc2e881
child 197 ae1d24339570ee7600e96b18e4672f04bf76c45a
push id124
push userhwine@mozilla.com
push dateTue, 03 Jun 2014 23:07:45 +0000
reviewersglandium
bugs1010053
bug 1010053 - remove try_gcc45 hook; r=glandium
mozhghooks/try_gcc45.py
deleted file mode 100644
--- a/mozhghooks/try_gcc45.py
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (C) 2011 Mozilla Foundation
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# 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.
-
-import os.path
-import re
-import argparse
-
-def processMessage(message):
-    for line in message.split('\n'):
-        match = re.search('try: ',str(line))
-        if match:
-            line = line.strip().split('try: ', 1)
-            line = line[1].split(' ')
-            return line
-    return [""]
-
-def TryParser(message):
-    parser = argparse.ArgumentParser(description='Pass in a commit message and a list \
-                                     and tryParse populates the list with the builderNames\
-                                     that need schedulers.')
-    parser.add_argument('--do-everything', '-a',
-                        action='store_true',
-                        dest='do_everything',
-                        help='m-c override to do all builds, tests, talos just like a trunk push')
-    parser.add_argument('--build', '-b',
-                        default='do',
-                        dest='build',
-                        help='accepts the build types requested')
-    parser.add_argument('--platform', '-p',
-                        default='all',
-                        dest='user_platforms',
-                        help='provide a list of platforms desired, or specify none (default is all)')
-    parser.add_argument('--unittests', '-u',
-                        default='all',
-                        dest='test',
-                        help='provide a list of unit tests, or specify all (default is None)')
-    parser.add_argument('--talos', '-t',
-                        default='none',
-                        dest='talos',
-                        help='provide a list of talos tests, or specify all (default is None)')
-
-    (options, unknown_args) = parser.parse_known_args(processMessage(message))
-
-    options.user_platforms = options.user_platforms.split(',')
-
-    return options
-
-def any(iterable):
-    for element in iterable:
-        if element:
-            return True
-    return False
-
-def hook(ui, repo, **kwargs):
-    name = os.path.basename(repo.root)
-    if name != "try":
-        return 0;
-
-    options = TryParser(repo.changectx('tip').description())
-    if options.do_everything or any(p in options.user_platforms for p in ['all', 'linux', 'linux64']):
-        try:
-            base = repo.changectx('3a38a70b0e12')
-            if repo.changectx('tip').ancestor(base) != base:
-                raise
-        except:
-            print "\n\n************************* WARNING ***************************"
-            print "You are pushing a changeset that is likely to fail to build"
-            print "on Linux bots if you haven't done something about it."
-            print "Please see https://wiki.mozilla.org/ReleaseEngineering/TryServer#Using_older_GCC"
-            print "for more details."
-            print "*************************************************************\n\n"
-
-    return 0