Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 """Define the supported projects.""" | 4 """Define the supported projects.""" |
| 5 | 5 |
| 6 import json | 6 import json |
| 7 import logging | 7 import logging |
| 8 import os | 8 import os |
| 9 import re | 9 import re |
| 10 import sys | 10 import sys |
| 11 import urllib2 | 11 import urllib2 |
| 12 | 12 |
| 13 import find_depot_tools # pylint: disable=W0611 | 13 import find_depot_tools # pylint: disable=W0611 |
| 14 import checkout | 14 import checkout |
| 15 | 15 |
| 16 import async_push | 16 import async_push |
| 17 import context | 17 import context |
| 18 import errors | 18 import errors |
| 19 import pending_manager | 19 import pending_manager |
| 20 from post_processors import chromium_copyright | 20 from post_processors import chromium_copyright |
| 21 from verification import presubmit_check | 21 from verification import presubmit_check |
| 22 from verification import project_base | 22 from verification import project_base |
| 23 from verification import reviewer_lgtm | 23 from verification import reviewer_lgtm |
| 24 from verification import tree_status | 24 from verification import tree_status |
| 25 from verification import try_job_steps | 25 from verification import try_job_steps |
| 26 from verification import try_job_on_rietveld | 26 from verification import try_job_on_rietveld |
| 27 from verification import try_server | 27 from verification import try_server |
| 28 | 28 |
| 29 | 29 |
| 30 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) | 30 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) |
|
Paweł Hajdan Jr.
2013/10/10 23:04:33
While you're here, shouldn't ROOT_DIR be more like
agable
2013/10/10 23:21:05
It is the root of the repository...
| |
| 31 sys.path.insert(0, os.path.join(ROOT_DIR, '..', 'commit-queue-internal')) | 31 INTERNAL_DIR = os.path.abspath( |
| 32 os.path.join(ROOT_DIR, os.pardir, 'commit-queue-internal')) | |
| 32 | 33 |
| 33 # These come from commit-queue in the internal repo. | 34 # These come from commit-queue in the internal repo. |
| 34 try: | 35 if os.path.isdir(INTERNAL_DIR): |
| 36 sys.path.insert(0, INTERNAL_DIR) | |
| 35 import chromium_committers # pylint: disable=F0401 | 37 import chromium_committers # pylint: disable=F0401 |
| 36 import gyp_committers # pylint: disable=F0401 | 38 import gyp_committers # pylint: disable=F0401 |
| 37 import nacl_committers # pylint: disable=F0401 | 39 import nacl_committers # pylint: disable=F0401 |
| 38 import skia_committers # pylint: disable=F0401 | 40 import skia_committers # pylint: disable=F0401 |
| 39 except ImportError as e: | 41 else: |
| 40 print >> sys.stderr, ( | 42 print >> sys.stderr, ( |
| 41 'Failed to find commit-queue-internal, will fail to start: %s' % e) | 43 'Failed to find commit-queue-internal; will fail to start!') |
|
Paweł Hajdan Jr.
2013/10/10 23:04:33
I don't think this patch makes it actually fail to
agable
2013/10/10 23:21:05
Nope, but it didn't before either. CQ has never cr
| |
| 42 chromium_committers = None | 44 chromium_committers = None |
| 43 gyp_committers = None | 45 gyp_committers = None |
| 44 nacl_committers = None | 46 nacl_committers = None |
| 45 skia_committers = None | 47 skia_committers = None |
| 46 | 48 |
| 47 | 49 |
| 48 # It's tricky here because 'chrome' is remapped to 'svn' on src.chromium.org but | 50 # It's tricky here because 'chrome' is remapped to 'svn' on src.chromium.org but |
| 49 # the other repositories keep their repository name. So don't list it here. | 51 # the other repositories keep their repository name. So don't list it here. |
| 50 SVN_HOST_ALIASES = [ | 52 SVN_HOST_ALIASES = [ |
| 51 'svn://svn.chromium.org', | 53 'svn://svn.chromium.org', |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 734 """List the projects that can be managed by the commit queue.""" | 736 """List the projects that can be managed by the commit queue.""" |
| 735 return sorted( | 737 return sorted( |
| 736 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) | 738 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) |
| 737 | 739 |
| 738 | 740 |
| 739 def load_project(project, user, root_dir, rietveld_obj, no_try): | 741 def load_project(project, user, root_dir, rietveld_obj, no_try): |
| 740 """Loads the specified project.""" | 742 """Loads the specified project.""" |
| 741 assert os.path.isabs(root_dir) | 743 assert os.path.isabs(root_dir) |
| 742 return getattr(sys.modules[__name__], '_gen_' + project)( | 744 return getattr(sys.modules[__name__], '_gen_' + project)( |
| 743 user, root_dir, rietveld_obj, no_try) | 745 user, root_dir, rietveld_obj, no_try) |
| OLD | NEW |