Chromium Code Reviews| 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 import base64 | 5 import base64 |
| 6 from datetime import datetime | 6 from datetime import datetime |
| 7 from datetime import timedelta | 7 from datetime import timedelta |
| 8 import json | 8 import json |
| 9 import re | 9 import re |
| 10 | 10 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 250 changelogs = [] | 250 changelogs = [] |
| 251 | 251 |
| 252 for revision in revisions: | 252 for revision in revisions: |
| 253 changelog = self.GetChangeLog(revision) | 253 changelog = self.GetChangeLog(revision) |
| 254 if not changelog: | 254 if not changelog: |
| 255 raise Exception('Failed to pull changelog for revision %s' % revision) | 255 raise Exception('Failed to pull changelog for revision %s' % revision) |
| 256 | 256 |
| 257 changelogs.append(changelog) | 257 changelogs.append(changelog) |
| 258 | 258 |
| 259 return changelogs | 259 return changelogs |
| 260 | |
| 261 def GetRevisionForChromeVersion(self, version): | |
|
stgao
2016/05/06 00:15:53
Is this still needed?
Sharu Jiang
2016/05/06 18:35:28
Noop.
| |
| 262 """Gets the githash revision of a chrome version.""" | |
| 263 changelog = self.GetChangeLog(version) | |
| 264 if not changelog: | |
| 265 return None | |
| 266 | |
| 267 return changelog.revision | |
| OLD | NEW |