| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import logging | 5 import logging |
| 6 import time | 6 import time |
| 7 import traceback | 7 import traceback |
| 8 | 8 |
| 9 from app_yaml_helper import AppYamlHelper | 9 from app_yaml_helper import AppYamlHelper |
| 10 from appengine_wrappers import ( | 10 from appengine_wrappers import ( |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 '''Creates a ServerInstance pinned to |revision|, or HEAD if None. | 258 '''Creates a ServerInstance pinned to |revision|, or HEAD if None. |
| 259 NOTE: If passed None it's likely that during the cron run patches will be | 259 NOTE: If passed None it's likely that during the cron run patches will be |
| 260 submitted at HEAD, which may change data underneath the cron run. | 260 submitted at HEAD, which may change data underneath the cron run. |
| 261 ''' | 261 ''' |
| 262 object_store_creator = ObjectStoreCreator(start_empty=True) | 262 object_store_creator = ObjectStoreCreator(start_empty=True) |
| 263 branch_utility = self._delegate.CreateBranchUtility(object_store_creator) | 263 branch_utility = self._delegate.CreateBranchUtility(object_store_creator) |
| 264 host_file_system_provider = self._delegate.CreateHostFileSystemProvider( | 264 host_file_system_provider = self._delegate.CreateHostFileSystemProvider( |
| 265 object_store_creator, max_trunk_revision=revision) | 265 object_store_creator, max_trunk_revision=revision) |
| 266 app_samples_file_system = self._delegate.CreateAppSamplesFileSystem( | 266 app_samples_file_system = self._delegate.CreateAppSamplesFileSystem( |
| 267 object_store_creator) | 267 object_store_creator) |
| 268 compiled_host_fs_factory = CompiledFileSystem.Factory( | |
| 269 host_file_system_provider.GetTrunk(), | |
| 270 object_store_creator) | |
| 271 return ServerInstance(object_store_creator, | 268 return ServerInstance(object_store_creator, |
| 272 app_samples_file_system, | 269 app_samples_file_system, |
| 273 compiled_host_fs_factory, | 270 CompiledFileSystem.Factory(object_store_creator), |
| 274 branch_utility, | 271 branch_utility, |
| 275 host_file_system_provider) | 272 host_file_system_provider) |
| OLD | NEW |