| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # TODO(hinoka): Use logging. | 6 # TODO(hinoka): Use logging. |
| 7 | 7 |
| 8 import cStringIO | 8 import cStringIO |
| 9 import codecs | 9 import codecs |
| 10 import collections | 10 import collections |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 print 'Warning: unable to read internal configuration file.' | 243 print 'Warning: unable to read internal configuration file.' |
| 244 print 'If this is an internal bot, this step may be erroneously inactive.' | 244 print 'If this is an internal bot, this step may be erroneously inactive.' |
| 245 internal_data = local_vars | 245 internal_data = local_vars |
| 246 | 246 |
| 247 RECOGNIZED_PATHS = { | 247 RECOGNIZED_PATHS = { |
| 248 # If SVN path matches key, the entire URL is rewritten to the Git url. | 248 # If SVN path matches key, the entire URL is rewritten to the Git url. |
| 249 '/chrome/trunk/src': | 249 '/chrome/trunk/src': |
| 250 CHROMIUM_SRC_URL, | 250 CHROMIUM_SRC_URL, |
| 251 '/chrome/trunk/src/tools/cros.DEPS': | 251 '/chrome/trunk/src/tools/cros.DEPS': |
| 252 CHROMIUM_GIT_HOST + '/chromium/src/tools/cros.DEPS.git', | 252 CHROMIUM_GIT_HOST + '/chromium/src/tools/cros.DEPS.git', |
| 253 '/chrome-internal/trunk/src-internal': |
| 254 'https://chrome-internal.googlesource.com/chrome/src-internal.git', |
| 253 } | 255 } |
| 254 RECOGNIZED_PATHS.update(internal_data.get('RECOGNIZED_PATHS', {})) | 256 RECOGNIZED_PATHS.update(internal_data.get('RECOGNIZED_PATHS', {})) |
| 255 | 257 |
| 256 ENABLED_MASTERS = [ | 258 ENABLED_MASTERS = [ |
| 257 'bot_update.always_on', | 259 'bot_update.always_on', |
| 258 'chromium.android', | 260 'chromium.android', |
| 259 'chromium.angle', | 261 'chromium.angle', |
| 260 'chromium.chrome', | 262 'chromium.chrome', |
| 261 'chromium.chromedriver', | 263 'chromium.chromedriver', |
| 262 'chromium.chromiumos', | 264 'chromium.chromiumos', |
| (...skipping 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1766 except Exception: | 1768 except Exception: |
| 1767 # Unexpected failure. | 1769 # Unexpected failure. |
| 1768 emit_flag(options.flag_file) | 1770 emit_flag(options.flag_file) |
| 1769 raise | 1771 raise |
| 1770 else: | 1772 else: |
| 1771 emit_flag(options.flag_file) | 1773 emit_flag(options.flag_file) |
| 1772 | 1774 |
| 1773 | 1775 |
| 1774 if __name__ == '__main__': | 1776 if __name__ == '__main__': |
| 1775 sys.exit(main()) | 1777 sys.exit(main()) |
| OLD | NEW |