OLD | NEW |
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 from threading import Lock, Thread | 5 from threading import Lock, Thread |
6 | 6 |
7 import utils | 7 from common import utils |
8 | 8 |
9 | 9 |
10 class Blame(object): | 10 class Blame(object): |
11 """Represents a blame object. | 11 """Represents a blame object. |
12 | 12 |
13 The object contains blame information for one line of stack, and this | 13 The object contains blame information for one line of stack, and this |
14 information is shown when there are no CLs that change the crashing files. | 14 information is shown when there are no CLs that change the crashing files. |
15 Attributes: | 15 Attributes: |
16 line_content: The content of the line to find the blame for. | 16 line_content: The content of the line to find the blame for. |
17 component_name: The name of the component for this line. | 17 component_name: The name of the component for this line. |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 if blame.range_start and blame.range_end: | 152 if blame.range_start and blame.range_end: |
153 | 153 |
154 # Discards results that are after the end of regression. | 154 # Discards results that are after the end of regression. |
155 if not utils.IsGitHash(blame.revision) and ( | 155 if not utils.IsGitHash(blame.revision) and ( |
156 int(blame.range_end) <= int(blame.revision)): | 156 int(blame.range_end) <= int(blame.revision)): |
157 continue | 157 continue |
158 | 158 |
159 filtered_blame_list.append(blame) | 159 filtered_blame_list.append(blame) |
160 | 160 |
161 self.blame_list = filtered_blame_list | 161 self.blame_list = filtered_blame_list |
OLD | NEW |