| 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 from slave import recipe_api | 5 from slave import recipe_api |
| 6 | 6 |
| 7 class RietveldApi(recipe_api.RecipeApi): | 7 class RietveldApi(recipe_api.RecipeApi): |
| 8 def apply_issue(self, *root_pieces): | 8 def apply_issue(self, *root_pieces): |
| 9 return self.m.step('apply_issue', [ | 9 return self.m.python('apply_issue', |
| 10 self.m.path.depot_tools('apply_issue'), | 10 self.m.path.depot_tools('apply_issue.py'), [ |
| 11 '-r', self.m.path.checkout(*root_pieces), | 11 '-r', self.m.path.checkout(*root_pieces), |
| 12 '-i', self.m.properties['issue'], | 12 '-i', self.m.properties['issue'], |
| 13 '-p', self.m.properties['patchset'], | 13 '-p', self.m.properties['patchset'], |
| 14 '-s', self.m.properties['rietveld'], | 14 '-s', self.m.properties['rietveld'], |
| 15 '-e', 'commit-bot@chromium.org']) | 15 '-e', 'commit-bot@chromium.org', |
| 16 '--no-commit']) |
| 16 | 17 |
| OLD | NEW |