| 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 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 def _ParseDepsFile(filename): | 76 def _ParseDepsFile(filename): |
| 77 with open(filename, 'rb') as f: | 77 with open(filename, 'rb') as f: |
| 78 deps_content = f.read() | 78 deps_content = f.read() |
| 79 return _ParseDepsDict(deps_content) | 79 return _ParseDepsDict(deps_content) |
| 80 | 80 |
| 81 | 81 |
| 82 def _ParseDepsDict(deps_content): | 82 def _ParseDepsDict(deps_content): |
| 83 local_scope = {} | 83 local_scope = {} |
| 84 var = GClientKeywords.VarImpl({}, local_scope) | 84 var = GClientKeywords.VarImpl({}, local_scope) |
| 85 global_scope = { | 85 global_scope = { |
| 86 'From': GClientKeywords.FromImpl, | |
| 87 'Var': var.Lookup, | 86 'Var': var.Lookup, |
| 88 'deps_os': {}, | 87 'deps_os': {}, |
| 89 } | 88 } |
| 90 exec(deps_content, global_scope, local_scope) | 89 exec(deps_content, global_scope, local_scope) |
| 91 return local_scope | 90 return local_scope |
| 92 | 91 |
| 93 | 92 |
| 94 def _GenerateCLDescriptionCommand(webgl_current, webgl_new, bugs): | 93 def _GenerateCLDescriptionCommand(webgl_current, webgl_new, bugs): |
| 95 def GetChangeString(current_hash, new_hash): | 94 def GetChangeString(current_hash, new_hash): |
| 96 return '%s..%s' % (current_hash[0:7], new_hash[0:7]); | 95 return '%s..%s' % (current_hash[0:7], new_hash[0:7]); |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 logging.basicConfig(level=logging.ERROR) | 403 logging.basicConfig(level=logging.ERROR) |
| 405 | 404 |
| 406 autoroller = AutoRoller(SRC_DIR) | 405 autoroller = AutoRoller(SRC_DIR) |
| 407 if args.abort: | 406 if args.abort: |
| 408 return autoroller.Abort() | 407 return autoroller.Abort() |
| 409 else: | 408 else: |
| 410 return autoroller.PrepareRoll(args.ignore_checks, args.run_tryjobs) | 409 return autoroller.PrepareRoll(args.ignore_checks, args.run_tryjobs) |
| 411 | 410 |
| 412 if __name__ == '__main__': | 411 if __name__ == '__main__': |
| 413 sys.exit(main()) | 412 sys.exit(main()) |
| OLD | NEW |