| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 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 import argparse | 6 import argparse |
| 7 import collections | 7 import collections |
| 8 import logging | 8 import logging |
| 9 import os | 9 import os |
| 10 import re | 10 import re |
| 11 import subprocess | 11 import subprocess |
| 12 import sys | 12 import sys |
| 13 import time | 13 import time |
| 14 | 14 |
| 15 extra_trybots = [ | 15 extra_trybots = [ |
| 16 'win_clang_dbg', | 16 'win_clang_dbg', |
| 17 ] | 17 ] |
| 18 | 18 |
| 19 SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) | 19 SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) |
| 20 SRC_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir)) | 20 SRC_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir)) |
| 21 sys.path.insert(0, os.path.join(SRC_DIR, 'build')) |
| 21 import find_depot_tools | 22 import find_depot_tools |
| 22 find_depot_tools.add_depot_tools_to_path() | 23 find_depot_tools.add_depot_tools_to_path() |
| 23 import roll_dep_svn | 24 import roll_dep_svn |
| 24 from gclient import GClientKeywords | 25 from gclient import GClientKeywords |
| 25 from third_party import upload | 26 from third_party import upload |
| 26 | 27 |
| 27 # Avoid depot_tools/third_party/upload.py print verbose messages. | 28 # Avoid depot_tools/third_party/upload.py print verbose messages. |
| 28 upload.verbosity = 0 # Errors only. | 29 upload.verbosity = 0 # Errors only. |
| 29 | 30 |
| 30 CHROMIUM_GIT_URL = 'https://chromium.googlesource.com/chromium/src.git' | 31 CHROMIUM_GIT_URL = 'https://chromium.googlesource.com/chromium/src.git' |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 logging.basicConfig(level=logging.ERROR) | 349 logging.basicConfig(level=logging.ERROR) |
| 349 | 350 |
| 350 autoroller = AutoRoller(SRC_DIR) | 351 autoroller = AutoRoller(SRC_DIR) |
| 351 if args.abort: | 352 if args.abort: |
| 352 return autoroller.Abort() | 353 return autoroller.Abort() |
| 353 else: | 354 else: |
| 354 return autoroller.PrepareRoll(args.ignore_checks) | 355 return autoroller.PrepareRoll(args.ignore_checks) |
| 355 | 356 |
| 356 if __name__ == '__main__': | 357 if __name__ == '__main__': |
| 357 sys.exit(main()) | 358 sys.exit(main()) |
| OLD | NEW |