OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 | 4 |
5 """Top-level presubmit script for Chromium. | 5 """Top-level presubmit script for Chromium. |
6 | 6 |
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
8 for more details about the presubmit API built into gcl. | 8 for more details about the presubmit API built into gcl. |
9 """ | 9 """ |
10 | 10 |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 input_api, output_api)) | 326 input_api, output_api)) |
327 results.extend(_CheckSubversionConfig(input_api, output_api)) | 327 results.extend(_CheckSubversionConfig(input_api, output_api)) |
328 return results | 328 return results |
329 | 329 |
330 | 330 |
331 def GetPreferredTrySlaves(project, change): | 331 def GetPreferredTrySlaves(project, change): |
332 only_objc_files = all( | 332 only_objc_files = all( |
333 f.LocalPath().endswith(('.mm', '.m')) for f in change.AffectedFiles()) | 333 f.LocalPath().endswith(('.mm', '.m')) for f in change.AffectedFiles()) |
334 if only_objc_files: | 334 if only_objc_files: |
335 return ['mac'] | 335 return ['mac'] |
336 return ['win', 'linux', 'mac', 'win_shared', 'linux_shared'] | 336 return ['win', 'linux', 'mac'] |
OLD | NEW |