| 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 class FileChangeInfo(object): | 5 class FileChangeInfo(object): |
| 6 """Represents a file change (add/delete/modify/rename/copy/etc).""" | 6 """Represents a file change (add/delete/modify/rename/copy/etc).""" |
| 7 def __init__(self, change_type, old_path, new_path): | 7 def __init__(self, change_type, old_path, new_path): |
| 8 self.change_type = change_type | 8 self.change_type = change_type |
| 9 self.old_path = old_path | 9 self.old_path = old_path |
| 10 self.new_path = new_path | 10 self.new_path = new_path |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 for touched_file_info in info['touched_files']: | 71 for touched_file_info in info['touched_files']: |
| 72 touched_files.append(FileChangeInfo.FromDict(touched_file_info)) | 72 touched_files.append(FileChangeInfo.FromDict(touched_file_info)) |
| 73 | 73 |
| 74 return ChangeLog( | 74 return ChangeLog( |
| 75 info['author_name'], info['author_email'], info['author_time'], | 75 info['author_name'], info['author_email'], info['author_time'], |
| 76 info['committer_name'], info['committer_email'], info['committer_time'], | 76 info['committer_name'], info['committer_email'], info['committer_time'], |
| 77 info['revision'], info['commit_position'], info['message'], | 77 info['revision'], info['commit_position'], info['message'], |
| 78 touched_files, info['commit_url'], info['code_review_url'], | 78 touched_files, info['commit_url'], info['code_review_url'], |
| 79 info['reverted_revision'] | 79 info['reverted_revision'] |
| 80 ) | 80 ) |
| OLD | NEW |