OLD | NEW |
1 #!/usr/bin/python | |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # 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 |
4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
5 | 4 |
6 """A module for the history of the test expectation file.""" | 5 """A module for the history of the test expectation file.""" |
7 | 6 |
8 import re | 7 import re |
9 import sys | 8 import sys |
10 import time | 9 import time |
11 import pysvn | 10 import pysvn |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 if line[0] == '+' or line[0] == '-': | 98 if line[0] == '+' or line[0] == '-': |
100 target_lines.append(line) | 99 target_lines.append(line) |
101 if target_lines: | 100 if target_lines: |
102 # Needs to convert to normal date string for presentation. | 101 # Needs to convert to normal date string for presentation. |
103 result_list.append(( | 102 result_list.append(( |
104 old_rev, new_rev, logs[i + 1].author, | 103 old_rev, new_rev, logs[i + 1].author, |
105 datetime.fromtimestamp( | 104 datetime.fromtimestamp( |
106 logs[i + 1].date).strftime('%Y-%m-%d %H:%M:%S'), | 105 logs[i + 1].date).strftime('%Y-%m-%d %H:%M:%S'), |
107 logs[i + 1].message, target_lines)) | 106 logs[i + 1].message, target_lines)) |
108 return result_list | 107 return result_list |
OLD | NEW |