| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 common.git_repository import GitRepository | 5 from gitiles.git_repository import GitRepository |
| 6 from common.http_client_appengine import HttpClientAppengine as HttpClient | 6 from common.http_client_appengine import HttpClientAppengine as HttpClient |
| 7 from common.pipeline_wrapper import pipeline | 7 from common.pipeline_wrapper import pipeline |
| 8 from common.pipeline_wrapper import BasePipeline | 8 from common.pipeline_wrapper import BasePipeline |
| 9 | 9 |
| 10 | 10 |
| 11 class PullChangelogPipeline(BasePipeline): | 11 class PullChangelogPipeline(BasePipeline): |
| 12 """A pipeline to pull change log of CLs.""" | 12 """A pipeline to pull change log of CLs.""" |
| 13 | 13 |
| 14 # TODO: for files in dependencies(blink, v8, skia, etc), use blame first. | 14 # TODO: for files in dependencies(blink, v8, skia, etc), use blame first. |
| 15 GIT_REPO = GitRepository( | 15 GIT_REPO = GitRepository( |
| (...skipping 19 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 for build in failure_info.get('builds', {}).values(): | 36 for build in failure_info.get('builds', {}).values(): |
| 37 for revision in build['blame_list']: | 37 for revision in build['blame_list']: |
| 38 change_log = self.GIT_REPO.GetChangeLog(revision) | 38 change_log = self.GIT_REPO.GetChangeLog(revision) |
| 39 if not change_log: # pragma: no cover | 39 if not change_log: # pragma: no cover |
| 40 raise pipeline.Retry('Failed to get change log for %s' % revision) | 40 raise pipeline.Retry('Failed to get change log for %s' % revision) |
| 41 | 41 |
| 42 change_logs[revision] = change_log.ToDict() | 42 change_logs[revision] = change_log.ToDict() |
| 43 | 43 |
| 44 return change_logs | 44 return change_logs |
| OLD | NEW |