| 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 | 15 |
| 16 SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) | 16 SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) |
| 17 SRC_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir)) | 17 SRC_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir)) |
| 18 sys.path.insert(0, os.path.join(SRC_DIR, 'build')) |
| 18 import find_depot_tools | 19 import find_depot_tools |
| 19 find_depot_tools.add_depot_tools_to_path() | 20 find_depot_tools.add_depot_tools_to_path() |
| 20 import rietveld | 21 import rietveld |
| 21 import roll_dep_svn | 22 import roll_dep_svn |
| 22 from gclient import GClientKeywords | 23 from gclient import GClientKeywords |
| 23 from third_party import upload | 24 from third_party import upload |
| 24 | 25 |
| 25 # Avoid depot_tools/third_party/upload.py print verbose messages. | 26 # Avoid depot_tools/third_party/upload.py print verbose messages. |
| 26 upload.verbosity = 0 # Errors only. | 27 upload.verbosity = 0 # Errors only. |
| 27 | 28 |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 if args.abort: | 433 if args.abort: |
| 433 return autoroller.Abort() | 434 return autoroller.Abort() |
| 434 elif args.wait_for_trybots: | 435 elif args.wait_for_trybots: |
| 435 return autoroller.WaitForTrybots() | 436 return autoroller.WaitForTrybots() |
| 436 else: | 437 else: |
| 437 return autoroller.PrepareRoll(args.dry_run, args.ignore_checks, | 438 return autoroller.PrepareRoll(args.dry_run, args.ignore_checks, |
| 438 args.no_commit, args.close_previous_roll) | 439 args.no_commit, args.close_previous_roll) |
| 439 | 440 |
| 440 if __name__ == '__main__': | 441 if __name__ == '__main__': |
| 441 sys.exit(main()) | 442 sys.exit(main()) |
| OLD | NEW |