| 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 |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 rietveld_obj, | 491 rietveld_obj, |
| 492 local_checkout, | 492 local_checkout, |
| 493 async_push.AsyncPush( | 493 async_push.AsyncPush( |
| 494 'https://skia-tree-status.appspot.com/cq', | 494 'https://skia-tree-status.appspot.com/cq', |
| 495 _skia_status_pwd(root_dir)), | 495 _skia_status_pwd(root_dir)), |
| 496 server_hooks_missing=True) | 496 server_hooks_missing=True) |
| 497 | 497 |
| 498 project_bases = [ | 498 project_bases = [ |
| 499 '^%s(|/.*)$' % re.escape(base + naked_url) for base in ('http', 'https') | 499 '^%s(|/.*)$' % re.escape(base + naked_url) for base in ('http', 'https') |
| 500 ] | 500 ] |
| 501 project_bases.append( |
| 502 r'^https?\:\/\/skia.googlesource.com\/skia(?:\.git)?%s$' % |
| 503 BRANCH_MATCH) |
| 501 verifiers_no_patch = [ | 504 verifiers_no_patch = [ |
| 502 project_base.ProjectBaseUrlVerifier(project_bases), | 505 project_base.ProjectBaseUrlVerifier(project_bases), |
| 503 reviewer_lgtm.ReviewerLgtmVerifier( | 506 reviewer_lgtm.ReviewerLgtmVerifier( |
| 504 _get_skia_committers(), | 507 _get_skia_committers(), |
| 505 [re.escape(user)]), | 508 [re.escape(user)]), |
| 506 ] | 509 ] |
| 507 verifiers = [ | 510 verifiers = [ |
| 508 presubmit_check.PresubmitCheckVerifier(context_obj), | 511 presubmit_check.PresubmitCheckVerifier(context_obj), |
| 509 tree_status.TreeStatusVerifier( | 512 tree_status.TreeStatusVerifier( |
| 510 'https://skia-tree-status.appspot.com') | 513 'https://skia-tree-status.appspot.com') |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 """List the projects that can be managed by the commit queue.""" | 743 """List the projects that can be managed by the commit queue.""" |
| 741 return sorted( | 744 return sorted( |
| 742 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) | 745 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) |
| 743 | 746 |
| 744 | 747 |
| 745 def load_project(project, user, root_dir, rietveld_obj, no_try): | 748 def load_project(project, user, root_dir, rietveld_obj, no_try): |
| 746 """Loads the specified project.""" | 749 """Loads the specified project.""" |
| 747 assert os.path.isabs(root_dir) | 750 assert os.path.isabs(root_dir) |
| 748 return getattr(sys.modules[__name__], '_gen_' + project)( | 751 return getattr(sys.modules[__name__], '_gen_' + project)( |
| 749 user, root_dir, rietveld_obj, no_try) | 752 user, root_dir, rietveld_obj, no_try) |
| OLD | NEW |