|
|
|
@ -166,7 +166,7 @@ class GclientApi(recipe_api.RecipeApi):
|
|
|
|
if fixed_revision:
|
|
|
|
if fixed_revision:
|
|
|
|
revisions.extend(['--revision', '%s@%s' % (name, fixed_revision)])
|
|
|
|
revisions.extend(['--revision', '%s@%s' % (name, fixed_revision)])
|
|
|
|
|
|
|
|
|
|
|
|
test_data_paths = set(cfg.got_revision_mapping.keys() +
|
|
|
|
test_data_paths = set(self.got_revision_reverse_mapping(cfg).values() +
|
|
|
|
[s.name for s in cfg.solutions])
|
|
|
|
[s.name for s in cfg.solutions])
|
|
|
|
step_test_data = lambda: (
|
|
|
|
step_test_data = lambda: (
|
|
|
|
self.test_api.output_json(test_data_paths))
|
|
|
|
self.test_api.output_json(test_data_paths))
|
|
|
|
@ -195,12 +195,12 @@ class GclientApi(recipe_api.RecipeApi):
|
|
|
|
**kwargs)
|
|
|
|
**kwargs)
|
|
|
|
finally:
|
|
|
|
finally:
|
|
|
|
result = self.m.step.active_result
|
|
|
|
result = self.m.step.active_result
|
|
|
|
data = result.json.output
|
|
|
|
solutions = result.json.output['solutions']
|
|
|
|
for path, info in data['solutions'].iteritems():
|
|
|
|
for propname, path in sorted(
|
|
|
|
|
|
|
|
self.got_revision_reverse_mapping(cfg).iteritems()):
|
|
|
|
# gclient json paths always end with a slash
|
|
|
|
# gclient json paths always end with a slash
|
|
|
|
path = path.rstrip('/')
|
|
|
|
info = solutions.get(path + '/') or solutions.get(path)
|
|
|
|
if path in cfg.got_revision_mapping:
|
|
|
|
if info:
|
|
|
|
propname = cfg.got_revision_mapping[path]
|
|
|
|
|
|
|
|
result.presentation.properties[propname] = info['revision']
|
|
|
|
result.presentation.properties[propname] = info['revision']
|
|
|
|
|
|
|
|
|
|
|
|
return result
|
|
|
|
return result
|
|
|
|
|