Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 | 5 |
| 6 """Recipe module to ensure a checkout is consistant on a bot.""" | 6 """Recipe module to ensure a checkout is consistant on a bot.""" |
| 7 | 7 |
| 8 import traceback | |
|
iannucci
2015/05/05 23:35:59
don't need this
luqui
2015/05/06 22:18:39
Done.
| |
| 8 | 9 |
| 9 from slave import recipe_api | 10 from slave import recipe_api |
| 10 from slave import recipe_util | 11 from slave import recipe_util |
| 11 | 12 |
| 12 | 13 |
| 13 # This is just for testing, to indicate if a master is using a Git scheduler | 14 # This is just for testing, to indicate if a master is using a Git scheduler |
| 14 # or not. | 15 # or not. |
| 15 SVN_MASTERS = ( | 16 SVN_MASTERS = ( |
| 16 'experimental.svn', | 17 'experimental.svn', |
| 17 ) | 18 ) |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 229 | 230 |
| 230 # bot_update actually just sets root to be the folder name of the | 231 # bot_update actually just sets root to be the folder name of the |
| 231 # first solution. | 232 # first solution. |
| 232 if step_result.json.output['did_run']: | 233 if step_result.json.output['did_run']: |
| 233 co_root = step_result.json.output['root'] | 234 co_root = step_result.json.output['root'] |
| 234 cwd = kwargs.get('cwd', self.m.path['slave_build']) | 235 cwd = kwargs.get('cwd', self.m.path['slave_build']) |
| 235 if 'checkout' not in self.m.path: | 236 if 'checkout' not in self.m.path: |
| 236 self.m.path['checkout'] = cwd.join(*co_root.split(self.m.path.sep)) | 237 self.m.path['checkout'] = cwd.join(*co_root.split(self.m.path.sep)) |
| 237 | 238 |
| 238 return step_result | 239 return step_result |
| OLD | NEW |